update buildroot to 2017.02.11
This commit is contained in:
@@ -0,0 +1,98 @@
|
||||
From 6754b208e7ec3bd1d4265db18fa4c0e7961a77bf Mon Sep 17 00:00:00 2001
|
||||
From: Eric Le Bihan <eric.le.bihan.dev@free.fr>
|
||||
Date: Mon, 20 Mar 2017 20:05:00 +0100
|
||||
Subject: [PATCH] No runtime tests for endianness
|
||||
|
||||
Replace build and execution of runtime test programs for determining
|
||||
the endianness of the target with compile time test programs.
|
||||
|
||||
This improves support for cross-compilation.
|
||||
|
||||
Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
|
||||
---
|
||||
configure | 15 +++++++++++----
|
||||
src/sysdeps/trybigendian.c | 16 ++++++++++++++++
|
||||
src/sysdeps/trylittleendian.c | 19 +++++++++++++++++++
|
||||
3 files changed, 46 insertions(+), 4 deletions(-)
|
||||
create mode 100644 src/sysdeps/trybigendian.c
|
||||
create mode 100644 src/sysdeps/trylittleendian.c
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index 1579025..4da9c5e 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -463,13 +463,20 @@ EOF
|
||||
fi
|
||||
exec 3>&-
|
||||
|
||||
- echo "Checking system endianness..."
|
||||
- $CC_AUTO $CPPFLAGS_AUTO $CFLAGS_AUTO -o tryendianness src/sysdeps/tryendianness.c
|
||||
- endianness=$(./tryendianness) || fail "$0: unable to determine endianness"
|
||||
+ echo "Checking system endianness..."
|
||||
+ if $CC_AUTO $CPPFLAGS_AUTO $CFLAGS_AUTO -o trybigendian src/sysdeps/trybigendian.c 2>/dev/null; then
|
||||
+ endianness=big
|
||||
+ else
|
||||
+ if $CC_AUTO $CPPFLAGS_AUTO $CFLAGS_AUTO -o trylittleendian src/sysdeps/trylittleendian.c 2>/dev/null; then
|
||||
+ endianness=little
|
||||
+ else
|
||||
+ fail "$0: unable to determine endianness"
|
||||
+ fi
|
||||
+ fi
|
||||
echo "endianness: $endianness" >> $sysdeps/sysdeps
|
||||
echo "#define ${package_macro_name}_ENDIANNESS \"$endianness\"" >> $sysdeps/sysdeps.h
|
||||
echo " ... $endianness"
|
||||
- rm -f tryendianness
|
||||
+ rm -f trybigendian trylittleendian
|
||||
|
||||
trytypesize ushort USHORT "unsigned short"
|
||||
trytypesize uint UINT "unsigned int"
|
||||
diff --git a/src/sysdeps/trybigendian.c b/src/sysdeps/trybigendian.c
|
||||
new file mode 100644
|
||||
index 0000000..d857572
|
||||
--- /dev/null
|
||||
+++ b/src/sysdeps/trybigendian.c
|
||||
@@ -0,0 +1,16 @@
|
||||
+#if defined(__BYTE_ORDER) && (__BYTE_ORDER == __BIG_ENDIAN) || \
|
||||
+ defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) || \
|
||||
+ defined(__BIG_ENDIAN) || \
|
||||
+ defined(__ARMEB__) || \
|
||||
+ defined(__THUMBEB__) || \
|
||||
+ defined(__AARCH64EB__) || \
|
||||
+ defined(_MIPSEB) || defined(__MIPSEB) || defined(__MIPSEB__)
|
||||
+#define YEAH
|
||||
+#else
|
||||
+#error "not big endian"
|
||||
+#endif
|
||||
+
|
||||
+int main(void)
|
||||
+{
|
||||
+ return 0;
|
||||
+}
|
||||
diff --git a/src/sysdeps/trylittleendian.c b/src/sysdeps/trylittleendian.c
|
||||
new file mode 100644
|
||||
index 0000000..68b93c1
|
||||
--- /dev/null
|
||||
+++ b/src/sysdeps/trylittleendian.c
|
||||
@@ -0,0 +1,19 @@
|
||||
+#if defined(__BYTE_ORDER) && (__BYTE_ORDER == __LITTLE_ENDIAN) || \
|
||||
+ defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) || \
|
||||
+ defined(__LITTLE_ENDIAN) || \
|
||||
+ defined(__ARMEL__) || \
|
||||
+ defined(__THUMBEL__) || \
|
||||
+ defined(__AARCH64EL__) || \
|
||||
+ defined(__i386) || defined(__i386__) || \
|
||||
+ defined(__amd64) || defined(__amd64__) || \
|
||||
+ defined(__x86_64) || defined(__x86_64__) || \
|
||||
+ defined(_MIPSEL) || defined(__MIPSEL) || defined(__MIPSEL__)
|
||||
+#define YEAH
|
||||
+#else
|
||||
+#error "not little endian"
|
||||
+#endif
|
||||
+
|
||||
+int main(void)
|
||||
+{
|
||||
+ return 0;
|
||||
+}
|
||||
--
|
||||
2.1.4
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
From d868600a3f437750bc44a783d677a25a48100096 Mon Sep 17 00:00:00 2001
|
||||
From: Eric Le Bihan <eric.le.bihan.dev@free.fr>
|
||||
Date: Sun, 4 Dec 2016 19:11:25 +0100
|
||||
Subject: [PATCH] No runtime tests for type sizes
|
||||
|
||||
Replace build and execution of runtime test programs for determining
|
||||
some type sizes of the target with compile time test programs.
|
||||
|
||||
This improves support for cross-compilation.
|
||||
|
||||
Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
|
||||
---
|
||||
configure | 24 +++++++++++++++++++++---
|
||||
1 file changed, 21 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index 4da9c5e..b5926ca 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -157,10 +157,28 @@ choose () {
|
||||
|
||||
trytypesize () {
|
||||
echo "Checking size of $3..."
|
||||
- $CC_AUTO $CPPFLAGS_AUTO $CFLAGS_AUTO $LDFLAGS_AUTO -o trysizeof$1 src/sysdeps/trysizeof$1.c
|
||||
- type_size=$(./trysizeof$1) || fail "$0: unable to determine size of $3"
|
||||
+ r=false
|
||||
+ type_size=0
|
||||
+ while true; do
|
||||
+ cat<<EOF>trysizeof$1.c
|
||||
+#include <sys/types.h>
|
||||
+
|
||||
+int main(void)
|
||||
+{
|
||||
+ static int v = 1 / !!((sizeof($3) == $type_size));
|
||||
+ return 0;
|
||||
+}
|
||||
+EOF
|
||||
+ if $CC_AUTO $CPPFLAGS_AUTO $CFLAGS_AUTO $LDFLAGS_AUTO -o trysizeof$1 trysizeof$1.c 2>/dev/null; then
|
||||
+ r=true
|
||||
+ break
|
||||
+ fi
|
||||
+ type_size=$(expr $type_size + 1)
|
||||
+ test $type_size -le 16 || break
|
||||
+ done
|
||||
+ test $r = true || fail "$0: unable to determine size of $3"
|
||||
type_bits=$(expr 8 \* $type_size)
|
||||
- rm -f trysizeof$1
|
||||
+ rm -f trysizeof$1 trysizeof$1.c
|
||||
echo "sizeof$1: $type_size" >> $sysdeps/sysdeps
|
||||
echo "#define ${package_macro_name}_SIZEOF$2 $type_size" >> $sysdeps/sysdeps.h
|
||||
echo "#define ${package_macro_name}_$2_BITS $type_bits" >> $sysdeps/sysdeps.h
|
||||
--
|
||||
2.5.5
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
From da293110f429e1206728c1551cf0f6b462b3d8c0 Mon Sep 17 00:00:00 2001
|
||||
From: Eric Le Bihan <eric.le.bihan.dev@free.fr>
|
||||
Date: Thu, 29 Dec 2016 19:36:24 +0100
|
||||
Subject: [PATCH] Make linker use dummy file when testing libs
|
||||
|
||||
For some architectures, like Xtensa or HPPA, ld from binutils requires
|
||||
the output file to be a regular file, as mentioned in a bug report on
|
||||
the mailing list [1].
|
||||
|
||||
So, use a dummy file as output file for ld in trylibs(), instead of
|
||||
/dev/null.
|
||||
|
||||
[1] https://sourceware.org/bugzilla/show_bug.cgi?id=19526
|
||||
|
||||
Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
|
||||
---
|
||||
configure | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index 1579025..12980fb 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -173,7 +173,7 @@ trylibs () {
|
||||
echo "Checking whether system has $2..." >&3
|
||||
shift 2
|
||||
if $CC_AUTO $CPPFLAGS_AUTO $CFLAGS_AUTO -c -o try$name.o src/sysdeps/try$name.c 2>/dev/null ; then
|
||||
- until $CC_AUTO $CFLAGS_AUTO $LDFLAGS_AUTO -o /dev/null try$name.o $args 2>/dev/null ; do
|
||||
+ until $CC_AUTO $CFLAGS_AUTO $LDFLAGS_AUTO -o try$name try$name.o $args 2>/dev/null ; do
|
||||
if test -z "$*" ; then
|
||||
rm -f try$name.o
|
||||
echo
|
||||
@@ -189,7 +189,7 @@ trylibs () {
|
||||
else
|
||||
echo " ... yes, with$args" >&3
|
||||
fi
|
||||
- rm -f try$name.o
|
||||
+ rm -f try$name.o try$name
|
||||
return 0
|
||||
else
|
||||
echo
|
||||
--
|
||||
2.4.11
|
||||
|
||||
9
bsp/buildroot-2017.02.11/package/skalibs/Config.in
Normal file
9
bsp/buildroot-2017.02.11/package/skalibs/Config.in
Normal file
@@ -0,0 +1,9 @@
|
||||
config BR2_PACKAGE_SKALIBS
|
||||
bool "skalibs"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
help
|
||||
skalibs is a package centralizing the FOSS C development
|
||||
files used for building all software at skarnet.org:
|
||||
it contains essentially general-purpose libraries.
|
||||
|
||||
http://skarnet.org/software/skalibs/
|
||||
2
bsp/buildroot-2017.02.11/package/skalibs/skalibs.hash
Normal file
2
bsp/buildroot-2017.02.11/package/skalibs/skalibs.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally generated
|
||||
sha256 0708172bc2ec9825f8a4f312d35f8dcd94da5f291425a598c33c873b3de77df8 skalibs-2.4.0.2.tar.gz
|
||||
54
bsp/buildroot-2017.02.11/package/skalibs/skalibs.mk
Normal file
54
bsp/buildroot-2017.02.11/package/skalibs/skalibs.mk
Normal file
@@ -0,0 +1,54 @@
|
||||
################################################################################
|
||||
#
|
||||
# skalibs
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SKALIBS_VERSION = 2.4.0.2
|
||||
SKALIBS_SITE = http://skarnet.org/software/skalibs
|
||||
SKALIBS_LICENSE = ISC
|
||||
SKALIBS_LICENSE_FILES = COPYING
|
||||
SKALIBS_INSTALL_STAGING = YES
|
||||
|
||||
SKALIBS_CONF_OPTS = \
|
||||
--prefix=/usr \
|
||||
--with-default-path=/sbin:/usr/sbin:/bin:/usr/bin \
|
||||
$(SHARED_STATIC_LIBS_OPTS)
|
||||
|
||||
define SKALIBS_CONFIGURE_CMDS
|
||||
(cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure $(SKALIBS_CONF_OPTS))
|
||||
endef
|
||||
|
||||
define SKALIBS_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
define SKALIBS_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
||||
rm -rf $(TARGET_DIR)/usr/lib/skalibs
|
||||
endef
|
||||
|
||||
define SKALIBS_INSTALL_STAGING_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
|
||||
endef
|
||||
|
||||
HOST_SKALIBS_CONF_OPTS = \
|
||||
--prefix=$(HOST_DIR)/usr \
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
--disable-allstatic
|
||||
|
||||
define HOST_SKALIBS_CONFIGURE_CMDS
|
||||
(cd $(@D); $(HOST_CONFIGURE_OPTS) ./configure $(HOST_SKALIBS_CONF_OPTS))
|
||||
endef
|
||||
|
||||
define HOST_SKALIBS_BUILD_CMDS
|
||||
$(HOST_MAKE_ENV) $(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
define HOST_SKALIBS_INSTALL_CMDS
|
||||
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
$(eval $(host-generic-package))
|
||||
Reference in New Issue
Block a user