Bump buidlroot version to 2018.02.6
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
From 6754b208e7ec3bd1d4265db18fa4c0e7961a77bf Mon Sep 17 00:00:00 2001
|
||||
From d3920dce139734e00bbe4447a16ef24dfe4d704a 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
|
||||
Date: Tue, 10 Oct 2017 19:51:02 +0200
|
||||
Subject: [PATCH] No runtime tests for endianness
|
||||
|
||||
Replace build and execution of runtime test programs for determining
|
||||
@@ -10,29 +10,27 @@ This improves support for cross-compilation.
|
||||
|
||||
Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
|
||||
---
|
||||
configure | 15 +++++++++++----
|
||||
configure | 13 ++++++++++---
|
||||
src/sysdeps/trybigendian.c | 16 ++++++++++++++++
|
||||
src/sysdeps/trylittleendian.c | 19 +++++++++++++++++++
|
||||
3 files changed, 46 insertions(+), 4 deletions(-)
|
||||
3 files changed, 45 insertions(+), 3 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
|
||||
index f34dcd0..f2a77f3 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -463,13 +463,20 @@ EOF
|
||||
fi
|
||||
@@ -478,12 +478,19 @@ EOF
|
||||
exec 3>&-
|
||||
|
||||
- echo "Checking system endianness..."
|
||||
- $CC_AUTO $CPPFLAGS_AUTO $CFLAGS_AUTO -o tryendianness src/sysdeps/tryendianness.c
|
||||
echo "Checking system endianness..."
|
||||
- $CC_AUTO $CPPFLAGS_AUTO $CPPFLAGS $CPPFLAGS_POST $CFLAGS_AUTO $CFLAGS $CFLAGS_POST $LDFLAGS_AUTO $LDFLAGS $LDFLAGS_POST -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
|
||||
+ if $CC_AUTO $CPPFLAGS_AUTO $CPPFLAGS $CPPFLAGS_POST $CFLAGS_AUTO $CFLAGS $CFLAGS_POST $LDFLAGS_AUTO $LDFLAGS $LDFLAGS_POST -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
|
||||
+ if $CC_AUTO $CPPFLAGS_AUTO $CPPFLAGS $CPPFLAGS_POST $CFLAGS_AUTO $CFLAGS $CFLAGS_POST $LDFLAGS_AUTO $LDFLAGS $LDFLAGS_POST -o trylittleendian src/sysdeps/trylittleendian.c 2>/dev/null; then
|
||||
+ endianness=little
|
||||
+ else
|
||||
+ fail "$0: unable to determine endianness"
|
||||
@@ -44,8 +42,8 @@ index 1579025..4da9c5e 100755
|
||||
- rm -f tryendianness
|
||||
+ rm -f trybigendian trylittleendian
|
||||
|
||||
trytypesize ushort USHORT "unsigned short"
|
||||
trytypesize uint UINT "unsigned int"
|
||||
trytypes
|
||||
choose clr accept4 ACCEPT4 'accept4()'
|
||||
diff --git a/src/sysdeps/trybigendian.c b/src/sysdeps/trybigendian.c
|
||||
new file mode 100644
|
||||
index 0000000..d857572
|
||||
@@ -94,5 +92,5 @@ index 0000000..68b93c1
|
||||
+ return 0;
|
||||
+}
|
||||
--
|
||||
2.1.4
|
||||
2.13.6
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
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
|
||||
From df3a3e708653ca1cdb0eda77bbda5cb8de177571 Mon Sep 17 00:00:00 2001
|
||||
From: "Van Bemten, Lionel (Nokia - BE/Antwerp)" <lionel.van_bemten@nokia.com>
|
||||
Date: Tue, 10 Oct 2017 19:51:18 +0200
|
||||
Subject: [PATCH] No runtime tests for type sizes
|
||||
|
||||
Replace build and execution of runtime test programs for determining
|
||||
@@ -8,47 +8,102 @@ some type sizes of the target with compile time test programs.
|
||||
|
||||
This improves support for cross-compilation.
|
||||
|
||||
Signed-off-by: "Van Bemten, Lionel (Nokia - BE/Antwerp)" <lionel.van_bemten@nokia.com>
|
||||
Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
|
||||
---
|
||||
configure | 24 +++++++++++++++++++++---
|
||||
1 file changed, 21 insertions(+), 3 deletions(-)
|
||||
configure | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++-------------
|
||||
1 file changed, 61 insertions(+), 16 deletions(-)
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index 4da9c5e..b5926ca 100755
|
||||
index f2a77f3..8348b1f 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -157,10 +157,28 @@ choose () {
|
||||
@@ -154,25 +154,70 @@ choose () {
|
||||
fi
|
||||
}
|
||||
|
||||
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"
|
||||
+findtypesize () {
|
||||
+ typ=$1
|
||||
+ abbr=$2
|
||||
+ r=false
|
||||
+ type_size=0
|
||||
+ while true; do
|
||||
+ cat<<EOF>trysizeof$1.c
|
||||
+ cat>trysizeof${abbr}.c<<EOF
|
||||
+#include <sys/types.h>
|
||||
+
|
||||
+int main(void)
|
||||
+{
|
||||
+ static int v = 1 / !!((sizeof($3) == $type_size));
|
||||
+ static int v = 1 / !!((sizeof($typ) == $type_size));
|
||||
+ return 0;
|
||||
+}
|
||||
+EOF
|
||||
+ if $CC_AUTO $CPPFLAGS_AUTO $CFLAGS_AUTO $LDFLAGS_AUTO -o trysizeof$1 trysizeof$1.c 2>/dev/null; then
|
||||
+ if $CC_AUTO $CPPFLAGS_AUTO $CPPFLAGS $CPPFLAGS_POST $CFLAGS_AUTO $CFLAGS $CFLAGS_POST $LDFLAGS_AUTO $LDFLAGS $LDFLAGS_POST -o trysizeof${abbr} trysizeof${abbr}.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
|
||||
+ rm -f trysizeof${abbr} trysizeof${abbr}.c
|
||||
+ test $r = true || fail "$0: unable to determine size of $typ"
|
||||
+ caps=$(echo "sizeof${abbr}" | tr a-z A-Z)
|
||||
+ echo "#define ${package_macro_name}_${caps} $type_size" >> $sysdeps/sysdeps.h
|
||||
+ echo "sizeof${abbr}: $type_size" >> $sysdeps/sysdeps
|
||||
+}
|
||||
+
|
||||
+findtypesign () {
|
||||
+ typ=$1
|
||||
+ abbr=$2
|
||||
+ caps=$(echo "signed${abbr}" | tr a-z A-Z)
|
||||
+ cat>trysignof${abbr}.c<<EOF
|
||||
+#include <sys/types.h>
|
||||
+
|
||||
+int main(void)
|
||||
+{
|
||||
+ static int v = 1 / !!(((($typ) -1) < 0));
|
||||
+ return 0;
|
||||
+}
|
||||
+EOF
|
||||
+ if $CC_AUTO $CPPFLAGS_AUTO $CPPFLAGS $CPPFLAGS_POST $CFLAGS_AUTO $CFLAGS $CFLAGS_POST $LDFLAGS_AUTO $LDFLAGS $LDFLAGS_POST -o trysignof${abbr} trysignof${abbr}.c 2>/dev/null; then
|
||||
+ echo "#define ${package_macro_name}_HASSIGNED${caps}" >> $sysdeps/sysdeps.h
|
||||
+ echo "#undef ${package_macro_name}_HASUNSIGNED${caps}" >> $sysdeps/sysdeps.h
|
||||
+ echo "signed${abbr}: yes" >> $sysdeps/sysdeps
|
||||
+ else
|
||||
+ echo "#undef ${package_macro_name}_HASSIGNED${caps}" >> $sysdeps/sysdeps.h
|
||||
+ echo "#define ${package_macro_name}_HASUNSIGNED${caps}" >> $sysdeps/sysdeps.h
|
||||
+ echo "signed${abbr}: no" >> $sysdeps/sysdeps
|
||||
+ fi
|
||||
+ rm -f trysignof${abbr} trysignof${abbr}.c
|
||||
+}
|
||||
+
|
||||
trytypes () {
|
||||
echo "Checking size and signedness of standard types..."
|
||||
- $CC_AUTO $CPPFLAGS_AUTO $CPPFLAGS $CPPFLAGS_POST $CFLAGS_AUTO $CFLAGS $CFLAGS_POST $LDFLAGS_AUTO $LDFLAGS $LDFLAGS_POST -o output-types src/sysdeps/output-types.c
|
||||
- ./output-types >> $sysdeps/sysdeps
|
||||
- ./output-types | grep -F sizeof | while read key value ; do
|
||||
- caps=$(echo $key | sed s/:\$// | tr a-z A-Z)
|
||||
- echo "#define ${package_macro_name}_${caps} $value" >> $sysdeps/sysdeps.h
|
||||
+ for t in "unsigned short" "unsigned int" "unsigned long"; do
|
||||
+ abbr=$(echo "$t" | sed -e 's/nsigned //')
|
||||
+ findtypesize "$t" "${abbr}"
|
||||
done
|
||||
- ./output-types | grep -F signed | while read key value ; do
|
||||
- caps=$(echo $key | sed s/:\$// | tr a-z A-Z)
|
||||
- if test $value = yes ; then
|
||||
- echo "#define ${package_macro_name}_HASSIGNED${caps}"
|
||||
- echo "#undef ${package_macro_name}_HASUNSIGNED${caps}"
|
||||
- else
|
||||
- echo "#undef ${package_macro_name}_HASSIGNED${caps}"
|
||||
- echo "#define ${package_macro_name}_HASUNSIGNED${caps}"
|
||||
- fi >> $sysdeps/sysdeps.h
|
||||
+ for t in size uid gid pid time dev ino; do
|
||||
+ findtypesize "${t}_t" "$t"
|
||||
+ findtypesign "${t}_t" "$t"
|
||||
done
|
||||
- rm -f output-types
|
||||
echo " ... done"
|
||||
}
|
||||
|
||||
--
|
||||
2.5.5
|
||||
2.13.6
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
From da293110f429e1206728c1551cf0f6b462b3d8c0 Mon Sep 17 00:00:00 2001
|
||||
From 02ef4599179ead87cc6d154a32acaa6627cbfca2 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
|
||||
Date: Tue, 10 Oct 2017 19:51:34 +0200
|
||||
Subject: [PATCH] Make linker use dummy file when testing libs
|
||||
|
||||
For some architectures, like Xtensa or HPPA, ld from binutils requires
|
||||
@@ -18,19 +18,19 @@ Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index 1579025..12980fb 100755
|
||||
index 8348b1f..62e5981 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -173,7 +173,7 @@ trylibs () {
|
||||
@@ -227,7 +227,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 $CC_AUTO $CPPFLAGS_AUTO $CPPFLAGS $CPPFLAGS_POST $CFLAGS_AUTO $CFLAGS $CFLAGS_POST -c -o try$name.o src/sysdeps/try$name.c 2>/dev/null ; then
|
||||
- until $CC_AUTO $CFLAGS_AUTO $CFLAGS $CFLAGS_POST $LDFLAGS_AUTO $LDFLAGS $LDFLAGS_POST -o /dev/null try$name.o $args 2>/dev/null ; do
|
||||
+ until $CC_AUTO $CPPFLAGS_AUTO $CPPFLAGS $CPPFLAGS_POST $CFLAGS_AUTO $CFLAGS $CFLAGS_POST -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 () {
|
||||
@@ -243,7 +243,7 @@ trylibs () {
|
||||
else
|
||||
echo " ... yes, with$args" >&3
|
||||
fi
|
||||
@@ -40,5 +40,5 @@ index 1579025..12980fb 100755
|
||||
else
|
||||
echo
|
||||
--
|
||||
2.4.11
|
||||
2.13.6
|
||||
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
# Locally generated
|
||||
sha256 0708172bc2ec9825f8a4f312d35f8dcd94da5f291425a598c33c873b3de77df8 skalibs-2.4.0.2.tar.gz
|
||||
sha256 8508ca00d4e2355e9ec0ec7f4808e98b349999d6732d2f123ac53b4df5260c81 skalibs-2.6.3.1.tar.gz
|
||||
sha256 3eadcf980c40da0f257b8292d805ff41e5e5a908c1942315d9a627732e1aa012 COPYING
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SKALIBS_VERSION = 2.4.0.2
|
||||
SKALIBS_VERSION = 2.6.3.1
|
||||
SKALIBS_SITE = http://skarnet.org/software/skalibs
|
||||
SKALIBS_LICENSE = ISC
|
||||
SKALIBS_LICENSE_FILES = COPYING
|
||||
@@ -33,7 +33,7 @@ define SKALIBS_INSTALL_STAGING_CMDS
|
||||
endef
|
||||
|
||||
HOST_SKALIBS_CONF_OPTS = \
|
||||
--prefix=$(HOST_DIR)/usr \
|
||||
--prefix=$(HOST_DIR) \
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
--disable-allstatic
|
||||
|
||||
Reference in New Issue
Block a user