summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2016-02-08 14:40:40 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2016-06-22 07:53:35 +0200
commitbccdd19b4699bb1fd9afadea022e89eb2499638f (patch)
tree9e107eaa75152f5a42f66f97449fc7ef36e574ff
parente22dc2f712c95f179f260c183d93b84533e7ba58 (diff)
downloadOSELAS.Toolchain-bccdd19b4699bb1fd9afadea022e89eb2499638f.tar.gz
usclibc: add support for uclibc-ng
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/uclibc-headers.in11
-rw-r--r--rules/uclibc-headers.make2
-rw-r--r--rules/uclibc.make1
3 files changed, 14 insertions, 0 deletions
diff --git a/rules/uclibc-headers.in b/rules/uclibc-headers.in
index 1eeecda..837a9c3 100644
--- a/rules/uclibc-headers.in
+++ b/rules/uclibc-headers.in
@@ -4,3 +4,14 @@ config UCLIBC_HEADERS
bool
# no prompt
select KERNEL_HEADERS
+
+if UCLIBC_HEADERS
+
+config UCLIBC_HEADERS_FAKE_CROSS
+ string
+ prompt "fake cross args"
+ default "-D__ARM_EABI__" if ARCH_ARM
+ help
+ Add these args to fake a crosscompiler during uclibc-header extraction stage.
+
+endif
diff --git a/rules/uclibc-headers.make b/rules/uclibc-headers.make
index b370b9f..96ba0a3 100644
--- a/rules/uclibc-headers.make
+++ b/rules/uclibc-headers.make
@@ -51,6 +51,8 @@ $(STATEDIR)/uclibc-headers.compile:
UCLIBC_HEADERS_INSTALL_OPT = \
$(UCLIBC_MAKE_OPT) \
+ CPU_CFLAGS=$(PTXCONF_UCLIBC_HEADERS_FAKE_CROSS) \
+ CC="$(HOSTCC)" \
install_headers
# vim: syntax=make
diff --git a/rules/uclibc.make b/rules/uclibc.make
index 69c11a9..4a91aed 100644
--- a/rules/uclibc.make
+++ b/rules/uclibc.make
@@ -21,6 +21,7 @@ UCLIBC_MD5 := $(call remove_quotes,$(PTXCONF_UCLIBC_MD5))
UCLIBC := uClibc-$(UCLIBC_VERSION)
UCLIBC_SUFFIX := tar.bz2
UCLIBC_URL := \
+ http://downloads.uclibc-ng.org/releases/$(subst ng-,,$(UCLIBC_VERSION))/$(UCLIBC).$(UCLIBC_SUFFIX) \
http://www.uclibc.org/downloads/$(UCLIBC).$(UCLIBC_SUFFIX) \
http://www.uclibc.org/downloads/snapshots/$(UCLIBC).$(UCLIBC_SUFFIX)
UCLIBC_SOURCE := $(SRCDIR)/$(UCLIBC).$(UCLIBC_SUFFIX)