On Tue, 16 Mar 2021, jchludzinski via lists.yoctoproject.org wrote:
I tried to build spidev-test using the bitbake recipe:
spidev-test.bb
I set: ARCH=arm BBPATH CROSS_COMPILER=arm-linux-gnueabihf- PATH
... and then tried to build spidev-test:
$ bitbake -b spidev-test.bb 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.
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-lic enses/GPL-2.0 to /home/fedora/openembedded-core/build/tmp-glibc/work/qemux86_64-oe-linux/spidev-test/1.0-r0/license-destdir/s pidev-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/op enembedded-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/spidev-test/1.0- r0/temp/log.do_populate_lic.281153 ERROR: Task (/home/fedora/junk/meta-openembedded/meta-oe/recipes-kernel/spidev-test/spidev-test.bb:do_populate_lic) failed wi th 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: /home/fedora/junk/meta-openembedded/meta-oe/recipes-kernel/spidev-test/spidev-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?
in current OE, there is no "GPL-2.0" license file, there is "GPL-2.0-only" and "GPL-2.0-or-later" and a bunch of others, so i think you need to pick one of those.