Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
Add Nios-II support
|
||||
|
||||
[Gustavo: update for nspr 4.10.9]
|
||||
Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
|
||||
|
||||
diff -Nura nspr-4.10.9.orig/nspr/pr/include/md/_linux.cfg nspr-4.10.9/nspr/pr/include/md/_linux.cfg
|
||||
--- nspr-4.10.9.orig/nspr/pr/include/md/_linux.cfg 2015-10-03 08:11:43.229387215 -0300
|
||||
+++ nspr-4.10.9/nspr/pr/include/md/_linux.cfg 2015-10-03 08:11:55.277798841 -0300
|
||||
@@ -1017,6 +1017,51 @@
|
||||
#define PR_BYTES_PER_WORD_LOG2 2
|
||||
#define PR_BYTES_PER_DWORD_LOG2 3
|
||||
|
||||
+#elif defined(nios2)
|
||||
+
|
||||
+#define IS_LITTLE_ENDIAN 1
|
||||
+#undef IS_BIG_ENDIAN
|
||||
+
|
||||
+#define PR_BYTES_PER_BYTE 1
|
||||
+#define PR_BYTES_PER_SHORT 2
|
||||
+#define PR_BYTES_PER_INT 4
|
||||
+#define PR_BYTES_PER_INT64 8
|
||||
+#define PR_BYTES_PER_LONG 4
|
||||
+#define PR_BYTES_PER_FLOAT 4
|
||||
+#define PR_BYTES_PER_DOUBLE 8
|
||||
+#define PR_BYTES_PER_WORD 4
|
||||
+#define PR_BYTES_PER_DWORD 8
|
||||
+
|
||||
+#define PR_BITS_PER_BYTE 8
|
||||
+#define PR_BITS_PER_SHORT 16
|
||||
+#define PR_BITS_PER_INT 32
|
||||
+#define PR_BITS_PER_INT64 64
|
||||
+#define PR_BITS_PER_LONG 32
|
||||
+#define PR_BITS_PER_FLOAT 32
|
||||
+#define PR_BITS_PER_DOUBLE 64
|
||||
+#define PR_BITS_PER_WORD 32
|
||||
+
|
||||
+#define PR_BITS_PER_BYTE_LOG2 3
|
||||
+#define PR_BITS_PER_SHORT_LOG2 4
|
||||
+#define PR_BITS_PER_INT_LOG2 5
|
||||
+#define PR_BITS_PER_INT64_LOG2 6
|
||||
+#define PR_BITS_PER_LONG_LOG2 5
|
||||
+#define PR_BITS_PER_FLOAT_LOG2 5
|
||||
+#define PR_BITS_PER_DOUBLE_LOG2 6
|
||||
+#define PR_BITS_PER_WORD_LOG2 5
|
||||
+
|
||||
+#define PR_ALIGN_OF_SHORT 2
|
||||
+#define PR_ALIGN_OF_INT 4
|
||||
+#define PR_ALIGN_OF_LONG 4
|
||||
+#define PR_ALIGN_OF_INT64 4
|
||||
+#define PR_ALIGN_OF_FLOAT 4
|
||||
+#define PR_ALIGN_OF_DOUBLE 4
|
||||
+#define PR_ALIGN_OF_POINTER 4
|
||||
+#define PR_ALIGN_OF_WORD 4
|
||||
+
|
||||
+#define PR_BYTES_PER_WORD_LOG2 2
|
||||
+#define PR_BYTES_PER_DWORD_LOG2 3
|
||||
+
|
||||
#else
|
||||
|
||||
#error "Unknown CPU architecture"
|
||||
diff -Nura nspr-4.10.9.orig/nspr/pr/include/md/_linux.h nspr-4.10.9/nspr/pr/include/md/_linux.h
|
||||
--- nspr-4.10.9.orig/nspr/pr/include/md/_linux.h 2015-10-03 08:11:43.229387215 -0300
|
||||
+++ nspr-4.10.9/nspr/pr/include/md/_linux.h 2015-10-03 08:12:22.474728003 -0300
|
||||
@@ -57,6 +57,8 @@
|
||||
#define _PR_SI_ARCHITECTURE "m32r"
|
||||
#elif defined(__or1k__)
|
||||
#define _PR_SI_ARCHITECTURE "or1k"
|
||||
+#elif defined(nios2)
|
||||
+#define _PR_SI_ARCHITECTURE "nios2"
|
||||
#else
|
||||
#error "Unknown CPU architecture"
|
||||
#endif
|
||||
@@ -0,0 +1,80 @@
|
||||
Add Microblaze support
|
||||
|
||||
[Gustavo: update for nspr 4.10.9]
|
||||
Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
|
||||
|
||||
diff -Nura nspr-4.10.9.orig/nspr/pr/include/md/_linux.cfg nspr-4.10.9/nspr/pr/include/md/_linux.cfg
|
||||
--- nspr-4.10.9.orig/nspr/pr/include/md/_linux.cfg 2015-10-03 08:13:11.845414714 -0300
|
||||
+++ nspr-4.10.9/nspr/pr/include/md/_linux.cfg 2015-10-03 08:13:20.435708195 -0300
|
||||
@@ -1062,6 +1062,56 @@
|
||||
#define PR_BYTES_PER_WORD_LOG2 2
|
||||
#define PR_BYTES_PER_DWORD_LOG2 3
|
||||
|
||||
+#elif defined(__microblaze__)
|
||||
+
|
||||
+#if defined(__BIG_ENDIAN__)
|
||||
+#define IS_BIG_ENDIAN 1
|
||||
+#undef IS_LITTLE_ENDIAN
|
||||
+#else
|
||||
+#define IS_LITTLE_ENDIAN 1
|
||||
+#undef IS_BIG_ENDIAN
|
||||
+#endif
|
||||
+
|
||||
+#define PR_BYTES_PER_BYTE 1
|
||||
+#define PR_BYTES_PER_SHORT 2
|
||||
+#define PR_BYTES_PER_INT 4
|
||||
+#define PR_BYTES_PER_INT64 8
|
||||
+#define PR_BYTES_PER_LONG 4
|
||||
+#define PR_BYTES_PER_FLOAT 4
|
||||
+#define PR_BYTES_PER_DOUBLE 8
|
||||
+#define PR_BYTES_PER_WORD 4
|
||||
+#define PR_BYTES_PER_DWORD 8
|
||||
+
|
||||
+#define PR_BITS_PER_BYTE 8
|
||||
+#define PR_BITS_PER_SHORT 16
|
||||
+#define PR_BITS_PER_INT 32
|
||||
+#define PR_BITS_PER_INT64 64
|
||||
+#define PR_BITS_PER_LONG 32
|
||||
+#define PR_BITS_PER_FLOAT 32
|
||||
+#define PR_BITS_PER_DOUBLE 64
|
||||
+#define PR_BITS_PER_WORD 32
|
||||
+
|
||||
+#define PR_BITS_PER_BYTE_LOG2 3
|
||||
+#define PR_BITS_PER_SHORT_LOG2 4
|
||||
+#define PR_BITS_PER_INT_LOG2 5
|
||||
+#define PR_BITS_PER_INT64_LOG2 6
|
||||
+#define PR_BITS_PER_LONG_LOG2 5
|
||||
+#define PR_BITS_PER_FLOAT_LOG2 5
|
||||
+#define PR_BITS_PER_DOUBLE_LOG2 6
|
||||
+#define PR_BITS_PER_WORD_LOG2 5
|
||||
+
|
||||
+#define PR_ALIGN_OF_SHORT 2
|
||||
+#define PR_ALIGN_OF_INT 4
|
||||
+#define PR_ALIGN_OF_LONG 4
|
||||
+#define PR_ALIGN_OF_INT64 4
|
||||
+#define PR_ALIGN_OF_FLOAT 4
|
||||
+#define PR_ALIGN_OF_DOUBLE 4
|
||||
+#define PR_ALIGN_OF_POINTER 4
|
||||
+#define PR_ALIGN_OF_WORD 4
|
||||
+
|
||||
+#define PR_BYTES_PER_WORD_LOG2 2
|
||||
+#define PR_BYTES_PER_DWORD_LOG2 3
|
||||
+
|
||||
#else
|
||||
|
||||
#error "Unknown CPU architecture"
|
||||
diff -Nura nspr-4.10.9.orig/nspr/pr/include/md/_linux.h nspr-4.10.9/nspr/pr/include/md/_linux.h
|
||||
--- nspr-4.10.9.orig/nspr/pr/include/md/_linux.h 2015-10-03 08:13:11.845414714 -0300
|
||||
+++ nspr-4.10.9/nspr/pr/include/md/_linux.h 2015-10-03 08:14:53.351882603 -0300
|
||||
@@ -57,8 +57,11 @@
|
||||
#define _PR_SI_ARCHITECTURE "m32r"
|
||||
#elif defined(__or1k__)
|
||||
#define _PR_SI_ARCHITECTURE "or1k"
|
||||
+#elif defined(__microblaze__)
|
||||
+#define _PR_SI_ARCHITECTURE "microblaze"
|
||||
#elif defined(nios2)
|
||||
#define _PR_SI_ARCHITECTURE "nios2"
|
||||
+#elif defined(nios2)
|
||||
#else
|
||||
#error "Unknown CPU architecture"
|
||||
#endif
|
||||
@@ -0,0 +1,35 @@
|
||||
From c950bcf9cc7bdc68ed9751a1b7d04f4b4c2a9fb0 Mon Sep 17 00:00:00 2001
|
||||
From: Sergio Prado <sergio.prado@e-labworks.com>
|
||||
Date: Tue, 5 Jan 2016 21:15:34 -0200
|
||||
Subject: [PATCH] enable internal getproto functions for musl
|
||||
|
||||
Musl toolchains does not have getprotobyname_r and getprotobynumber_r
|
||||
functions and need its internal implementation.
|
||||
|
||||
Patch backported from Alpine Linux commit
|
||||
a162da839db0d3f8be94a5c1ad2e2e54e691c38a.
|
||||
|
||||
Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
|
||||
---
|
||||
nspr/pr/src/misc/prnetdb.c | 5 +----
|
||||
1 file changed, 1 insertion(+), 4 deletions(-)
|
||||
|
||||
diff --git a/nspr/pr/src/misc/prnetdb.c b/nspr/pr/src/misc/prnetdb.c
|
||||
index b86248f863f0..dc83a5615f45 100644
|
||||
--- a/nspr/pr/src/misc/prnetdb.c
|
||||
+++ b/nspr/pr/src/misc/prnetdb.c
|
||||
@@ -61,10 +61,7 @@ PRLock *_pr_dnsLock = NULL;
|
||||
#define _PR_HAVE_GETPROTO_R_POINTER
|
||||
#endif
|
||||
|
||||
-#if defined(SOLARIS) || (defined(BSDI) && defined(_REENTRANT)) \
|
||||
- || (defined(LINUX) && defined(_REENTRANT) \
|
||||
- && !(defined(__GLIBC__) && __GLIBC__ >= 2) \
|
||||
- && !defined(ANDROID))
|
||||
+#if defined(SOLARIS) || (defined(BSDI) && defined(_REENTRANT))
|
||||
#define _PR_HAVE_GETPROTO_R
|
||||
#define _PR_HAVE_GETPROTO_R_POINTER
|
||||
#endif
|
||||
--
|
||||
1.9.1
|
||||
|
||||
22
deprecated/firmware/buildroot/package/libnspr/Config.in
Normal file
22
deprecated/firmware/buildroot/package/libnspr/Config.in
Normal file
@@ -0,0 +1,22 @@
|
||||
config BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT
|
||||
def_bool y
|
||||
depends on !BR2_arc && !BR2_xtensa && !BR2_bfin
|
||||
|
||||
if BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT
|
||||
|
||||
config BR2_PACKAGE_LIBNSPR
|
||||
bool "libnspr"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on !BR2_STATIC_LIBS
|
||||
help
|
||||
NSPR is the Netscape Portable Runtime library which provides
|
||||
a platform-neutral API for system level and libc like
|
||||
functions. The library is used by the Mozilla project as well
|
||||
as others.
|
||||
|
||||
http://www.mozilla.org/projects/nspr/
|
||||
|
||||
comment "libnspr needs a toolchain w/ threads, dynamic library"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,2 @@
|
||||
# From https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.11/src/SHA256SUMS
|
||||
sha256 cb320a9eee7028275ac0fce7adc39dee36f14f02fd8432fce1b7e1aa5e3685c2 nspr-4.11.tar.gz
|
||||
52
deprecated/firmware/buildroot/package/libnspr/libnspr.mk
Normal file
52
deprecated/firmware/buildroot/package/libnspr/libnspr.mk
Normal file
@@ -0,0 +1,52 @@
|
||||
################################################################################
|
||||
#
|
||||
# libnspr
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBNSPR_VERSION = 4.11
|
||||
LIBNSPR_SOURCE = nspr-$(LIBNSPR_VERSION).tar.gz
|
||||
LIBNSPR_SITE = https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v$(LIBNSPR_VERSION)/src
|
||||
LIBNSPR_SUBDIR = nspr
|
||||
LIBNSPR_INSTALL_STAGING = YES
|
||||
LIBNSPR_CONFIG_SCRIPTS = nspr-config
|
||||
LIBNSPR_LICENSE = MPLv2.0
|
||||
LIBNSPR_LICENSE_FILES = nspr/LICENSE
|
||||
|
||||
# Set the host CFLAGS and LDFLAGS so NSPR does not guess wrongly
|
||||
LIBNSPR_CONF_ENV = \
|
||||
HOST_CFLAGS="-g -O2" \
|
||||
HOST_LDFLAGS="-lc"
|
||||
# NSPR mixes up --build and --host
|
||||
LIBNSPR_CONF_OPTS = --host=$(GNU_HOST_NAME)
|
||||
LIBNSPR_CONF_OPTS += --$(if $(BR2_ARCH_IS_64),en,dis)able-64bit
|
||||
|
||||
# ./nspr/pr/include/md/_linux.h tests only __GLIBC__ version to detect
|
||||
# c-library features, list musl features here for now (taken from
|
||||
# Alpine Linux).
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
|
||||
LIBNSPR_CFLAGS += \
|
||||
-D_PR_POLL_AVAILABLE \
|
||||
-D_PR_HAVE_OFF64_T \
|
||||
-D_PR_INET6 \
|
||||
-D_PR_HAVE_INET_NTOP \
|
||||
-D_PR_HAVE_GETHOSTBYNAME2 \
|
||||
-D_PR_HAVE_GETADDRINFO \
|
||||
-D_PR_INET6_PROBE
|
||||
endif
|
||||
|
||||
LIBNSPR_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) $(LIBNSPR_CFLAGS)"
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
LIBNSPR_MAKE_OPTS = SHARED_LIBRARY=
|
||||
LIBNSPR_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) SHARED_LIBRARY= install
|
||||
LIBNSPR_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) SHARED_LIBRARY= install
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_SHARED_LIBS),y)
|
||||
LIBNSPR_MAKE_OPTS = LIBRARY=
|
||||
LIBNSPR_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) LIBRARY= install
|
||||
LIBNSPR_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) LIBRARY= install
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user