Skip to content

Commit d34e852

Browse files
committed
Hook into toolchain-external for legal-info extraction
External pre-built toolchains are usually distrubuted as binary-only and currently (Buildroot 2023.02) do not have a license file. Infix use the Bootlin toolchains, built from Buildroot, which contains a summary.csv file with all packages, and licenses, used. This commit adds that csv, under the name toolchain-external-bootlin.csv, to the legal-info output directory. Signed-off-by: Joachim Wiberg <[email protected]>
1 parent 1441872 commit d34e852

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

external.mk

+13
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,16 @@ define FRR_POST_BUILD_HOOK
2929
endef
3030

3131
FRR_POST_BUILD_HOOKS += FRR_POST_BUILD_HOOK
32+
33+
#
34+
# External pre-built toolchains do not carry their own license.
35+
#
36+
# The Bootlin toolchains used by Infix are built from Buildroot and
37+
# compose a .csv file of all components included in the toolchain.
38+
#
39+
define TOOLCHAIN_BOOTLIN_POST_HOOK
40+
cp $(TOOLCHAIN_EXTERNAL_DOWNLOAD_INSTALL_DIR)/summary.csv \
41+
$(LEGAL_INFO_DIR)/toolchain-external-bootlin.csv
42+
endef
43+
44+
TOOLCHAIN_EXTERNAL_BOOTLIN_POST_LEGAL_INFO_HOOKS += TOOLCHAIN_BOOTLIN_POST_HOOK

0 commit comments

Comments
 (0)