On 22 Jan 2024, at 22:42, Daniele Lugli via Lists.Yoctoproject.Org <daniele.lugli=gmail....@lists.yoctoproject.org> wrote: > which fails, and in log.do_compile I find: > ERROR: oe_runmake failed > WARNING: exit code 1 from a shell command. > make: Makefile.kbuild: No such file or directory > make: *** No rule to make target 'Makefile.kbuild'. Stop. > but a > poky/build/tmp/work/intel_corei7_64-poky-linux/ethercat-kernel/1.6.0-rc1+git/git/Makefile.kbuild > does exist, and > bitbake-getvar -r ethercat-kernel S > says > > S="/home/vboxuser/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/ethercat-kernel/1.6.0-rc1+git/git" > so it seems to be in the right place.
Ah, yes. That would be because autotools recipes run in $(B) by default, not $(S). So you’ll want to do -f ${S}/Makefile.kbuild. (that’s how autotools expects to work, you run everything from the build directory if you’re doing out-of-tree builds) > (By the way, I also find a > yocto/poky/build/tmp/work/corei7-64-poky-linux/ethercat-userspace/1.6.0-rc1+git/git/Makefile.kbuild > don't know why, and why is it in corei7-64-poky-linux instead of > intel_corei7_64-poky-linux) Because the default package architecture (and thus the work directory name) is the tune not the machine. Only truly machine-specific recipes need to be machine-specific. Ross
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#62263): https://lists.yoctoproject.org/g/yocto/message/62263 Mute This Topic: https://lists.yoctoproject.org/mt/103796912/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/leave/6691583/21656/737036229/xyzzy [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-