summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-07-08 19:55:56 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-07-08 19:56:37 +0200
commit704a25b7c5ba35df23f1cefe668dee351ce0deeb (patch)
treeeed7ed149b0478845e5af30d261c5bd0a9f7d8c6
parentb458fc2bd5f039a2473559ac4fc93aeda97f58b8 (diff)
first steps to get testsuite of uClibc running
-rw-r--r--target/config/Config.in.toolchain7
-rw-r--r--toolchain/uclibc-ng/Makefile7
-rw-r--r--toolchain/uclibc/Makefile7
3 files changed, 21 insertions, 0 deletions
diff --git a/target/config/Config.in.toolchain b/target/config/Config.in.toolchain
index b75718142..d18b8b380 100644
--- a/target/config/Config.in.toolchain
+++ b/target/config/Config.in.toolchain
@@ -140,4 +140,11 @@ config ADK_STATIC_TOOLCHAIN
help
If you want to create more portable toolchains, build them static.
+config ADK_UCLIBC_TEST
+ prompt "Build and install uClibc testsuite"
+ boolean
+ select ADK_PACKAGE_MAKE
+ depends on ADK_TARGET_LIB_UCLIBC || ADK_TARGET_LIB_UCLIBC_NG
+ default n
+
endmenu
diff --git a/toolchain/uclibc-ng/Makefile b/toolchain/uclibc-ng/Makefile
index 58ca42389..92f6347da 100644
--- a/toolchain/uclibc-ng/Makefile
+++ b/toolchain/uclibc-ng/Makefile
@@ -124,6 +124,13 @@ $(WRKBUILD)/.fixup:
RUNTIME_PREFIX=/ \
CPU_CFLAGS="$(TARGET_CFLAGS)" \
all install_runtime
+ifeq ($(ADK_UCLIBC_TEST),y)
+ PATH='$(HOST_PATH)' $(MAKE) -C $(WRKBUILD)/test \
+ UCLIBC_ONLY=1 \
+ TEST_INSTALLED_UCLIBC=1 \
+ CPU_CFLAGS="$(TARGET_CFLAGS)" \
+ compile
+endif
ifeq ($(ADK_TARGET_TOOLCHAIN),y)
# cleanup toolchain
-find $(STAGING_TARGET_DIR) $(STAGING_HOST_DIR) -name \*.la -delete
diff --git a/toolchain/uclibc/Makefile b/toolchain/uclibc/Makefile
index 8eae50526..fe1a843e9 100644
--- a/toolchain/uclibc/Makefile
+++ b/toolchain/uclibc/Makefile
@@ -112,6 +112,13 @@ $(WRKBUILD)/.fixup:
RUNTIME_PREFIX=/ \
CPU_CFLAGS="$(TARGET_CFLAGS)" \
all install_runtime
+ifeq ($(ADK_UCLIBC_TEST),y)
+ PATH='$(HOST_PATH)' $(MAKE) -C $(WRKBUILD)/test \
+ UCLIBC_ONLY=1 \
+ TEST_INSTALLED_UCLIBC=1 \
+ CPU_CFLAGS="$(TARGET_CFLAGS)" \
+ compile
+endif
ifeq ($(ADK_TARGET_TOOLCHAIN),y)
# cleanup toolchain
-find $(STAGING_TARGET_DIR) $(STAGING_HOST_DIR) -name \*.la -delete