diff options
Diffstat (limited to 'support/gnuconfig/patches')
-rw-r--r-- | support/gnuconfig/patches/0001-config-add-support-for-uClibc.patch (renamed from support/gnuconfig/patches/config.guess.uclibc.patch) | 73 | ||||
-rw-r--r-- | support/gnuconfig/patches/0002-config-add-support-for-ps2.patch (renamed from support/gnuconfig/patches/config.sub.ps2.patch) | 29 |
2 files changed, 76 insertions, 26 deletions
diff --git a/support/gnuconfig/patches/config.guess.uclibc.patch b/support/gnuconfig/patches/0001-config-add-support-for-uClibc.patch index 85f9b8966..3627e8e05 100644 --- a/support/gnuconfig/patches/config.guess.uclibc.patch +++ b/support/gnuconfig/patches/0001-config-add-support-for-uClibc.patch @@ -1,6 +1,18 @@ ---- config.guess -+++ config.guess -@@ -140,6 +141,23 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +From eee83aa62993b15b7f460cca9583cd69a15b5357 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> +Date: Thu, 15 Nov 2012 17:01:13 +0100 +Subject: [PATCH 1/2] config: add support for uClibc + +Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> +--- + config.guess | 70 ++++++++++++++++++++++++++++++++++++---------------------- + 1 file changed, 43 insertions(+), 27 deletions(-) + +diff --git a/config.guess b/config.guess +index 872b96a..9509179 100755 +--- a/config.guess ++++ b/config.guess +@@ -138,6 +138,23 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown @@ -24,7 +36,21 @@ # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in -@@ -872,33 +890,32 @@ EOF +@@ -869,11 +886,11 @@ EOF + echo ${UNAME_MACHINE}-pc-minix + exit ;; + aarch64:Linux:*:*) +- echo ${UNAME_MACHINE}-unknown-linux-gnu ++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + aarch64_be:Linux:*:*) + UNAME_MACHINE=aarch64_be +- echo ${UNAME_MACHINE}-unknown-linux-gnu ++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in +@@ -886,15 +903,15 @@ EOF EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 @@ -41,7 +67,9 @@ - echo ${UNAME_MACHINE}-unknown-linux-gnu + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} else - echo ${UNAME_MACHINE}-unknown-linux-gnueabi + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_PCS_VFP +@@ -906,22 +923,21 @@ EOF fi exit ;; avr32*:Linux:*:*) @@ -49,23 +77,27 @@ + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; cris:Linux:*:*) -- echo cris-axis-linux-gnu -+ echo cris-axis-linux-${LIBC} +- echo ${UNAME_MACHINE}-axis-linux-gnu ++ echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; crisv32:Linux:*:*) -- echo crisv32-axis-linux-gnu -+ echo crisv32-axis-linux-${LIBC} +- echo ${UNAME_MACHINE}-axis-linux-gnu ++ echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; frv:Linux:*:*) -- echo frv-unknown-linux-gnu -+ echo frv-unknown-linux-${LIBC} +- echo ${UNAME_MACHINE}-unknown-linux-gnu ++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + hexagon:Linux:*:*) +- echo ${UNAME_MACHINE}-unknown-linux-gnu ++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:Linux:*:*) - LIBC=gnu eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __dietlibc__ -@@ -909,13 +926,13 @@ EOF +@@ -932,13 +948,13 @@ EOF echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit ;; ia64:Linux:*:*) @@ -82,7 +114,7 @@ exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build -@@ -934,10 +951,10 @@ EOF +@@ -957,10 +973,10 @@ EOF #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` @@ -90,12 +122,12 @@ + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } ;; or32:Linux:*:*) -- echo or32-unknown-linux-gnu -+ echo or32-unknown-linux-${LIBC} +- echo ${UNAME_MACHINE}-unknown-linux-gnu ++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; padre:Linux:*:*) echo sparc-unknown-linux-gnu -@@ -948,40 +965,40 @@ EOF +@@ -971,40 +987,40 @@ EOF parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in @@ -131,15 +163,15 @@ + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; tile*:Linux:*:*) - echo ${UNAME_MACHINE}-tilera-linux-gnu + echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) - echo ${UNAME_MACHINE}-dec-linux-gnu + echo ${UNAME_MACHINE}-dec-linux-${LIBC} exit ;; x86_64:Linux:*:*) -- echo x86_64-unknown-linux-gnu -+ echo x86_64-unknown-linux-${LIBC} +- echo ${UNAME_MACHINE}-unknown-linux-gnu ++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; xtensa*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu @@ -147,3 +179,6 @@ exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. +-- +1.7.9.5 + diff --git a/support/gnuconfig/patches/config.sub.ps2.patch b/support/gnuconfig/patches/0002-config-add-support-for-ps2.patch index 57d09dcf2..781b9588d 100644 --- a/support/gnuconfig/patches/config.sub.ps2.patch +++ b/support/gnuconfig/patches/0002-config-add-support-for-ps2.patch @@ -1,15 +1,27 @@ ---- config.sub -+++ config.sub -@@ -253,7 +253,7 @@ case $basic_machine in - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ +From 144194fe916a14b630324c19f7b098109122bca2 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> +Date: Thu, 15 Nov 2012 17:01:25 +0100 +Subject: [PATCH 2/2] config: add support for ps2 + +Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> +--- + config.sub | 22 ++++++++++++++++++++-- + 1 file changed, 20 insertions(+), 2 deletions(-) + +diff --git a/config.sub b/config.sub +index 89b1286..8509813 100755 +--- a/config.sub ++++ b/config.sub +@@ -265,7 +265,7 @@ case $basic_machine in + | be32 | be64 \ | bfin \ | c4x | clipper \ - | d10v | d30v | dlx | dsp16xx \ + | d10v | d30v | dlx | dsp16xx | dvp \ + | epiphany \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ - | i370 | i860 | i960 | ia64 \ -@@ -773,6 +773,24 @@ case $basic_machine in +@@ -813,6 +813,24 @@ case $basic_machine in basic_machine=m68k-atari os=-mint ;; @@ -34,7 +46,7 @@ mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; -@@ -1325,7 +1343,7 @@ case $os in +@@ -1375,7 +1393,7 @@ case $os in | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ @@ -43,3 +55,6 @@ # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) +-- +1.7.9.5 + |