linux-kernelmakefilex509certificatearchlinuxiso-image

Linux-kernel: make isoimage fails due to missing certs. Proceed how?


I tried make isoimage but got:


kernel/Makefile:135: *** No X.509 certificates found ***

CHK     kernel/config_data.h
Kernel: arch/x86/boot/bzImage is ready  (#1)
rm -rf arch/x86/boot/isoimage
mkdir arch/x86/boot/isoimage
for i in lib lib64 share end ; do \
    if [ -f /usr/$i/syslinux/isolinux.bin ] ; then \
            cp /usr/$i/syslinux/isolinux.bin arch/x86/boot/isoimage ; \
               [...]
done
arch/x86/boot/Makefile:160: rule for target „isoimage“ failed
make[1]: *** [isoimage] error 1
arch/x86/Makefile:236: rule for target „isoimage“ failed
make: *** [isoimage] error 2

while using AUR build system.

So where does one get those certs from and where to put them?


Solution

  • on Arch-Linux & derivates, the certs will be put in place by:

    pacman -S linux

    That linux package should have "mkisolinux" as a dependency, because the

    make isoimage

    requires it. Still, one needs to manually copy

    cp /usr/lib/syslinux/bios/isolinux.bin /usr/include/syslinux/isolinux.bin

    for the target to actually succeed.

    "make isoimage" does work after these measures usually.

    The issue is reproducible and could be easily fixed in Arch.