From: Yann E. MORIN Date: Sat, 7 May 2016 16:14:34 +0000 (+0200) Subject: core/legal-info: also save extra downloads X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1686c58e63032cacd3cb05bc255f87b44a5f12c8;p=buildroot.git core/legal-info: also save extra downloads Some packages, like perl, download extra files that end up as part of the source that Buildroot builds. Up until now, those files were not saved in the legal-info output. Add those files to the legal-info output. The unfortunate side-effect is that we will also save the secondary archive for the external blackfin toolchains; however, we already do save the binary release of some external toolchains when they do not provide actual source archives. This is inherently bad, as those are not source archives, but solving this is a bigger concern, for another series... Signed-off-by: "Yann E. MORIN" Cc: Luca Ceresoli Cc: Thomas Petazzoni Reviewed-by: Luca Ceresoli Tested-by: Luca Ceresoli Reviewed-by: Arnout Vandecappelle (Essensium/Mind) Signed-off-by: Thomas Petazzoni --- diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 2508d75cce..86747707ed 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -804,10 +804,12 @@ ifeq ($$($(2)_REDISTRIBUTE),YES) ifneq ($$($(2)_ACTUAL_SOURCE_TARBALL),$$($(2)_SOURCE)) $$(call DOWNLOAD,$$($(2)_ACTUAL_SOURCE_SITE)/$$($(2)_ACTUAL_SOURCE_TARBALL)) endif -# Save the source tarball - $$(Q)support/scripts/hardlink-or-copy \ - $$(DL_DIR)/$$($(2)_ACTUAL_SOURCE_TARBALL) \ - $$($(2)_REDIST_SOURCES_DIR) +# Save the source tarball and any extra downloads, but not +# patches, as they are handled specially afterwards. + $$(foreach e,$$($(2)_ACTUAL_SOURCE_TARBALL) $$(notdir $$($(2)_EXTRA_DOWNLOADS)),\ + $$(Q)support/scripts/hardlink-or-copy \ + $$(DL_DIR)/$$(e) \ + $$($(2)_REDIST_SOURCES_DIR)$$(sep)) # Save patches and generate the series file $$(Q)while read f; do \ support/scripts/hardlink-or-copy \