Initial Commit
- initial default booting image
This commit is contained in:
59
package/uclibc-ng-test/0001-Fix-error-absent-sys-asm-h.patch
Normal file
59
package/uclibc-ng-test/0001-Fix-error-absent-sys-asm-h.patch
Normal file
@@ -0,0 +1,59 @@
|
||||
From a99d5bdb51bdab92a303c508b2b938ee0789d614 Mon Sep 17 00:00:00 2001
|
||||
From: Dmitry Chestnykh <dm.chestnykh@gmail.com>
|
||||
Date: Thu, 25 Jul 2024 09:15:11 +0300
|
||||
Subject: [PATCH] Fix errors due to absent sys/asm.h in mips64 musl build
|
||||
|
||||
Upstream: https://patchwork.ozlabs.org/project/uclibc-ng/patch/20240725081519.611076-1-dm.chestnykh@gmail.com/
|
||||
Signed-off-by: Dmitry Chestnykh <dm.chestnykh@gmail.com>
|
||||
---
|
||||
test/tls/tls-macros-mips.h | 33 +++++++++++++++++++++++++++++++++
|
||||
1 file changed, 33 insertions(+)
|
||||
|
||||
diff --git a/test/tls/tls-macros-mips.h b/test/tls/tls-macros-mips.h
|
||||
index eed0938..bd4c5c4 100644
|
||||
--- a/test/tls/tls-macros-mips.h
|
||||
+++ b/test/tls/tls-macros-mips.h
|
||||
@@ -1,7 +1,40 @@
|
||||
/* Macros to support TLS testing in times of missing compiler support. */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
+#if defined(__has_include) && __has_include(<sys/asm.h>)
|
||||
#include <sys/asm.h>
|
||||
+#else
|
||||
+
|
||||
+#define __STRING(x) #x
|
||||
+
|
||||
+#if ((_MIPS_SIM == _MIPS_SIM_ABI32 || _MIPS_SIM == _ABI32) && _MIPS_SZPTR == 32)
|
||||
+#define PTR_ADDIU addiu
|
||||
+#define PTR_L lw
|
||||
+#endif
|
||||
+
|
||||
+#if _MIPS_SIM == _MIPS_SIM_NABI32 || _MIPS_SIM == _NABI32
|
||||
+
|
||||
+#if !defined __mips_isa_rev || __mips_isa_rev < 6
|
||||
+#define PTR_ADDU add
|
||||
+#define PTR_ADDIU addi
|
||||
+#else
|
||||
+#define PTR_ADDU addu
|
||||
+#define PTR_ADDIU addiu
|
||||
+#endif
|
||||
+
|
||||
+#define PTR_L lw
|
||||
+#endif
|
||||
+
|
||||
+#if ((_MIPS_SIM == _MIPS_SIM_ABI32 || _MIPS_SIM == _ABI32) && _MIPS_SZPTR == 64) \
|
||||
+ || _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _ABIN32
|
||||
+
|
||||
+#define PTR_ADDU daddu
|
||||
+#define PTR_ADDIU daddiu
|
||||
+#define PTR_L ld
|
||||
+
|
||||
+#endif
|
||||
+
|
||||
+#endif
|
||||
|
||||
#define __STRING2(X) __STRING(X)
|
||||
#define ADDU __STRING2(PTR_ADDU)
|
||||
--
|
||||
2.45.2
|
||||
|
||||
22
package/uclibc-ng-test/Config.in
Normal file
22
package/uclibc-ng-test/Config.in
Normal file
@@ -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
|
||||
3
package/uclibc-ng-test/uclibc-ng-test.hash
Normal file
3
package/uclibc-ng-test/uclibc-ng-test.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 fae9be86b0eb050e139047d934e7e02599d074d481523dead65ce164c8453500 uclibc-ng-test-132c6134d69146bcafbdda68ae3a9cbd9f8fb921-git4.tar.gz
|
||||
sha256 6095e9ffa777dd22839f7801aa845b31c9ed07f3d6bf8a26dc5d2dec8ccc0ef3 COPYING.LIB
|
||||
64
package/uclibc-ng-test/uclibc-ng-test.mk
Normal file
64
package/uclibc-ng-test/uclibc-ng-test.mk
Normal file
@@ -0,0 +1,64 @@
|
||||
################################################################################
|
||||
#
|
||||
# uclibc-ng-test
|
||||
#
|
||||
################################################################################
|
||||
|
||||
UCLIBC_NG_TEST_VERSION = 132c6134d69146bcafbdda68ae3a9cbd9f8fb921
|
||||
UCLIBC_NG_TEST_SITE = https://git.uclibc-ng.org/git/uclibc-ng-test.git
|
||||
UCLIBC_NG_TEST_SITE_METHOD = git
|
||||
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_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