Hi Ivan,

On August 18, 2021 3:36:58 PM GMT+02:00, Ivan Riabtsov <ivriabt...@gmail.com> 
wrote:
>help please, I meet with a problem with assembling the kernel module,
>created a new layer:
>
>$ ll ~/work/yocto/sources/meta-gobinet
>total 28K
>drwxr-xr-x  5 ivr ivr 4.0K Aug 18 11:27 .
>drwxr-xr-x 12 ivr ivr 4.0K Aug 18 11:26 ..
>drwxr-xr-x  2 ivr ivr 4.0K Aug 18 11:26 conf
>-rw-r--r--  1 ivr ivr 1.1K Aug 18 11:26 COPYING.MIT
>-rw-r--r--  1 ivr ivr  801 Aug 18 11:26 README
>drwxr-xr-x  3 ivr ivr 4.0K Aug 18 11:26 recipes-example
>drwxr-xr-x  3 ivr ivr 4.0K Aug 18 11:28 recipes-gobinet
>
>and i was create recipe:
>
>$ cat ~/work/yocto/sources/meta-gobinet/recipes-gobinet/gobinet/gobinet_1.bb
>SUMMARY = "gobinet module"
>LICENSE = "CLOSED"
>inherit module
>SRC_URI = "file://gobinet.tar.xz;md5sum=13b5f20214a3925eb4be3b831b62612f"
>#SRC_URI += " 
>file://0001_gobinet_makefile.patch;md5sum=1261df573e1b91177954f6190a12c7b1"
>
>and i put gobinet.tar.xz in:
>
>$ ll ~/work/yocto/sources/meta-gobinet/recipes-gobinet/gobinet/gobinet/
>total 44K
>drwxr-xr-x 2 ivr ivr 4.0K Aug 18 15:28 .
>drwxr-xr-x 3 ivr ivr 4.0K Aug 18 15:31 ..
>-rw-r--r-- 1 ivr ivr  30K Aug 18 15:31 gobinet.tar.xz
>
>content of gobinet.tar.xz is:
>
>tar -xf gobinet.tar.xz
>ivr@home-machine:~/work/yocto/sources/meta-gobinet/recipes-gobinet/gobinet/gobinet
>$ ll gobinet
>total 244K
>drwxr-xr-x 2 ivr ivr 4.0K Aug 17 21:32 .
>drwxr-xr-x 3 ivr ivr 4.0K Aug 18 15:39 ..
>-rw-r--r-- 1 ivr ivr 3.1K Aug 17 21:32 GobiNetworkManager.h
>-rw-r--r-- 1 ivr ivr  36K Aug 17 21:32 GobiUSBNet.c
>-rw-r--r-- 1 ivr ivr  131 Aug 17 21:32 Kconfig
>-rw-r--r-- 1 ivr ivr  324 Aug 17 21:32 kernel-deploy-guide
>-rw-r--r-- 1 ivr ivr  326 Aug 17 21:32 Makefile
>-rwxr-xr-x 1 ivr ivr  127 Aug 17 21:32 Makefile.kernel
>-rw-r--r-- 1 ivr ivr  36K Aug 17 21:32 QMI.c
>-rw-r--r-- 1 ivr ivr  97K Aug 17 21:32 QMIDevice.c
>-rw-r--r-- 1 ivr ivr 9.8K Aug 17 21:32 QMIDevice.h
>-rw-r--r-- 1 ivr ivr 8.7K Aug 17 21:32 QMI.h
>-rw-r--r-- 1 ivr ivr 2.9K Aug 17 21:32 Readme.txt
>-rw-r--r-- 1 ivr ivr  13K Aug 17 21:32 Structs.h
>
>but i have error:
>
>ERROR: gobinet-1-r0 do_compile: oe_runmake failed
>ERROR: gobinet-1-r0 do_compile: Execution of
>'/home/ivr/work/yocto/build/tmp/work/phyboard_segin_imx6ul_6-phytec-linux-gnueabi/gobinet/1-r0/temp/run.do_compile.1734076'
>failed with exit code 1:
>make: *** No targets specified and no makefile found.  Stop.
>WARNING: exit code 1 from a shell command.
>
>ERROR: Logfile of failure stored in:
>/home/ivr/work/yocto/build/tmp/work/phyboard_segin_imx6ul_6-phytec-linux-gnueabi/gobinet/1-r0/temp/log.do_compile.1734076
>
>that there is no Makefile but Makefile is present. tell me what is the
>problem? Please

Because do_compile runs from ${S} which by default is set to 
${WORKDIR}/${PN}-${PV} (might be BPN instead of PN but does not matter). 
Basically it expects to be run from ${WORKDIR}/gobinet-1/.

However the content of the tar.xz is extracted directly within ${WORKDIR}. So 
it's looking for a Makefile in ${WORKDIR}/gobinet-1/ but it's in ${WORKDIR}.

Two possible ways to do it:
1. Set S to ${WORKDIR}
2. Put all your files in a directory named gobinet-1  and make a tarball of 
that directory.

Cheers,
Quentin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54481): https://lists.yoctoproject.org/g/yocto/message/54481
Mute This Topic: https://lists.yoctoproject.org/mt/84972045/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to