summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2015-12-03 18:16:29 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2016-06-04 07:12:04 +0200
commit8a5bacd5fba733e99858f7b6af3ac49b18cafa59 (patch)
tree8607d9343c19b47ad43440b5c4c357e90946262f
parent53cabdb93564f402597592c8ccda67c87e8e91c3 (diff)
downloadOSELAS.Toolchain-8a5bacd5fba733e99858f7b6af3ac49b18cafa59.tar.gz
glibc: add license info
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/glibc.in8
-rw-r--r--rules/glibc.make9
2 files changed, 16 insertions, 1 deletions
diff --git a/rules/glibc.in b/rules/glibc.in
index fe47d79..8ceda5d 100644
--- a/rules/glibc.in
+++ b/rules/glibc.in
@@ -44,6 +44,14 @@ config GLIBC_MD5
string
prompt "glibc source md5sum"
+config GLIBC_LICENSE
+ string
+ prompt "glibc license"
+
+config GLIBC_LICENSE_FILES
+ string
+ prompt "glibc license files"
+
config GLIBC_TIMESTAMP
string
prompt "glibc timestamp"
diff --git a/rules/glibc.make b/rules/glibc.make
index b9ae136..e2a6811 100644
--- a/rules/glibc.make
+++ b/rules/glibc.make
@@ -29,6 +29,8 @@ GLIBC_URL := \
$(call ptx/mirror, GNU, glibc/$(GLIBC).$(GLIBC_SUFFIX)) \
ftp://sourceware.org/pub/glibc/snapshots/$(GLIBC).$(GLIBC_SUFFIX) \
http://www.pengutronix.de/software/ptxdist/temporary-src/glibc/$(GLIBC).$(GLIBC_SUFFIX)
+GLIBC_LICENSE := $(call remove_quotes,$(PTXCONF_GLIBC_LICENSE))
+GLIBC_LICENSE_FILES := $(call remove_quotes,$(PTXCONF_GLIBC_LICENSE_FILES))
# ----------------------------------------------------------------------------
# Extract
@@ -105,11 +107,16 @@ GLIBC_CONF_OPT := \
# Install
# ----------------------------------------------------------------------------
-$(STATEDIR)/glibc.install:
+GLIBC_COMPLIANCE := $(PTXCONF_SYSROOT_CROSS)/share/compliance/glibc
+
+
+$(STATEDIR)/glibc.install: $(STATEDIR)/glibc.report
@$(call targetinfo)
cd $(GLIBC_BUILDDIR) && \
$(GLIBC_PATH) $(MAKE) $(GLIBC_MAKEVARS) \
install_root=$(SYSROOT) install
+
+ @$(call world/env, GLIBC) ptxd_make_world_copy_license
#
# Fix a bug when linking statically
# see: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=76451