summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2016-05-07 18:14:27 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-05-11 23:15:03 +0200
commita0ca22215cfa27d5c3ac1e224e08e10b2e4025c1 (patch)
treea4351b31edad42ee61749dd269d57599968b7868
parent88bad8f462c31679106fe68b6c3b1bd4be68cc2f (diff)
downloadbuildroot-a0ca22215cfa27d5c3ac1e224e08e10b2e4025c1.tar.gz
buildroot-a0ca22215cfa27d5c3ac1e224e08e10b2e4025c1.zip
core/legal-info: use the helper to install source archives
.. and use $(Q) instead of a hard-coded @. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Luca Ceresoli <luca@lucaceresoli.net> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/pkg-generic.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index 3904c09043..f9c7cf8e14 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -803,9 +803,10 @@ ifeq ($$($(2)_REDISTRIBUTE),YES)
ifneq ($$($(2)_ACTUAL_SOURCE_TARBALL),$$($(2)_SOURCE))
$$(call DOWNLOAD,$$($(2)_ACTUAL_SOURCE_SITE)/$$($(2)_ACTUAL_SOURCE_TARBALL))
endif
-# Copy the source tarball (just hardlink if possible)
- @cp -l $$(DL_DIR)/$$($(2)_ACTUAL_SOURCE_TARBALL) $$(REDIST_SOURCES_DIR_$$(call UPPERCASE,$(4))) 2>/dev/null || \
- cp $$(DL_DIR)/$$($(2)_ACTUAL_SOURCE_TARBALL) $$(REDIST_SOURCES_DIR_$$(call UPPERCASE,$(4)))
+# Save the source tarball
+ $$(Q)support/scripts/hardlink-or-copy \
+ $$(DL_DIR)/$$($(2)_ACTUAL_SOURCE_TARBALL) \
+ $$(REDIST_SOURCES_DIR_$$(call UPPERCASE,$(4)))
endif # redistribute
endif # other packages
OpenPOWER on IntegriCloud