summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2015-12-03 18:16:02 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2016-06-04 07:12:04 +0200
commitfe02b8d9ed7e7c7de4bcea85153ca2ff45479440 (patch)
treed60139ac97048f7f84cfd380f8898104775aa63b
parent7d94ef543d1df6ef39404df457469263c5055577 (diff)
downloadOSELAS.Toolchain-fe02b8d9ed7e7c7de4bcea85153ca2ff45479440.tar.gz
OSELAS.Toolchain-fe02b8d9ed7e7c7de4bcea85153ca2ff45479440.tar.xz
cross-gcc: add license info
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/cross-gcc.in22
-rw-r--r--rules/cross-gcc.make10
2 files changed, 31 insertions, 1 deletions
diff --git a/rules/cross-gcc.in b/rules/cross-gcc.in
index 3511e31..5b2f356 100644
--- a/rules/cross-gcc.in
+++ b/rules/cross-gcc.in
@@ -78,6 +78,28 @@ config CROSS_GCC_CONFIG_EXTRA
help
Add these extra options to the gcc configure script.
+config CROSS_GCC_LICENSE
+ string
+ prompt "gcc license"
+
+config CROSS_GCC_LICENSE_FILES
+ string
+ prompt "gcc license files"
+ help
+ License file list for gcclibs. This is used to generate a makefile
+ snipplet that defines GCCLIBS_LICENSE/GCCLIBS_LICENSE_FILES.
+
+config CROSS_GCC_GCCLIBS_LICENSE
+ string
+ prompt "gcclibs license"
+
+config CROSS_GCC_GCCLIBS_LICENSES
+ string
+ prompt "gcclibs license files"
+ help
+ License file list for gcclibs. This is used to generate a makefile
+ snipplet that defines GCCLIBS_LICENSE/GCCLIBS_LICENSE_FILES.
+
comment "Additional supported languages:"
config CROSS_GCC_LANG_C
diff --git a/rules/cross-gcc.make b/rules/cross-gcc.make
index f4dc127..682aa16 100644
--- a/rules/cross-gcc.make
+++ b/rules/cross-gcc.make
@@ -30,6 +30,8 @@ CROSS_GCC_SOURCE := $(SRCDIR)/$(CROSS_GCC).$(CROSS_GCC_SUFFIX)
CROSS_GCC_DIR := $(BUILDDIR_CROSS_DEBUG)/$(CROSS_GCC)
CROSS_GCC_BUILDDIR := $(CROSS_BUILDDIR)/$(CROSS_GCC)-build
CROSS_GCC_BUILD_OOT := YES
+CROSS_GCC_LICENSE := $(call remove_quotes,$(PTXCONF_CROSS_GCC_LICENSE))
+CROSS_GCC_LICENSE_FILES := $(call remove_quotes,$(PTXCONF_CROSS_GCC_LICENSE_FILES))
CROSS_GCC_URL := \
$(call ptx/mirror, GNU, gcc/$(CROSS_GCC)/$(CROSS_GCC).$(CROSS_GCC_SUFFIX)) \
@@ -135,10 +137,16 @@ CROSS_GCC_CONF_OPT := \
# Install
# ----------------------------------------------------------------------------
-$(STATEDIR)/cross-gcc.install:
+$(STATEDIR)/cross-gcc.install: $(STATEDIR)/cross-gcc.report
@$(call targetinfo)
@$(call world/install, CROSS_GCC)
+ @$(call world/env, CROSS_GCC) \
+ pkg_license_target=gcclibs \
+ pkg_license_target_license=$(PTXCONF_CROSS_GCC_GCCLIBS_LICENSE) \
+ pkg_license_target_pattern=$(PTXCONF_CROSS_GCC_GCCLIBS_LICENSES) \
+ ptxd_make_world_copy_license
+
@cd "$(PTXCONF_SYSROOT_CROSS)/$(PTX_TOUPLE_TARGET)/lib"; \
dst="$(SYSROOT)/usr/lib"; \
rel="$$($(ptx/abs2rel) "$${dst}" "$${PWD}")" && \