summaryrefslogtreecommitdiff
path: root/package/uclibc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-07-31 10:27:14 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-07-31 10:27:14 +0200
commit561ca608cd6c86bfe61eb7e0ddc1cc0b8e4a510c (patch)
tree685588227496832069a78a55c57f1f3668c8f2e5 /package/uclibc
parent849a80296eb9291895ee9110d56001774d6766c0 (diff)
add uclibc test-suite package
Diffstat (limited to 'package/uclibc')
-rw-r--r--package/uclibc/Makefile15
1 files changed, 14 insertions, 1 deletions
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