Re: Building test code?


Josef Holzmayr
 

Am Di., 16. März 2021 um 10:49 Uhr schrieb Nicolas Dechesne
<nicolas.dechesne@linaro.org>:

On Tue, Mar 16, 2021 at 8:07 AM jchludzinski via
lists.yoctoproject.org
<jchludzinski=vivaldi.net@lists.yoctoproject.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 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-project-layer-model
Or grab a beer and start bingewatching
https://www.youtube.com/playlist?list=PLD4M5FoHz-TxMfBFrDKfIS_GLY25Qsfyj

</SCNR>






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.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/spi/spidev_test.c

I'd like to add it somewhere under /*tools/testing*/ and build 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










Join yocto@lists.yoctoproject.org to automatically receive all group messages.