summaryrefslogtreecommitdiff
path: root/package/uclibc-ng/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2014-07-11 09:31:49 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2014-07-11 09:32:00 +0200
commitbdeefe1fb263ee9726ab4f2c3372f4e71c16cd2c (patch)
tree5bdc68f331f32d8f4618d8fec6348cbbef7e6616 /package/uclibc-ng/Makefile
parent62b184310a21dec12f5b31ee725ec5d342a48c1c (diff)
simplify uClibc toolchain builds, add uClibc-ng test subpackage
Diffstat (limited to 'package/uclibc-ng/Makefile')
-rw-r--r--package/uclibc-ng/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/package/uclibc-ng/Makefile b/package/uclibc-ng/Makefile
index c6d5d231c..7bb5df8dc 100644
--- a/package/uclibc-ng/Makefile
+++ b/package/uclibc-ng/Makefile
@@ -13,9 +13,11 @@ PKG_OPTS:= noremove nostaging noscripts
PKG_VERSION:= 1.0.0
BETA:= beta2
-PKG_SUBPKGS:= UCLIBC_NG UCLIBC_NG_DEV
+PKG_SUBPKGS:= UCLIBC_NG UCLIBC_NG_DEV UCLIBC_NG_TEST
PKGSD_UCLIBC_NG_DEV:= development files for uclibc-ng
PKGSC_UCLIBC_NG_DEV:= devel
+PKGSD_UCLIBC_NG_TEST:= test suite for uclibc-ng
+PKGSS_UCLIBC_NG_TEST:= make
NO_DISTFILES:= 1
@@ -23,6 +25,7 @@ include $(ADK_TOPDIR)/mk/package.mk
$(eval $(call PKG_template,UCLIBC_NG,uclibc-ng,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
$(eval $(call PKG_template,UCLIBC_NG_DEV,uclibc-ng-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_UCLIBC_NG_DEV},${PKGSC_UCLIBC_NG_DEV},${PKG_OPTS}))
+$(eval $(call PKG_template,UCLIBC_NG_TEST,uclibc-ng-test,$(PKG_VERSION)-${PKG_RELEASE},${PKGSS_UCLIBC_NG_TEST},${PKGSD_UCLIBC_NG_TEST},${PKG_SECTION},${PKG_OPTS}))
CONFIG_STYLE:= manual
BUILD_STYLE:= manual
@@ -75,4 +78,13 @@ uclibc-ng-dev-install:
@find $(IDIR_UCLIBC_NG_DEV) -name .install -exec rm {} \;
@find $(IDIR_UCLIBC_NG_DEV) -name ..install.cmd -exec rm {} \;
+uclibc-ng-test-install:
+ ${INSTALL_DIR} ${IDIR_UCLIBC_NG_TEST}/opt/uclibc-ng
+ ${CP} $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)$(BETA)-$(PKG_RELEASE)/${PKG_NAME}-${PKG_VERSION}$(BETA)/test \
+ ${IDIR_UCLIBC_NG_TEST}/opt/uclibc-ng
+ ${CP} $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)$(BETA)-$(PKG_RELEASE)/${PKG_NAME}-${PKG_VERSION}$(BETA)/{Rules.mak,.config} \
+ ${IDIR_UCLIBC_NG_TEST}/opt/uclibc-ng
+ find ${IDIR_UCLIBC_NG_TEST}/opt/uclibc-ng -name \*.c -delete
+ find ${IDIR_UCLIBC_NG_TEST}/opt/uclibc-ng -name \*.o -delete
+
include ${ADK_TOPDIR}/mk/pkg-bottom.mk