mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-28 04:50:36 -09:00
core/legal-info: don't generate big file with all license texts
By aggregating all the license files into a single big text-only file means we have no way to use license files that are binary blobs (e.g. pdf, rtf...). Just do not generate that big file; if the user still wants it, it is very easy to create it afterwards. Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 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>
This commit is contained in:
committed by
Thomas Petazzoni
parent
82e84a4f35
commit
81bf01cbff
@@ -75,19 +75,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-header # pkg, license-file, {HOST|TARGET}
|
||||
printf "$(LEGAL_INFO_SEPARATOR)\n\t$(1):\
|
||||
$(2)\n$(LEGAL_INFO_SEPARATOR)\n\n\n" >>$(LEGAL_LICENSES_TXT_$(3))
|
||||
endef
|
||||
|
||||
define legal-license-nofiles # pkg, {HOST|TARGET}
|
||||
$(call legal-license-header,$(1),unknown license file(s),$(2))
|
||||
endef
|
||||
|
||||
define legal-license-file # pkg, filename, file-fullpath, {HOST|TARGET}
|
||||
$(call legal-license-header,$(1),$(2) file,$(4)) && \
|
||||
cat $(3) >>$(LEGAL_LICENSES_TXT_$(4)) && \
|
||||
echo >>$(LEGAL_LICENSES_TXT_$(4)) && \
|
||||
mkdir -p $(LICENSE_FILES_DIR_$(4))/$(1)/$(dir $(2)) && \
|
||||
cp $(3) $(LICENSE_FILES_DIR_$(4))/$(1)/$(2)
|
||||
endef
|
||||
|
||||
Reference in New Issue
Block a user