summaryrefslogtreecommitdiff
path: root/toolchain/uclibc-ng
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-05-19 13:02:27 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-05-19 13:02:27 +0200
commitba2ddf4257e0b6ea6bfaaf23b246535d3ba89a82 (patch)
treebb3f9db41c2dfe1e09e487dddcf000523634e7bc /toolchain/uclibc-ng
parent061e239cbfa796c884c6689407800945f79a0fa0 (diff)
uclibc-ng: avoid rebuilds when compiling testsuite
Diffstat (limited to 'toolchain/uclibc-ng')
-rw-r--r--toolchain/uclibc-ng/Makefile24
1 files changed, 14 insertions, 10 deletions
diff --git a/toolchain/uclibc-ng/Makefile b/toolchain/uclibc-ng/Makefile
index 91722f968..d129588a6 100644
--- a/toolchain/uclibc-ng/Makefile
+++ b/toolchain/uclibc-ng/Makefile
@@ -285,17 +285,17 @@ $(WRKBUILD)/.compiled: $(WRKBUILD)/.configured
PATH='$(HOST_PATH)' $(MAKE) $(UCLIBC_MAKEOPTS) -C $(WRKBUILD) \
HOSTCC="$(HOST_CC)" \
CC='$(TARGET_CC)' \
- PREFIX= \
+ PREFIX=$(STAGING_TARGET_DIR) \
DEVEL_PREFIX=/usr/ \
+ DEVEL_PREFIX_LIB=/ \
RUNTIME_PREFIX=/ \
UCLIBC_EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
UCLIBC_EXTRA_LDFLAGS="$(TARGET_LDFLAGS)" \
+ TEST_INSTALLED_UCLIBC=1 \
+ UCLIBC_ONLY=1 \
VERBOSE=1 \
all
- touch $@
-
-$(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
- PATH='$(HOST_PATH)' $(MAKE) -C $(WRKBUILD) \
+ PATH='$(HOST_PATH)' $(MAKE) $(UCLIBC_MAKEOPTS) -C $(WRKBUILD) \
HOSTCC="$(HOST_CC)" \
CC='$(TARGET_CC)' \
PREFIX=$(STAGING_TARGET_DIR) \
@@ -304,20 +304,24 @@ $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
RUNTIME_PREFIX=/ \
UCLIBC_EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
UCLIBC_EXTRA_LDFLAGS="$(TARGET_LDFLAGS)" \
+ TEST_INSTALLED_UCLIBC=1 \
+ UCLIBC_ONLY=1 \
VERBOSE=1 \
- install_runtime install_dev
+ test_compile test_gen
+ touch $@
+
+$(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
PATH='$(HOST_PATH)' $(MAKE) -C $(WRKBUILD) \
HOSTCC="$(HOST_CC)" \
CC='$(TARGET_CC)' \
- PREFIX= \
+ PREFIX=$(STAGING_TARGET_DIR) \
DEVEL_PREFIX=/usr/ \
+ DEVEL_PREFIX_LIB=/ \
RUNTIME_PREFIX=/ \
UCLIBC_EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
UCLIBC_EXTRA_LDFLAGS="$(TARGET_LDFLAGS)" \
- TEST_INSTALLED_UCLIBC=1 \
- UCLIBC_ONLY=1 \
VERBOSE=1 \
- test_compile test_gen
+ install_runtime install_dev
touch $@
include ${ADK_TOPDIR}/mk/toolchain.mk