From fe02b8d9ed7e7c7de4bcea85153ca2ff45479440 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Thu, 3 Dec 2015 18:16:02 +0100 Subject: cross-gcc: add license info Signed-off-by: Michael Olbrich --- rules/cross-gcc.in | 22 ++++++++++++++++++++++ rules/cross-gcc.make | 10 +++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) 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}")" && \ -- cgit v1.2.3