uclibc-ng-test: use tar.gz
[openadk.git] / package / uclibc-ng-test / Makefile
blob44a7e9cde9b3866f168b92098a82af8d56918afd
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= uClibc-ng-test
7 PKG_VERSION:= git
8 PKG_RELEASE:= 1
9 PKG_DESCR:= embedded c library testsuite
10 PKG_SECTION:= base/tests
11 PKG_KDEPENDS:= inotify-user
12 PKG_URL:= http://www.uclibc-ng.org
13 PKG_SITES:= https://git.uclibc-ng.org/git/uclibc-ng-test.git
15 PKG_NOPARALLEL:= 1
17 DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
19 include $(ADK_TOPDIR)/mk/package.mk
21 $(eval $(call PKG_template,UCLIBC_NG_TEST,uclibc-ng-test,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
23 CONFIG_STYLE:= manual
25 XAKE_FLAGS+= V=1
26 ifeq ($(ADK_TARGET_LIB_GLIBC),y)
27 XAKE_FLAGS+= NO_CRYPT=1
28 endif
29 ifeq ($(ADK_TARGET_LIB_MUSL),y)
30 XAKE_FLAGS+= NO_MATH=1
31 endif
32 ifeq ($(ADK_TARGET_WITH_LT),y)
33 XAKE_FLAGS+= NO_TLS=1 NO_NPTL=1
34 endif
35 ifeq ($(ADK_TARGET_WITHOUT_THREADS),y)
36 XAKE_FLAGS+= NO_TLS=1 NO_THREADS=1
37 endif
38 ifeq ($(ADK_TARGET_BINFMT_FLAT),y)
39 XAKE_FLAGS+= NO_DL=1
40 endif
41 ifeq ($(ADK_TARGET_USE_STATIC_LIBS_ONLY),y)
42 XAKE_FLAGS+= NO_DL=1 NO_TLS=1 NO_NPTL=1
43 endif
44 ifeq ($(ADK_TARGET_LIBC_WITH_LOCALE),)
45 XAKE_FLAGS+= NO_LOCALE=1
46 endif
47 ifeq ($(ADK_TARGET_ARCH_KVX),y)
48 XAKE_FLAGS+= NO_TLS=1
49 endif
50 ifeq ($(ADK_TARGET_WITH_MMU),)
51 XAKE_FLAGS+= NO_NPTL=1
52 endif
54 uclibc-ng-test-install:
55 ${INSTALL_DIR} ${IDIR_UCLIBC_NG_TEST}/etc
56 echo '00:11:22:33:44:55 teeth' > ${IDIR_UCLIBC_NG_TEST}/etc/ethers
57 ${INSTALL_DIR} ${IDIR_UCLIBC_NG_TEST}/usr/lib
58 ${CP} $(WRKINST)/usr/lib/* ${IDIR_UCLIBC_NG_TEST}/usr/lib/
59 -find $(IDIR_UCLIBC_NG_TEST) -name \*.gdb -delete
61 include ${ADK_TOPDIR}/mk/pkg-bottom.mk