The REUSE specification [1] makes it possible to distribute license information in a machine-readable manner, and build a Software Bill of Material from the source files, by building on top of the SPDX specification. Make it so that the 'reuse lint' command reports compliance with the spec.
[1]: https://reuse.software/spec/ The result looks fairly similar to other projects using SPDX, like the Linux kernel. All files have copyright and license information, and the texts of all software licenses used in the project are available in the LICENSES folder. The 'reuse spdx' command then prints out a SBoM in SPDX format. Roland Hieber (9): treewide: add SPDX identifiers to files with GPL-2.0-only license treewide: add SPDX identifiers to files with GPL-2.0-or-later license treewide: add SPDX identifiers to files with GPL-3.0-or-later license treewide: add SPDX identifier to file with Zlib license treewide: add CC0-1.0 SPDX identifiers for trivial files treewide: add GPL-2.0-only SPDX identifiers to files without license treewide: add trivial copyright headers DCO: add SPDX license information README: mention compatibility with the REUSE specification .gitignore | 2 + COPYING | 281 +------- DCO | 2 + LICENSES/CC0-1.0.txt | 121 ++++ LICENSES/GPL-2.0-only.txt | 350 +++++++++ LICENSES/GPL-2.0-or-later.txt | 351 +++++++++ LICENSES/GPL-3.0-or-later.txt | 672 ++++++++++++++++++ LICENSES/LicenseRef-DCO.txt | 2 + LICENSES/Zlib.txt | 19 + Makefile.am | 3 + NEWS | 3 + README | 6 + autogen.sh | 2 + check-news.sh | 2 +- configure.ac | 3 + m4/.gitignore | 2 + meson.build | 1 + meson_options.txt | 2 + scripts/barebox-mark-successful-boot.sh | 2 + src/.gitignore | 2 + src/asm/unaligned.h | 2 + src/barebox-state.c | 1 + src/barebox-state.h | 3 + src/barebox-state/backend_bucket_circular.c | 1 + src/barebox-state/backend_bucket_direct.c | 1 + src/barebox-state/backend_format_dtb.c | 1 + src/barebox-state/backend_format_raw.c | 1 + src/barebox-state/backend_storage.c | 1 + src/barebox-state/state.c | 1 + src/barebox-state/state.h | 1 + src/barebox-state/state_variables.c | 1 + src/base64.c | 3 +- src/base64.h | 3 + src/crc.h | 2 + src/crc32.c | 2 +- src/crypto/digest.c | 1 + src/crypto/hmac.c | 3 +- src/crypto/internal.h | 3 +- src/crypto/keystore.h | 1 + src/crypto/sha.h | 2 + src/crypto/sha1.c | 1 + src/crypto/sha2.c | 1 + src/digest.h | 1 + src/driver.h | 2 + src/dt/common.h | 3 + src/dt/dt.h | 3 + src/dt/fdt.h | 3 + src/dt/list.h | 3 + src/dtblint-imx-pinmux.c | 1 + src/dtblint.c | 1 + src/dtblint.h | 2 + src/fdt.c | 1 + src/fdt.h | 3 + src/fdtdump.c | 3 + src/fs.h | 2 + src/init.h | 2 + src/keystore-blob.c | 1 + src/libbb.h | 3 + src/libdt-utils.sym | 2 + src/libdt.c | 1 + src/libfile.h | 2 + src/linux/err.h | 2 + src/linux/list.h | 2 + src/linux/mtd/mtd-abi.h | 2 + src/linux/uuid.h | 1 + src/module.h | 2 + src/mtd/mtd-peb.h | 2 + src/net.h | 2 + src/of.h | 2 + src/printk.h | 2 + src/state.h | 2 + test/01-fixed-partition-no-gpt.dts | 2 + ...2-fixed-partition-before-gpt-partition.dts | 2 + test/03-fixed-partition-is-gpt-partition.dts | 2 + test/04-gpt-partition-by-partuuid.dts | 2 + test/05-gpt-partition-by-typeuuid.dts | 2 + test/06-fixed-partition-by-diskuuid.dts | 2 + test/07-raw-disk-fail.dts | 2 + test/08-gpt-disk-no-typeuuid-fail.dts | 2 + test/09-no-disk-fail.dts | 2 + ...-partition-overlaps-two-gpt-partitions.dts | 2 + ...-overlaps-two-gpt-partitions-partially.dts | 2 + ...-fixed-partition-part-of-gpt-partition.dts | 2 + test/barebox-state.dtsi | 2 + test/barebox-state.t | 2 + test/crc32.c | 2 + test/gpt-no-typeuuid.config | 2 + test/gpt.config | 2 + test/meson.build | 2 + test/raw.config | 2 + test/sharness.sh | 1 + version-gen | 2 + version.h.in | 2 + 93 files changed, 1677 insertions(+), 288 deletions(-) mode change 100644 => 120000 COPYING create mode 100644 LICENSES/CC0-1.0.txt create mode 100644 LICENSES/GPL-2.0-only.txt create mode 100644 LICENSES/GPL-2.0-or-later.txt create mode 100644 LICENSES/GPL-3.0-or-later.txt create mode 100644 LICENSES/LicenseRef-DCO.txt create mode 100644 LICENSES/Zlib.txt -- 2.39.2