Browse Source

first steps to get testsuite of uClibc running

Waldemar Brodkorb 11 years ago
parent
commit
704a25b7c5
3 changed files with 21 additions and 0 deletions
  1. 7 0
      target/config/Config.in.toolchain
  2. 7 0
      toolchain/uclibc-ng/Makefile
  3. 7 0
      toolchain/uclibc/Makefile

+ 7 - 0
target/config/Config.in.toolchain

@@ -140,4 +140,11 @@ config ADK_STATIC_TOOLCHAIN
 	help
 	help
 	  If you want to create more portable toolchains, build them static.
 	  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
 endmenu

+ 7 - 0
toolchain/uclibc-ng/Makefile

@@ -124,6 +124,13 @@ $(WRKBUILD)/.fixup:
 		RUNTIME_PREFIX=/ \
 		RUNTIME_PREFIX=/ \
 		CPU_CFLAGS="$(TARGET_CFLAGS)" \
 		CPU_CFLAGS="$(TARGET_CFLAGS)" \
 		all install_runtime
 		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)
 ifeq ($(ADK_TARGET_TOOLCHAIN),y)
 	# cleanup toolchain
 	# cleanup toolchain
 	-find $(STAGING_TARGET_DIR) $(STAGING_HOST_DIR) -name \*.la -delete
 	-find $(STAGING_TARGET_DIR) $(STAGING_HOST_DIR) -name \*.la -delete

+ 7 - 0
toolchain/uclibc/Makefile

@@ -112,6 +112,13 @@ $(WRKBUILD)/.fixup:
 		RUNTIME_PREFIX=/ \
 		RUNTIME_PREFIX=/ \
 		CPU_CFLAGS="$(TARGET_CFLAGS)" \
 		CPU_CFLAGS="$(TARGET_CFLAGS)" \
 		all install_runtime
 		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)
 ifeq ($(ADK_TARGET_TOOLCHAIN),y)
 	# cleanup toolchain
 	# cleanup toolchain
 	-find $(STAGING_TARGET_DIR) $(STAGING_HOST_DIR) -name \*.la -delete
 	-find $(STAGING_TARGET_DIR) $(STAGING_HOST_DIR) -name \*.la -delete