**** BEGIN LOGGING AT Sun Mar 28 02:59:56 2021 Mar 28 17:22:52 Hi, I have very much the same question as here https://www.mail-archive.com/yocto@lists.yoctoproject.org/msg03622.html Mar 28 17:23:28 I installed kernel-dev kernel-devsrc into the image and all the toolchain stuffs, now I'm trying to compile some awful downstream module and I get this No rule to make target ... Mar 28 17:23:35 (except not on RPi) Mar 28 19:30:48 thank you for your help Mar 28 20:00:11 marex: there is some script you need to ru to confgure the headers Mar 28 20:01:29 Crofton|cloud: that's not SDK btw, I'm building this awfulness in the image Mar 28 20:01:39 yeah Mar 28 20:01:46 Crofton|cloud: is that documented somewhere ? Mar 28 20:01:46 I think I recall correctly Mar 28 20:01:56 probably :) I am looking Mar 28 20:02:00 Crofton|cloud: I saw some "make scripts" among the many search results all right Mar 28 20:02:34 https://www.yoctoproject.org/docs/3.1/kernel-dev/kernel-dev.html#working-with-out-of-tree-modules maybe ? Mar 28 20:03:12 https://github.com/ZoranStojsavljevic/bbb-yocto/blob/master/Issues/LKM/prepare_modules.log Mar 28 20:05:28 Crofton|cloud: nope, doesn't help Mar 28 20:05:40 hmmm Mar 28 20:05:44 what is error? Mar 28 20:06:35 make[2]: *** No rule to make target 'init/main.o', needed by 'init/built-in.a'. Stop. Mar 28 20:42:17 zeddii: You around? I know you told me the answer to marex question I think Mar 28 22:06:37 Crofton|cloud: btw the cross compilation fails even with SDK Mar 28 22:07:00 seems like the cross compiler flags are wrong or something Mar 29 01:00:24 Crofton|cloud: this is nuts Mar 29 01:00:39 Crofton|cloud: cd /usr/src/kernel/ ; sed -i "/CONFIG_CPU_32v7[^M]/ s@..call cc.*@-march=armv7-a@" arch/arm/Makefile ; make scripts prepare Mar 29 01:01:05 Crofton|cloud: because otherwise it picks the wrong -march=armv5t on the device instead ... why oh why Mar 29 01:06:53 It is Sunday night and we aren't working **** ENDING LOGGING AT Mon Mar 29 02:59:56 2021