I am trying to build the ubuntu 5.3.0 kernel with a custom patch. I downloaded the source and added the patch using
patch -p1 < patch_name.patch
and make a config using
make config
then I compiled it using
make -j6
This gave me the vmlinux and vmlinux.o files. I didnt know how to use them so I tried to make the kernel into a .deb file. I used
make deb-pkg
fakeroot make-kpkg -j N --initrd --append-to-version=my-very-own-kernel kernel-image kernel-headers
make bindeb-pkg
but all of these give me the same error after compiling the whole kernel.
/bin/sh: 1: lz4c: not found
arch/x86/boot/compressed/Makefile:146: recipe for target 'arch/x86/boot/compressed/vmlinux.bin.lz4' failed
make[3]: *** [arch/x86/boot/compressed/vmlinux.bin.lz4] Error 127
make[3]: *** Deleting file 'arch/x86/boot/compressed/vmlinux.bin.lz4'
make[3]: *** Waiting for unfinished jobs....
arch/x86/boot/Makefile:112: recipe for target 'arch/x86/boot/compressed/vmlinux' failed
make[2]: *** [arch/x86/boot/compressed/vmlinux] Error 2
arch/x86/Makefile:284: recipe for target 'bzImage' failed
make[1]: *** [bzImage] Error 2
make[1]: Leaving directory '/home/beebop/Downloads/linux-hwe-edge-5.3.0'
debian/ruleset/targets/common.mk:295: recipe for target 'debian/stamp/build/kernel' failed
make: *** [debian/stamp/build/kernel] Error 2
How do I compile the.deb package and if I cant is there anything to do with the vmlinux and vmlinux.o files?
lz4cutility.