I am trying to cross compile a raspberry Pi kernel with RT Preempt patch. I am following this tutorial.
I have downloaded the latest kernel sources rpi-4.9.13 and the corresponding rt patch patch-4.9.13-rt11.patch.gz
After doing the menuconfig step, when I do
sudo make zImage
I recieved the error:
No rule to make target
I read somewhere about bzImage so I tried:
sudo make bzImage
It then starts compilation but after some time it gives the following error:
drivers/of/configfs.c: In function ‘create_overlay’: drivers/of/configfs.c:48:2: error: implicit declaration of function ‘of_fdt_unflatten_tree’ [-Werror=implicit-function-declaration] of_fdt_unflatten_tree(blob, NULL, &overlay->overlay); ^ cc1: some warnings being treated as errors scripts/Makefile.build:293: recipe for target 'drivers/of/configfs.o' failed make: *** [drivers/of/configfs.o] Error 1 scripts/Makefile.build:544: recipe for target 'drivers/of' failed make: *** [drivers/of] Error 2 Makefile:988: recipe for target 'drivers' failed make: *** [drivers] Error 2
I don't know what I am doing wrong. I have been stuck at this for some time now and would really appreciate any help.