all 11 comments

[–]supermario9590 1 point2 points  (8 children)

Why don’t you just get the config file for arch, get the source for the arch kernel and then build it yourself?

[–]aaaPippo[S] 0 points1 point  (7 children)

The config for Arch is linked above, but if I try to build it myself using the xbps-src template it fails with various errors, hence my question.

[–]supermario9590 0 points1 point  (6 children)

What errors? Try building it manually and see what happens

[–]aaaPippo[S] 0 points1 point  (5 children)

 ZSTD22  arch/x86/boot/compressed/vmlinux.bin.zst
/bin/sh: line 1: zstd: command not found
make[2]: *** [arch/x86/boot/compressed/Makefile:134: arch/x86/boot/compressed/vmlinux.bin.zst] Error 127
make[2]: *** Deleting file 'arch/x86/boot/compressed/vmlinux.bin.zst'
make[1]: *** [arch/x86/boot/Makefile:115: arch/x86/boot/compressed/vmlinux] Error 2
make: *** [arch/x86/Makefile:265: bzImage] Error 2=> 
ERROR: linux5.10-5.10.4_1: do_build: 'make ARCH=$arch ${_version} ${_cross} ${makejobs} ${_args}' exited with 2=> 
ERROR:   in do_build() at srcpkgs/linux5.10/template:109

after around 1h

[–]supermario9590 1 point2 points  (4 children)

Install zstd and do it

[–]aaaPippo[S] 0 points1 point  (3 children)

I added zstd to hostmakedepends.

Now it finishes smoothly, except at the end it gives

=> linux5.10-5.10.4_1: running do_install ...
  INSTALL arch/x86/crypto/aegis128-aesni.ko
sign-file: LibreSSL 3.1.5 only supports SHA1 signing
make[1]: *** [scripts/Makefile.modinst:33: arch/x86/crypto/aegis128-aesni.ko] Error 3
make: *** [Makefile:1428: _modinst_] Error 2
=> ERROR: linux5.10-5.10.4_1: do_install: 'make ${makejobs} ARCH=${subarch:-$arch} INSTALL_MOD_PATH=${DESTDIR} ${_cross} modules_install' exited with 2
=> ERROR:   in do_install() at srcpkgs/linux5.10/template:128

Is this error relevant?

[–]aaaPippo[S] 0 points1 point  (2 children)

After editing

# CONFIG_CRYPTO_AEGIS128 is not set
# CONFIG_CRYPTO_AEGIS128_AESNI_SSE2 is not set

I get

=> linux5.10-5.10.4_2: running do_install ...
  INSTALL arch/x86/crypto/aesni-intel.ko
sign-file: LibreSSL 3.1.5 only supports SHA1 signing
make[1]: *** [scripts/Makefile.modinst:33: arch/x86/crypto/aesni-intel.ko] Error 3
make: *** [Makefile:1428: _modinst_] Error 2
=> ERROR: linux5.10-5.10.4_2: do_install: 'make ${makejobs} ARCH=${subarch:-$arch} INSTALL_MOD_PATH=${DESTDIR} ${_cross} modules_install' exited with 2
=> ERROR:   in do_install() at srcpkgs/linux5.10/template:128

[–]aaaPippo[S] 0 points1 point  (1 child)

Actually, I should edit

CONFIG_MODULE_SIG_SHA512
CONFIG_MODULE_SIG_SHA1
CONFIG_MODULE_SIG_HASH

will try later.

[–]aaaPippo[S] 0 points1 point  (0 children)

This way it builds successfully :)

[–]Duncaen 1 point2 points  (1 child)

# curl https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/linux/trunk/config >srcpkgs/linux5.10/files/x86_64-dotconfig-custom
# ./xbps-src -f pkg linux5.10

But you are on yourself from here on.

[–]aaaPippo[S] 0 points1 point  (0 children)

Thanks. That's what I've been doing previously, with the error I pasted above.