Trying to build everything including the 4.14.26 kernel with
(cd packages/vyos-kernel; git checkout linux-vyos-4.14.y)
The directions at https://wiki.vyos.net/wiki/Rebuild_VyOS_kernel_Step#VyOS_1.2.x try to build a kernel_manual package, but that fails. It does not seem to be needed. Removing that, and using:
rev=4.14.26-1+vyos1+current1 LOCALVERSION="" make-kpkg --rootcmd fakeroot --initrd \ --append_to_version -amd64-vyos --revision=$rev \ kernel_source kernel_headers kernel_image
builds the kernel. But later, building the ISO with:
# needed by open-vm-tools-dkms to build a kernel module echo "libelf-dev" >>data/live-build-config/package-lists/vyos-utils.list.chroot ./configure make iso
it seems that the vm tools dkms tries to build a kernel package, which fails:
DKMS make.log for open-vm-tools-10.0.5 for kernel 4.14.26-amd64-vyos (x86_64) Tue May 1 00:04:50 UTC 2018 make: Entering directory '/var/lib/dkms/open-vm-tools/10.0.5/build/vmxnet' Using kernel build system. make -C /lib/modules/4.14.26-amd64-vyos/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \ MODULEBUILDDIR=/var/lib/dkms/open-vm-tools/10.0.5/build modules make[1]: Entering directory '/usr/src/linux-headers-4.14.26-amd64-vyos' make[2]: *** No rule to make target 'tools/objtool/objtool', needed by '/var/lib/dkms/open-vm-tools/10.0.5/build/vmxnet/vmxnet.o'. Stop. Makefile:1508: recipe for target '_module_/var/lib/dkms/open-vm-tools/10.0.5/build/vmxnet' failed make[1]: *** [_module_/var/lib/dkms/open-vm-tools/10.0.5/build/vmxnet] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.14.26-amd64-vyos' Makefile:120: recipe for target 'vmxnet.ko' failed make: *** [vmxnet.ko] Error 2 make: Leaving directory '/var/lib/dkms/open-vm-tools/10.0.5/build/vmxnet'
I am not sure how to fix that. Is tools/objtool/objtool built by kernel_debug or something else?