Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C0F9C46CD2 for ; Wed, 24 Jan 2024 22:07:10 +0000 (UTC) Subject: Re: [yocto] etherlab To: Ross Burton ,yocto@lists.yoctoproject.org From: "Daniele Lugli" X-Originating-Location: Rimini, Emilia-Romagna, IT (176.246.20.126) X-Originating-Platform: Windows Opera 106 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Wed, 24 Jan 2024 14:07:06 -0800 References: <4102D24C-53A4-4F4F-A192-EC9295E09D54@arm.com> In-Reply-To: <4102D24C-53A4-4F4F-A192-EC9295E09D54@arm.com> Message-ID: <9213.1706134026442454152@lists.yoctoproject.org> Content-Type: multipart/alternative; boundary="5uu9qhIsZ2dWQwCC8vQJ" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 24 Jan 2024 22:07:10 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/62274 --5uu9qhIsZ2dWQwCC8vQJ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Ross, thank you for your reply. I tried ... inherit autotools inherit module EXTRA_OECONF =3D "--sysconfdir=3D/etc --enable-generic --disable-igb --disa= ble-8139too --with-linux-dir=3D${STAGING_KERNEL_BUILDDIR}" EXTRA_OEMAKE +=3D "-f ${S}/Makefile.kbuild" ... and now Makefile.kbuild is found. The error is now: | make -C "" M=3D"" INSTALL_MOD_DIR=3D"" modules | make: the '-C' option requires a non-empty string argument Makefile.kbuild contains KBUILD =3D $(MAKE) -C "$(LINUX_SOURCE_DIR)" M=3D"$(abs_srcdir)" INSTALL_MOD= _DIR=3D "$(INSTALL_MOD_DIR)" modules: $(KBUILD) modules so the problem is that these variables are empty. As there is also a Makefile, containing references to Makefile.kbuild, I al= so tried with EXTRA_OEMAKE +=3D "-f Makefile" (the default ${B} should be good here because Makefile doesn't come out of = git, it is created by configure) and now I get | ../../git/lib/domain.c:38:10: fatal error: stdio.h: No such file or direc= tory and a bunch of similar errors. -- 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-lug= li ) --5uu9qhIsZ2dWQwCC8vQJ Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Hi Ross, thank you for your reply.
 
I tried 
 
...
inherit autotools
inherit module
 
EXTRA_OECONF =3D "--sysconfdir=3D/etc = --enable-generic --disable-igb --disable-8139too --with-linux-dir=3D${STAGI= NG_KERNEL_BUILDDIR}"
EXTRA_OEMAKE +=3D "-f ${S}/Makefile.kb= uild"
...
 
and now Makefile.kbuild is found.
The error is now:
 
| make -C "" M=3D"" INSTALL_MOD_DIR=3D= "" modules
| make: the '-C' option requires a non= -empty string argument
 
Makefile.kbuild contains
 
KBUILD =3D $(MAKE) -C "$(LINUX_SOURCE_= DIR)" M=3D"$(abs_srcdir)" INSTALL_MOD_DIR=3D "$(INSTALL_MOD_DIR)"
 
modules:
$(KBUILD) modules
 

so the problem is that these variables are empty.
 
As there is also a Makefile, containing references to Makefile.kbuild,= I also tried with 
 
EXTRA_OEMAKE +=3D "-f Makefile"=
 
(the default ${B} should be good here because Makefile doesn't come ou= t of git, it is created by configure)
 
and now I get
 
| ../../git/lib/domain.c:38:10: fatal = error: stdio.h: No such file or directory
 
and a bunch of similar errors.
--
Daniele Lugli
General Logic srl
Viale Curreno, 41
10133 Torino
Italy
tel +39 329 3933041
--5uu9qhIsZ2dWQwCC8vQJ--