summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-08-09 15:34:21 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-09-02 16:06:19 +0200
commit726f4cad6b127ade2db52e6a8e02b2c8a581320f (patch)
treeccbefa5ae33e8d860abe9cd0cbbaf030f1c98bee
parent8912e58f826f9f5c4f185f7ce403c2220458ae4c (diff)
downloadOSELAS.Toolchain-726f4cad6b127ade2db52e6a8e02b2c8a581320f.tar.gz
uclibc: install to pkgdir
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/uclibc-headers.make3
-rw-r--r--rules/uclibc.make7
2 files changed, 7 insertions, 3 deletions
diff --git a/rules/uclibc-headers.make b/rules/uclibc-headers.make
index 96ba0a3..9ebc298 100644
--- a/rules/uclibc-headers.make
+++ b/rules/uclibc-headers.make
@@ -50,7 +50,8 @@ $(STATEDIR)/uclibc-headers.compile:
# ----------------------------------------------------------------------------
UCLIBC_HEADERS_INSTALL_OPT = \
- $(UCLIBC_MAKE_OPT) \
+ $(UCLIBC_COMMON_OPT) \
+ PREFIX=$(UCLIBC_HEADERS_PKGDIR) \
CPU_CFLAGS=$(PTXCONF_UCLIBC_HEADERS_FAKE_CROSS) \
CC="$(HOSTCC)" \
install_headers
diff --git a/rules/uclibc.make b/rules/uclibc.make
index 4a91aed..3326f28 100644
--- a/rules/uclibc.make
+++ b/rules/uclibc.make
@@ -53,15 +53,18 @@ $(STATEDIR)/uclibc.prepare: $(UCLIBC_CONFIG)
@$(call world/kconfig, UCLIBC, oldconfig)
@$(call touch)
-UCLIBC_MAKE_OPT := \
+UCLIBC_COMMON_OPT := \
CROSS=$(COMPILER_PREFIX) \
HOSTCC="$(HOSTCC)" \
DEVEL_PREFIX=/usr/ \
- PREFIX=$(SYSROOT) \
KERNEL_HEADERS=$(SYSROOT)/usr/include \
RUNTIME_PREFIX=/ \
SHARED_LIB_LOADER_PREFIX=/lib
+UCLIBC_MAKE_OPT := \
+ $(UCLIBC_COMMON_OPT) \
+ PREFIX=$(UCLIBC_PKGDIR)
+
UCLIBC_INSTALL_OPT := \
$(UCLIBC_MAKE_OPT) \
install