Summary: Support SPDX include source for work-share directory

====== Testing ======
* Commands

1. For SPDX 3.0

$ echo 'MACHINE = "qemux86-64"' >> conf/local.conf
$ echo 'SPDX_INCLUDE_SOURCES = "1"' >> conf/local.conf
$ bitbake gcc-source-14.2.0 gcc libgcc gcc-runtime gcc-cross-x86_64 
nativesdk-gcc -ccleansstate
$ bitbake gcc-source-14.2.0 gcc libgcc gcc-runtime gcc-cross-x86_64 
nativesdk-gcc
$ oe-selftest -r spdx.SPDX30Check.test_gcc_include_source
...
2024-10-26 01:33:38,475 - oe-selftest - INFO - The spdxId of gcc-14.2.0/README 
in gcc.spdx.json is 
http://spdx.org/spdxdocs/gcc-f2eaeb0d-b54b-53ba-899a-8c36c21139bf/88d5068ffd41e5ea6b4e0dd390b23bf499bb2b6674a41e09eaf2a887eced16c8/sourcefile/42
2024-10-26 01:33:40,794 - oe-selftest - INFO -  ... ok
2024-10-26 01:33:47,890 - oe-selftest - INFO - 
----------------------------------------------------------------------
2024-10-26 01:33:47,891 - oe-selftest - INFO - Ran 1 test in 261.233s
2024-10-26 01:33:47,891 - oe-selftest - INFO - OK
2024-10-26 01:33:59,913 - oe-selftest - INFO - RESULTS:
2024-10-26 01:33:59,914 - oe-selftest - INFO - RESULTS - 
spdx.SPDX30Check.test_gcc_include_source: PASSED (253.93s)
2024-10-26 01:34:00,304 - oe-selftest - INFO - SUMMARY:
2024-10-26 01:34:00,304 - oe-selftest - INFO - oe-selftest () - Ran 1 test in 
261.234s
2024-10-26 01:34:00,304 - oe-selftest - INFO - oe-selftest - OK - All required 
tests passed (successes=1, skipped=0, failures=0, errors=0)

2. For SPDX 2.2
echo 'INHERIT:remove = "create-spdx"' >> conf/local.conf
echo 'INHERIT += "create-spdx-2.2"' >> conf/local.conf
$ bitbake gcc-source-14.2.0 gcc libgcc gcc-runtime gcc-cross-x86_64 
nativesdk-gcc -ccleansstate
$ bitbake gcc-source-14.2.0 gcc libgcc gcc-runtime gcc-cross-x86_64 
nativesdk-gcc

* Expected Results

All builds are successfully

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#206379): 
https://lists.openembedded.org/g/openembedded-core/message/206379
Mute This Topic: https://lists.openembedded.org/mt/109220132/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to