efd63573bc
We need to link with -lrt for some tests. Update to latest upstream version. Fixes: http://autobuild.buildroot.net/results/7388ffcc51a6686b8b708d7373427368d3755870 http://autobuild.buildroot.net/results/926716ed127dea879c5b26c4d04dc7f0615c8f34 http://autobuild.buildroot.net/results/737f1651a8bba7d3d815f46ec796955d09ba96bd http://autobuild.buildroot.net/results/56a8d67a45469d2a478da8d7d1ad7c5fb5e6c0c5 Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
54 lines
1.6 KiB
Makefile
54 lines
1.6 KiB
Makefile
################################################################################
|
|
#
|
|
# uclibc-ng-test
|
|
#
|
|
################################################################################
|
|
|
|
UCLIBC_NG_TEST_VERSION = c9b9876cefc142a23aa622b821290ed16af80058
|
|
UCLIBC_NG_TEST_SITE = git://uclibc-ng.org/git/uclibc-ng-test
|
|
UCLIBC_NG_TEST_LICENSE = LGPLv2.1+
|
|
UCLIBC_NG_TEST_LICENSE_FILES = COPYING.LIB
|
|
|
|
# the math tests are recently synced from glibc and need more adaption before
|
|
# regular testing is possible
|
|
UCLIBC_NG_TEST_MAKE_ENV += NO_MATH=1
|
|
|
|
# locale tests are not compatible with musl, yet
|
|
ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
|
|
UCLIBC_NG_TEST_MAKE_ENV += NO_LOCALE=1
|
|
endif
|
|
ifeq ($(BR2_USE_WCHAR),)
|
|
UCLIBC_NG_TEST_MAKE_ENV += NO_WCHAR=1
|
|
endif
|
|
ifeq ($(BR2_ENABLE_LOCALE),)
|
|
UCLIBC_NG_TEST_MAKE_ENV += NO_LOCALE=1
|
|
endif
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
|
|
UCLIBC_NG_TEST_MAKE_ENV += NO_TLS=1 NO_THREADS=1
|
|
endif
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS_NPTL),)
|
|
UCLIBC_NG_TEST_MAKE_ENV += NO_TLS=1 NO_NPTL=1
|
|
endif
|
|
# most NPTL/TLS tests use dlopen
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
UCLIBC_NG_TEST_MAKE_ENV += NO_TLS=1 NO_NPTL=1 NO_DL=1
|
|
endif
|
|
|
|
# to execute tests in a deterministic order, call test_gen separately
|
|
define UCLIBC_NG_TEST_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(UCLIBC_NG_TEST_MAKE_ENV) $(MAKE) -C $(@D) \
|
|
CC="$(TARGET_CC)" \
|
|
UCLIBC_EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
|
|
test_compile
|
|
$(TARGET_MAKE_ENV) $(UCLIBC_NG_TEST_MAKE_ENV) $(MAKE1) -C $(@D) \
|
|
CC="$(TARGET_CC)" \
|
|
UCLIBC_EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
|
|
test_gen
|
|
endef
|
|
|
|
define UCLIBC_NG_TEST_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|