initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
config BR2_PACKAGE_UCLIBC_NG_TEST
|
||||
bool "uclibc-ng-test"
|
||||
help
|
||||
Enabling this option will compile and install the uClibc-ng
|
||||
test suite. This is useful if you want to check if the
|
||||
uClibc-ng library is working for your architecture and/or
|
||||
help developing uClibc-ng.
|
||||
|
||||
The test suite will be installed into
|
||||
/usr/lib/uclibc-ng-test directory. To run the test suite
|
||||
enter the /usr/lib/uclibc-ng-test/test directory and type
|
||||
"sh uclibcng-testrunner.sh".
|
||||
|
||||
See the /usr/lib/uclibc-ng-test/test/README for additional
|
||||
information.
|
||||
|
||||
This is not needed at all for normal builds, so you can
|
||||
safely say no if you do not plan to dig into your C library.
|
||||
|
||||
The tests can also be used for GNU libc or musl.
|
||||
|
||||
http://www.uclibc-ng.org
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 f731307c0547ce4bbd3f5025972f64e9b22208a147e34e5745000b54d4d3aa98 uclibc-ng-test-0844445e7358eb10e716155b55b0fb23e88d644a-br1.tar.gz
|
||||
sha256 6095e9ffa777dd22839f7801aa845b31c9ed07f3d6bf8a26dc5d2dec8ccc0ef3 COPYING.LIB
|
||||
@@ -0,0 +1,63 @@
|
||||
################################################################################
|
||||
#
|
||||
# uclibc-ng-test
|
||||
#
|
||||
################################################################################
|
||||
|
||||
UCLIBC_NG_TEST_VERSION = 0844445e7358eb10e716155b55b0fb23e88d644a
|
||||
UCLIBC_NG_TEST_SITE = git://uclibc-ng.org/git/uclibc-ng-test
|
||||
UCLIBC_NG_TEST_LICENSE = LGPL-2.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
|
||||
|
||||
# obsolete encrypt and setkey functions are not available since glibc 2.28
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),y)
|
||||
UCLIBC_NG_TEST_MAKE_ENV += NO_CRYPT=1
|
||||
endif
|
||||
|
||||
# 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
|
||||
# no TLS macros available
|
||||
ifeq ($(BR2_nds32)$(BR2_s390x),y)
|
||||
UCLIBC_NG_TEST_MAKE_ENV += NO_TLS=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)" \
|
||||
UCLIBC_EXTRA_LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||
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))
|
||||
Reference in New Issue
Block a user