From 704a25b7c5ba35df23f1cefe668dee351ce0deeb Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 8 Jul 2014 19:55:56 +0200 Subject: first steps to get testsuite of uClibc running --- target/config/Config.in.toolchain | 7 +++++++ toolchain/uclibc-ng/Makefile | 7 +++++++ toolchain/uclibc/Makefile | 7 +++++++ 3 files changed, 21 insertions(+) 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 -- cgit v1.2.3