From 561ca608cd6c86bfe61eb7e0ddc1cc0b8e4a510c Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 31 Jul 2014 10:27:14 +0200 Subject: add uclibc test-suite package --- mk/build.mk | 9 +++++++-- package/uclibc/Makefile | 15 ++++++++++++++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/mk/build.mk b/mk/build.mk index 3667e7edc..72652c144 100644 --- a/mk/build.mk +++ b/mk/build.mk @@ -357,12 +357,17 @@ endif echo "ADK_PACKAGE_ADKTEST=y" >> $(ADK_TOPDIR)/.defconfig; \ echo "ADK_PACKAGE_LTP=y" >> $(ADK_TOPDIR)/.defconfig; \ fi - @if [ ! -z "$(ADK_TEST_UCLIBC_TESTSUITE)" ];then \ + @if [ ! -z "$(ADK_TEST_UCLIBC_NG_TESTSUITE)" ];then \ echo "ADK_PACKAGE_ADKTEST=y" >> $(ADK_TOPDIR)/.defconfig; \ echo "ADK_PACKAGE_UCLIBC_NG_TEST=y" >> $(ADK_TOPDIR)/.defconfig; \ echo "ADK_PACKAGE_MAKE=y" >> $(ADK_TOPDIR)/.defconfig; \ fi - @if [ ! -z "$(ADK_TEST_UCLIBC_NATIVE)" ];then \ + @if [ ! -z "$(ADK_TEST_UCLIBC_TESTSUITE)" ];then \ + echo "ADK_PACKAGE_ADKTEST=y" >> $(ADK_TOPDIR)/.defconfig; \ + echo "ADK_PACKAGE_UCLIBC_TEST=y" >> $(ADK_TOPDIR)/.defconfig; \ + echo "ADK_PACKAGE_MAKE=y" >> $(ADK_TOPDIR)/.defconfig; \ + fi + @if [ ! -z "$(ADK_TEST_UCLIBC_NG_NATIVE)" ];then \ echo "ADK_PACKAGE_ADKTEST=y" >> $(ADK_TOPDIR)/.defconfig; \ echo "ADK_PACKAGE_GCC=y" >> $(ADK_TOPDIR)/.defconfig; \ echo "ADK_PACKAGE_BINUTILS=y" >> $(ADK_TOPDIR)/.defconfig; \ diff --git a/package/uclibc/Makefile b/package/uclibc/Makefile index ecc94b02c..e5a13ebb5 100644 --- a/package/uclibc/Makefile +++ b/package/uclibc/Makefile @@ -11,9 +11,11 @@ PKG_DESCR:= embedded c library PKG_SECTION:= base/libs PKG_OPTS:= noremove nostaging noscripts -PKG_SUBPKGS:= UCLIBC UCLIBC_DEV +PKG_SUBPKGS:= UCLIBC UCLIBC_DEV UCLIBC_TEST PKGSD_UCLIBC_DEV:= development files for uclibc PKGSC_UCLIBC_DEV:= devel +PKGSD_UCLIBC_TEST:= test suite for uclibc +PKGSS_UCLIBC_TEST:= make NO_DISTFILES:= 1 @@ -21,6 +23,7 @@ include $(ADK_TOPDIR)/mk/package.mk $(eval $(call PKG_template,UCLIBC,uclibc,$(GIT_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS})) $(eval $(call PKG_template,UCLIBC_DEV,uclibc-dev,$(GIT_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_UCLIBC_DEV},${PKGSC_UCLIBC_DEV},${PKG_OPTS})) +$(eval $(call PKG_template,UCLIBC_TEST,uclibc-test,$(GIT_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_UCLIBC_TEST},${PKGSC_UCLIBC_TEST},${PKG_OPTS})) CONFIG_STYLE:= manual BUILD_STYLE:= manual @@ -68,4 +71,14 @@ uclibc-dev-install: @find $(IDIR_UCLIBC_DEV) -name .install -exec rm {} \; @find $(IDIR_UCLIBC_DEV) -name ..install.cmd -exec rm {} \; +uclibc-test-install: + ${INSTALL_DIR} ${IDIR_UCLIBC_TEST}/etc + echo '00:11:22:33:44:55 teeth' > ${IDIR_UCLIBC_TEST}/etc/ethers + ${INSTALL_DIR} ${IDIR_UCLIBC_TEST}/opt/uclibc + ${CP} $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(GIT_VERSION)-$(PKG_RELEASE)/${PKG_NAME}-${GIT_VERSION}/test \ + ${IDIR_UCLIBC_TEST}/opt/uclibc + ${CP} $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(GIT_VERSION)-$(PKG_RELEASE)/${PKG_NAME}-${GIT_VERSION}/{Rules.mak,.config} \ + ${IDIR_UCLIBC_TEST}/opt/uclibc + @find ${IDIR_UCLIBC_TEST}/opt/uclibc -name \*.o -exec rm {} \; + include ${ADK_TOPDIR}/mk/pkg-bottom.mk -- cgit v1.2.3