[poky] kernel module development problem with SDK
György Kövesdi
kgy at teledigit.eu
Wed Sep 13 06:07:02 PDT 2017
Hi,
I have poky at git hash 5686f4e1fe5229705b8c7d35895aa03827796d13 and I
build for ARMv7.
I wanted to build my kernel module using the SDK generated this way:
bitbake <my-image> -c populate_sdk
and the recipe kernel-devsrc is added to my sdk.
I found that the recipe meta/recipes-kernel/linux/kernel-devsrc.bb puts
everything in the kernel source tree, except the following executables:
scripts/recordmcount
scripts/basic/fixdep
scripts/mod/modpost
These would be essential for module development.
In the recipe kernel-devsrc.bb the following line
oe_runmake -C $kerneldir CC="${KERNEL_CC}" LD="${KERNEL_LD}" clean
_mrproper_scripts
removes everything, including the executables mentioned above.
IMHO it would be enough to run:
oe_runmake -C $kerneldir CC="${KERNEL_CC}" LD="${KERNEL_LD}" clean
In this case the module development works properly with the resulting SDK.
Is the 'mrproper' really necessary? IMHO the 'clean' is enough there,
because 'mrproper' removes too much.
Regards
Gyorgy Kovesdi
More information about the poky
mailing list