Received: from smtp.vivaldi.net (smtp.vivaldi.net [31.209.137.12]) by mx.groups.io with SMTP id smtpd.web12.765.1615919961437012396 for ; Tue, 16 Mar 2021 11:39:22 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@vivaldi.net header.s=default header.b=PEMLQRgv; spf=pass (domain: vivaldi.net, ip: 31.209.137.12, mailfrom: jchludzinski@vivaldi.net) Received: from localhost (localhost [127.0.0.1]) by smtp.vivaldi.net (Postfix) with ESMTP id 2D3B6BD04B; Tue, 16 Mar 2021 18:39:19 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.vivaldi.net 2D3B6BD04B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivaldi.net; s=default; t=1615919959; bh=BQ3Ha1b3vC7L5Rrc1aZbL7x+eQA29DV+uvggnBoeXZY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=PEMLQRgvFK1DobpMcXJs6Yd3O6hujXxh1qFllpUUvYdyJeNQlkM4zxnoJVG4kbU73 9T/nwZbckFayKx9zPIbGGvECGw+7hWEHnp1eGxjyMn2UOyImImQubK+Z1H4KxSYNPk Jy+ow3R1haU/ueeljiKNrK3OfuHl50H4jFMVBq4tHT5hD5JS8bVlioNrJUPVg6ynoa P5ASyug3mB9El8lwXl5jMDheJ9sIF3foo0NH5HLkYP+ae7PEvmj6h92K8+qcCuDllb auywzNf+3Ga769gC+5jsWofgnPx/9Kg6e3U41tTCQSyIdapmK8kf2buR5GIbouHg+M Ju7j1MucTIshQ== X-Virus-Scanned: Debian amavisd-new at smtp.vivaldi.net Received: from smtp.vivaldi.net ([127.0.0.1]) by localhost (mxo.viv.dc01 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 70sNFISvJX9N; Tue, 16 Mar 2021 18:39:15 +0000 (UTC) Date: Tue, 16 Mar 2021 14:39:14 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.vivaldi.net 8CDEFBD052 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivaldi.net; s=default; t=1615919954; bh=BQ3Ha1b3vC7L5Rrc1aZbL7x+eQA29DV+uvggnBoeXZY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YH81v++WRW09hw0csnraIUNKQp4X81VGDFAAmGvJ/sqH7QjuXQV1BcalFC6XLiMoW agBiEyaoxMwmwxaBFCzZVz4Un7YrlG3szFZHfTfg8V/P9JKSolBWsTgzCUTCiZYXR3 8jJ2sRKvJndliRptlX04u4WVi5wNLakfYB7p+Np8iISoy3EnwhkqvbDSC2do1v7oeH DsJStPGUljG+w/yx1Dp1zwtUGdwn1HvXtTi7b1hGXitjUc+lZ0zNqk0FtUqUaszobG F22hLL6rvb6cES3QfNeJOad+3M7Mj1Z1M47QILvj4Ov7PqaC5jUzJOhOVejHzi7gFn 5Ui72jJnIs9YA== From: "jchludzinski" To: jchludzinski@vivaldi.net Cc: Josef Holzmayr , Nicolas Dechesne , akuster , Yocto , "jchludzinski via lists.yoctoproject.org" Subject: Re: [yocto] Building test code? In-Reply-To: <166CDD724205027D.27789@lists.yoctoproject.org> References: <503454c9-ea3c-6ecb-bfdf-eb5fce6feeee@gmail.com> <247c426e3db4a7f031aad842303134f1@vivaldi.net> <166CDA589776C94C.8652@lists.yoctoproject.org> <166CDD724205027D.27789@lists.yoctoproject.org> User-Agent: Roundcube Webmail/1.4.4 Message-ID: X-Sender: jchludzinski@vivaldi.net Content-Type: multipart/alternative; boundary="=_ccf1d8f191ba90e33f2ad3bd97d5b659" --=_ccf1d8f191ba90e33f2ad3bd97d5b659 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable I tried to build spidev-test using the bitbake recipe: spidev-test.bb I set:=20 ARCH=3Darm=20 BBPATH=20 CROSS_COMPILER=3Darm-linux-gnueabihf-=20 PATH=20 ... and then tried to build spidev-test: $ bitbake -b spidev-test.bb=20 WARNING: Buildfile specified, dependencies will not be handled. If this is not what you want, do not use -b / --buildfile. Loading cache: 100% |################################################################| Time: 0:00:00 Loaded 1433 entries from dependency cache. Build Configuration: BB_VERSION =3D "1.49.2" BUILD_SYS =3D "x86_64-linux" NATIVELSBSTRING =3D "fedora-33" TARGET_SYS =3D "x86_64-oe-linux" MACHINE =3D "qemux86-64" DISTRO =3D "nodistro" DISTRO_VERSION =3D "nodistro.0" TUNE_FEATURES =3D "m64 core2" TARGET_FPU =3D "" meta =3D "master:fa1e1fbc082e82e41ccfeae58af97fe048c9aac7" Initialising tasks: 100% |###########################################################| Time: 0:00:00 Sstate summary: Wanted 6 Local 0 Network 0 Missed 6 Current 0 (0% match, 0% complete) NOTE: Executing Tasks WARNING: spidev-test-1.0-r0 do_populate_lic: Could not copy license file /home/fedora/openembedded-core/meta/files/common-licenses/GPL-2.0 to /home/fedora/openembedded-core/build/tmp-glibc/work/qemux86_64-oe-linux/sp= idev-test/1.0-r0/license-destdir/spidev-test/GPL-2.0: [Errno 2] No such file or directory: '/home/fedora/openembedded-core/meta/files/common-licenses/GPL-2.0' ERROR: spidev-test-1.0-r0 do_populate_lic: QA Issue: spidev-test: LIC_FILES_CHKSUM points to an invalid file: /home/fedora/openembedded-core/meta/files/common-licenses/GPL-2.0 [license-checksum] ERROR: spidev-test-1.0-r0 do_populate_lic: Fatal QA errors found, failing task. ERROR: Logfile of failure stored in: /home/fedora/openembedded-core/build/tmp-glibc/work/qemux86_64-oe-linux/sp= idev-test/1.0-r0/temp/log.do_populate_lic.281153 ERROR: Task (/home/fedora/junk/meta-openembedded/meta-oe/recipes-kernel/spidev-test/sp= idev-test.bb:do_populate_lic) failed with exit code '1' NOTE: Tasks Summary: Attempted 3 tasks of which 0 didn't need to be rerun and 1 failed. Summary: 1 task failed: =20 /home/fedora/junk/meta-openembedded/meta-oe/recipes-kernel/spidev-test/spi= dev-test.bb:do_populate_lic Summary: There were 2 WARNING messages shown. Summary: There were 2 ERROR messages shown, returning a non-zero exit code. What's this about licences?=20 ---John On 2021-03-16 11:50, jchludzinski via lists.yoctoproject.org wrote:=20 > I'm 'bitbaking' now. >=20 > On 2021-03-16 10:53, jchludzinski via lists.yoctoproject.org wrote: Well= , because time is of the essence, could you give me a little > assist here and explain how I might build spidev-test using > OpenEmbedded? >=20 > THANKS for your help! > ---John >=20 > On 2021-03-16 05:58, Josef Holzmayr wrote: Am Di., 16. M=C3=A4rz 2021 um= 10:49 Uhr schrieb Nicolas Dechesne > :=20 > On Tue, Mar 16, 2021 at 8:07 AM jchludzinski via > lists.yoctoproject.org > wrote:=20 > It certainly appears to be BUT I'm not certain what I'm looking at? >=20 > What is meta-openembedded? >=20 > Is it a GIT repo that can be cloned and built?=20 > Short answer is yes. The whole Yocto Project / Open Embedded concept > is based around 'layers. A layer is a repository that contains recipes > (and/or machine/distro, ..). The Yocto Project releases include a > couple of common/core layers, but there are plenty of layers out there > which can be used > I am sure there are quite a bit of documentation on this topic, but > perhaps you might want to start with: > https://docs.yoctoproject.org/overview-manual/yp-intro.html#the-yocto-pr= oject-layer-model Or grab a beer and start bingewatching https://www.youtube.com/playlist?list=3DPLD4M5FoHz-TxMfBFrDKfIS_GLY25Qsfyj > How do I use this to build spidev-test? >=20 > ---John >=20 > On 2021-03-15 19:54, akuster wrote: >=20 > On 3/15/21 4:11 PM, jchludzinski via lists.yoctoproject.org wrote: >=20 > I got a piece of code from github: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/= tools/spi/spidev_test.c >=20 > I'd like to add it somewhere under /*tools/testing*/ and build it there. >=20 > Not sure if this is appropriate? If so, how do I go about this? >=20 > If not, what's the best way to build this? >=20 > Is this what you are looking for? > https://git.openembedded.org/meta-openembedded/tree/meta-oe/recipes-kern= el/spidev-test/spidev-test.bb >=20 > -armin --=_ccf1d8f191ba90e33f2ad3bd97d5b659 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8
I tried to build spidev-test using the bi= tbake recipe: 
spidev-test.bb
 
I set:
ARCH=3Darm
BBPATH
CROSS_COMPILER=3Darm-linux-gnueabihf-
PATH

... and then tried to build spidev-= test:
$ bi=
tbake -b spidev-test.bb=20
WARNING: Buildfile specified, dependencies will not be handle=
d. If this is not what you want, do not use -b / --buildfile.
Loading cache: 100% |#####################################################=
###########| Time: 0:00:00
Loaded 1433 entries from dependency cache.

Build Configuration:
BB_VERSION           =3D "1.49.2"
BUILD_SYS            =3D "x86_64-linux"
NATIVELSBSTRING      =3D "fedora-33"
TARGET_SYS           =3D "x86_64-oe-linux"
MACHINE              =3D "qemux86-64"
DISTRO               =3D "nodistro"
DISTRO_VERSION       =3D "nodistro.0"
TUNE_FEATURES        =3D "m64 core2"
TARGET_FPU           =3D ""
meta                 =3D "master:fa1e1fbc082e82e41ccfeae58af97fe048c9aac7"

Initialising tasks: 100% |################################################=
###########| Time: 0:00:00
Sstate summary: Wanted 6 Local 0 Network 0 Missed 6 Current 0 (0% match, 0=
% complete)
NOTE: Executing Tasks
WARNING: spidev-test-1.0-r0 do_populate_lic: Could not copy l=
icense file /home/fedora/openembedded-core/meta/files/common-licenses/GPL-2=
.0 to /home/fedora/openembedded-core/build/tmp-glibc/work/qemux86_64-oe-lin=
ux/spidev-test/1.0-r0/license-destdir/spidev-test/GPL-2.0: [Errno 2] No suc=
h file or directory: '/home/fedora/openembedded-core/meta/files/common-lice=
nses/GPL-2.0'
ERROR: spidev-test-1.0-r0 do_populate_lic: QA Issue: spidev-=
test: LIC_FILES_CHKSUM points to an invalid file: /home/fedora/openembedded=
-core/meta/files/common-licenses/GPL-2.0 [license-checksum]
ERROR: spidev-test-1.0-r0 do_populate_lic: Fatal QA errors f=
ound, failing task.
ERROR: Logfile of failure stored in: /home/fedora/openembedd=
ed-core/build/tmp-glibc/work/qemux86_64-oe-linux/spidev-test/1.0-r0/temp/lo=
g.do_populate_lic.281153
ERROR: Task (/home/fedora/junk/meta-openembedded/meta-oe/rec=
ipes-kernel/spidev-test/spidev-test.bb:do_populate_lic) failed with exit co=
de '1'
NOTE: Tasks Summary: Attempted 3 tasks of which 0 didn't =
need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/fedora/junk/meta-openembedded/meta-oe/recipes-kernel/spidev-test/s=
pidev-test.bb:do_populate_lic
Summary: There were 2 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code=
.
What's this about licences?
 
---John
 

On = 2021-03-16 11:50, jchludzinski via lists.yoctoproject.org wrote:
I'm 'bitbaking' now.

On 2021-03-16 10:53, = jchludzinski via lists.yoctoproject.org wrote:
Well, because time is of the essence, could you give = me a little
assist here and explain how I might build spidev-test usin= g
OpenEmbedded?

THANKS for your help!
---John

On 2021-03-16 05:58, Josef Holzmayr wrote:
Am Di., 16. März 2021 um 10:49 Uhr schrieb Nicol= as Dechesne
<nicolas= .dechesne@linaro.org>:

On Tue, Mar 16, 2021 at 8:07 AM jchludzinski vi= a
lists.yoctoproject.org
<jchludzinski=3Dvivaldi.net@lists.yoctoproj= ect.org> wrote:

It certainly appears to be BUT I'm not certain = what I'm looking at?

What is meta-openembedded?

Is it= a GIT repo that can be cloned and built?

Short answer is yes. The whole Yocto Project / Open Embedded concept=
is based around 'layers. A layer is a repository that contains recipe= s
(and/or machine/distro, ..). The Yocto Project releases include acouple of common/core layers, but there are plenty of layers out therewhich can be used
I am sure there are quite a bit of documentation= on this topic, but
perhaps you might want to start with:
https://= docs.yoctoproject.org/overview-manual/yp-intro.html#the-yocto-project-layer= -model

Or grab a beer and start bingewatching
https://www.youtube.com/playlist?list=3DP= LD4M5FoHz-TxMfBFrDKfIS_GLY25Qsfyj

</SCNR>

<= /blockquote>


How do I use this to build spidev-test?

---John


On 2021-03-15 19:54, akuster wrote:

On 3/15/21 4:11 PM, jchludzinski via lists.yoctoproject.org wrote:
I got a piece of code from github:
https://git.kernel.or= g/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/spi/spidev_test.c<= /a>

I'd like to add it somewhere under /*tools/testing*/ and bui= ld it there.

Not sure if this is appropriate? If so, how do I go= about this?

If not, what's the best way to build this?

Is this what you are looking for?
 
https://git= .openembedded.org/meta-openembedded/tree/meta-oe/recipes-kernel/spidev-test= /spidev-test.bb

-armin




--=_ccf1d8f191ba90e33f2ad3bd97d5b659--