summaryrefslogtreecommitdiffstats
path: root/package/pkg-utils.mk
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2017-06-26 00:03:39 +0200
committerPeter Korsgaard <peter@korsgaard.com>2017-07-03 18:03:20 +0200
commitea5695b5dff7a64187b86e8b52a3e6d18f50affd (patch)
treeffae45953329e5b0bf64ddef4bc15aac7fef216d /package/pkg-utils.mk
parentf49392349f7cf202d13941f7f3b56622a34453a5 (diff)
downloadbuildroot-ea5695b5dff7a64187b86e8b52a3e6d18f50affd.tar.gz
buildroot-ea5695b5dff7a64187b86e8b52a3e6d18f50affd.zip
core/pkg-util: pass package directory and name when saving license files
This will be useful when checking the hashes of the license files. [Peter: use '.' as buildroot directory so /buildroot.hash isn't checked] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Luca Ceresoli <luca@lucaceresoli.net> Cc: Peter Korsgaard <peter@korsgaard.com> Cc: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/pkg-utils.mk')
-rw-r--r--package/pkg-utils.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/pkg-utils.mk b/package/pkg-utils.mk
index c95e77953b..e9ac56276f 100644
--- a/package/pkg-utils.mk
+++ b/package/pkg-utils.mk
@@ -83,7 +83,7 @@ define legal-manifest # pkg, version, license, license-files, source, url, {HOST
echo '"$(1)","$(2)","$(3)","$(4)","$(5)","$(6)"' >>$(LEGAL_MANIFEST_CSV_$(7))
endef
-define legal-license-file # pkg, filename, file-fullpath, {HOST|TARGET}
- mkdir -p $(LICENSE_FILES_DIR_$(4))/$(1)/$(dir $(2)) && \
- cp $(3) $(LICENSE_FILES_DIR_$(4))/$(1)/$(2)
+define legal-license-file # pkgname, pkgname-pkgver, pkgdir, filename, file-fullpath, {HOST|TARGET}
+ mkdir -p $(LICENSE_FILES_DIR_$(6))/$(2)/$(dir $(4)) && \
+ cp $(5) $(LICENSE_FILES_DIR_$(6))/$(2)/$(4)
endef
OpenPOWER on IntegriCloud