On Mon, Jan 22, 2024 at 12:08 PM, Ross Burton wrote:

> 
> Especially when someone is trying to be clever and wrap the kbuild
> infrastructure inside autotools.

Not me :)

Thank you very much, Ross. Now I have an ethercat-userspace.bb recipe with 
--disable-kernel, and the following ethercat-kernel.bb:

LICENSE = "GPL-2.0-only & LGPL-2.1-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
file://COPYING.LESSER;md5=4fbd65380cdd255951079008b364516c \
file://devices/e1000/LICENSE;md5=e2643b73e47fa4b29cdfad24ee42bed6"

DEPENDS += "pkgconfig-native"
RDEPENDS:${PN} += "bash"

SRC_URI = 
"git://gitlab.com/etherlab.org/ethercat.git;protocol=https;branch=master"

PV = "1.6.0-rc1+git${SRCPV}"
SRCREV = "420e6150f55b71b97a84c64831f4928e0859a0e9"

S = "${WORKDIR}/git"

inherit autotools
inherit module

EXTRA_OECONF = "--enable-generic --disable-igb --disable-8139too 
--with-linux-dir=${STAGING_KERNEL_BUILDDIR}"

EXTRA_OEMAKE += "-f Makefile.kbuild"

FILES:${PN} += "${datadir}/*"

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.

(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)

--
Daniele Lugli
General Logic srl
Viale Curreno, 41
10133 Torino
Italy
tel +39 329 3933041
www.general-logic.com ( http://www.general-logic.com/ )
www.linkedin.com/in/daniele- lugli ( http://www.linkedin.com/in/daniele-lugli )
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62227): https://lists.yoctoproject.org/g/yocto/message/62227
Mute This Topic: https://lists.yoctoproject.org/mt/103796912/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to