mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 06:43:34 +08:00
Resync new repository with old repo r5166
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5153 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,15 @@
|
||||
UPLOAD=ftp://ftp-upload.gnu.org/incoming/ftp/
|
||||
|
||||
all:
|
||||
@echo "Type 'make upload' to upload to the GNU FTP server."
|
||||
|
||||
upload:
|
||||
gpg --detach-sign config.guess
|
||||
gpg --detach-sign config.sub
|
||||
echo "directory: config" | gpg --clearsign > config.guess.directive.asc
|
||||
cp config.guess.directive.asc config.sub.directive.asc
|
||||
ftp -a -u $(UPLOAD) config.{guess,sub}{,.sig,.directive.asc}
|
||||
rm config.{guess,sub}{.sig,.directive.asc}
|
||||
|
||||
check:
|
||||
cd testsuite && (sh config-sub.sh; sh config-guess.sh) && rm uname
|
||||
@@ -0,0 +1,16 @@
|
||||
--- ABOUT ---
|
||||
This isnt a real package, it just exists to easily update the
|
||||
config.sub / config.guess files in packages to the latest version
|
||||
(since many bundled ones don't support the latest possible targets)
|
||||
|
||||
--- HOWTO ---
|
||||
To use, just add this to your unpack rule in the package.mk:
|
||||
$(CONFIG_UPDATE) $(PACKAGE_DIR)/
|
||||
|
||||
--- UPDATE ---
|
||||
This is a CVS checkout of the config project, so just run `cvs up`
|
||||
to get the latest config.sub / config.guess files.
|
||||
|
||||
A few local customizations are used to support uClibc so you may
|
||||
have to make sure they're still needed. The patches are broken
|
||||
out in the patches/ dir to keep things simple.
|
||||
+1517
File diff suppressed because it is too large
Load Diff
+1627
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,3 @@
|
||||
# See README.buildroot
|
||||
|
||||
CONFIG_UPDATE = cp -f package/gnuconfig/config.sub package/gnuconfig/config.guess
|
||||
@@ -0,0 +1,50 @@
|
||||
Index: config.sub
|
||||
===================================================================
|
||||
RCS file: /cvsroot/config/config/config.sub,v
|
||||
retrieving revision 1.340
|
||||
diff -u -p -r1.340 config.sub
|
||||
--- config.sub
|
||||
+++ config.sub
|
||||
@@ -244,7 +244,7 @@ case $basic_machine in
|
||||
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
|
||||
| bfin \
|
||||
| c4x | clipper \
|
||||
- | d10v | d30v | dlx | dsp16xx \
|
||||
+ | d10v | d30v | dlx | dsp16xx | dvp \
|
||||
| fr30 | frv \
|
||||
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
|
||||
| i370 | i860 | i960 | ia64 \
|
||||
@@ -693,6 +693,24 @@ case $basic_machine in
|
||||
basic_machine=m68k-atari
|
||||
os=-mint
|
||||
;;
|
||||
+ mipsEE* | ee | ps2)
|
||||
+ basic_machine=mips64r5900el-scei
|
||||
+ case $os in
|
||||
+ -linux*)
|
||||
+ ;;
|
||||
+ *)
|
||||
+ os=-elf
|
||||
+ ;;
|
||||
+ esac
|
||||
+ ;;
|
||||
+ iop)
|
||||
+ basic_machine=mipsel-scei
|
||||
+ os=-irx
|
||||
+ ;;
|
||||
+ dvp)
|
||||
+ basic_machine=dvp-scei
|
||||
+ os=-elf
|
||||
+ ;;
|
||||
mips3*-*)
|
||||
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
|
||||
;;
|
||||
@@ -1218,7 +1236,7 @@ case $os in
|
||||
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
|
||||
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
|
||||
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
|
||||
- | -skyos* | -haiku* | -rdos*)
|
||||
+ | -skyos* | -haiku* | -rdos* | -irx*)
|
||||
# Remember, each alternative MUST END IN *, to match a version number.
|
||||
;;
|
||||
-qnx*)
|
||||
@@ -0,0 +1,39 @@
|
||||
gnuconfig seems intent on only supporting superfluous targets that don't
|
||||
represent any real hardware (such as sh2a LE). GCC in its infinite wisdom is
|
||||
also incapable of supporting tuning for other variants in a sensible fashion.
|
||||
|
||||
As such, we still need to be able to support such useful targets as
|
||||
sh2a_nofpueb in order to not only get the byte order right, but also to
|
||||
support -m2a-nofpu tuning from the kernel (though we tend to do this through
|
||||
-Wa,-isa= instead, as the binutils people do a much better job of not screwing
|
||||
up their config code every other day. Way to go config.gcc..).
|
||||
|
||||
The fact that the sh variant matching is the ugliest out of any of the other
|
||||
architectures doesn't seem to deter GCC folk from their well thought out and
|
||||
brilliantly managed config target list.
|
||||
|
||||
Index: config.sub
|
||||
===================================================================
|
||||
RCS file: /cvsroot/config/config/config.sub,v
|
||||
retrieving revision 1.340
|
||||
diff -u -p -r1.340 config.sub
|
||||
--- config.sub 26 Feb 2006 23:33:46 -0000 1.340
|
||||
+++ config.sub 2 Mar 2006 06:22:01 -0000
|
||||
@@ -275,7 +275,7 @@ case $basic_machine in
|
||||
| pdp10 | pdp11 | pj | pjl \
|
||||
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
|
||||
| pyramid \
|
||||
- | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
|
||||
+ | sh | sh[1234] | sh[24]a | sh[24]a*eb | sh[23]e | sh[34]eb | shbe | sheb | shle | sh[1234]le | sh3ele \
|
||||
| sh64 | sh64le \
|
||||
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
|
||||
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
|
||||
@@ -359,7 +359,7 @@ case $basic_machine in
|
||||
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
|
||||
| pyramid-* \
|
||||
| romp-* | rs6000-* \
|
||||
- | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
|
||||
+ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]a*eb-* | sh[23]e-* | sh[34]eb-* | shbe-* | sheb-* \
|
||||
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
|
||||
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
|
||||
| sparclite-* \
|
||||
@@ -0,0 +1,23 @@
|
||||
crisv32 2.6.6 Linux ignored crisv32-axis-linux-gnu
|
||||
frv 2.4.24 Linux ignored frv-unknown-linux-gnu
|
||||
3 2.3.3 XENIX SysV i386-pc-xenix
|
||||
2064 ignored z/VM ignored s390-ibm-zvmoe
|
||||
amd64 1.5.12(0.116/4/2) CYGWIN_NT-5.2 ignored x86_64-unknown-cygwin
|
||||
crayx1 2.5.20 UNICOS/mp ignored craynv-cray-unicosmp2.5.X
|
||||
NSE-N 1.0 NONSTOP_KERNEL ignored nse-tandem-nsk1.0
|
||||
i386 ignored VOS ignored i386-stratus-vos
|
||||
arm ignored RISCOS ignored arm-unknown-riscos
|
||||
arm ignored riscos ignored arm-unknown-riscos
|
||||
i586 5.0.0 skyos ignored i586-pc-skyos5.0.0
|
||||
i786-pc ignored windows32 ignored i786-pc-mingw32
|
||||
or32 ignored Linux ignored or32-unknown-linux-gnu
|
||||
x86_64 1.5.18(0.132/4/2) CYGWIN_NT-5.2 ignored x86_64-unknown-cygwin
|
||||
x86 5.2 Interix ignored i586-pc-interix5.2
|
||||
ppc64 2.6.9-22 Linux ignored powerpc64-unknown-linux-gnu
|
||||
vax 2.6.15 Linux ignored vax-dec-linux-gnu
|
||||
i586 ignored rdos ignored i586-pc-rdos
|
||||
pc98 7.0 FreeBSD ignored i386-unknown-freebsd7.0
|
||||
i586 1.0 SolidBSD ignored i586-unknown-solidbsd1.0
|
||||
i686 5.4-1-686 GNU/kFreeBSD ignored i686-unknown-kfreebsd5.4-gnu
|
||||
i686 1.0.10(0.46/3/2) MSYS_NT-5.1 ignored i686-pc-mingw32
|
||||
EM64T 5.2 Interix ignored x86_64-unknown-interix5.2
|
||||
@@ -0,0 +1,47 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright 2004, 2005 Free Software Foundation, Inc.
|
||||
# Contributed by Ben Elliston <bje@gnu.org>.
|
||||
#
|
||||
# This test reads 5-tuples from config-guess.data: the components of
|
||||
# the simulated uname(1) output and the expected GNU system triplet.
|
||||
|
||||
verbose=false
|
||||
export PATH=`pwd`:$PATH
|
||||
IFS=" " # tab
|
||||
|
||||
function run_config_guess ()
|
||||
{
|
||||
rc=0
|
||||
while read machine release system version triplet ; do
|
||||
sed \
|
||||
-e "s,@MACHINE@,$machine," \
|
||||
-e "s,@RELEASE@,$release," \
|
||||
-e "s,@SYSTEM@,$system," \
|
||||
-e "s,@VERSION@,$version," < uname.in > uname
|
||||
chmod +x uname
|
||||
output=`sh ../config.guess 2>/dev/null`
|
||||
if test $? != 0 ; then
|
||||
echo "FAIL: unable to guess $machine:$release:$system:$version"
|
||||
rc=1
|
||||
continue
|
||||
fi
|
||||
if test $output != $triplet ; then
|
||||
echo "FAIL: $output (expected $triplet)"
|
||||
rc=1
|
||||
continue
|
||||
fi
|
||||
$verbose && echo "PASS: $triplet"
|
||||
done
|
||||
return $rc
|
||||
}
|
||||
|
||||
sed 's/ */ /g' < config-guess.data | run_config_guess
|
||||
rc=$?
|
||||
if test $rc -eq 0 ; then
|
||||
$verbose || echo "PASS: config.guess checks"
|
||||
else
|
||||
test $rc -eq 1 && echo "Unexpected failures."
|
||||
fi
|
||||
|
||||
exit $rc
|
||||
@@ -0,0 +1,92 @@
|
||||
arm-coff arm-unknown-coff
|
||||
arm-elf arm-unknown-elf
|
||||
sun3 m68k-sun-sunos4.1.1
|
||||
sun4 sparc-sun-sunos4.1.1
|
||||
ibm i370-ibm-aix
|
||||
i386-os2 i386-pc-os2
|
||||
os400 powerpc-ibm-os400
|
||||
mmix mmix-knuth-mmixware
|
||||
mmix-elf mmix-knuth-elf
|
||||
i386-linux i386-pc-linux-gnu
|
||||
i386-netbsd i386-pc-netbsd
|
||||
i386-openbsd i386-pc-openbsd
|
||||
i386-freebsd i386-pc-freebsd
|
||||
pc98-freebsd i386-pc-freebsd
|
||||
i386-elf i386-pc-elf
|
||||
i486-elf i486-pc-elf
|
||||
i586-elf i586-pc-elf
|
||||
i686-elf i686-pc-elf
|
||||
i786-elf i786-pc-elf
|
||||
amd64-unknown-freebsd5.2 x86_64-unknown-freebsd5.2
|
||||
cris-linux cris-axis-linux-gnu
|
||||
crisv32-linux crisv32-axis-linux-gnu
|
||||
frv-linux frv-unknown-linux-gnu
|
||||
djgpp i586-pc-msdosdjgpp
|
||||
s390-ibm-zvmoe s390-ibm-zvmoe
|
||||
xscale xscale-unknown-none
|
||||
xscaleeb xscaleeb-unknown-none
|
||||
xscaleel xscaleel-unknown-none
|
||||
xbox i686-pc-mingw32
|
||||
maxq maxq-unknown-none
|
||||
maxq-elf maxq-unknown-elf
|
||||
amd64-cygwin x86_64-pc-cygwin
|
||||
x86_64-cygwin x86_64-pc-cygwin
|
||||
sparc64-linux sparc64-unknown-linux-gnu
|
||||
sparc64b-linux sparc64b-unknown-linux-gnu
|
||||
bfin-elf bfin-unknown-elf
|
||||
bfin bfin-unknown-none
|
||||
arm-riscos arm-unknown-riscos
|
||||
arm-unknown-riscos arm-unknown-riscos
|
||||
i586-skyos i586-pc-skyos
|
||||
m32c m32c-unknown-none
|
||||
m32c-elf m32c-unknown-elf
|
||||
ms1 mt-unknown-none
|
||||
ms1-elf mt-unknown-elf
|
||||
mips64vr5900-elf mips64vr5900-unknown-elf
|
||||
mips64vr5900el-elf mips64vr5900el-unknown-elf
|
||||
mips64vr5900 mips64vr5900-unknown-elf
|
||||
mips64vr5900el mips64vr5900el-unknown-elf
|
||||
sh64 sh64-unknown-none
|
||||
sh64-elf sh64-unknown-elf
|
||||
openrisc-linux or32-unknown-linux-gnu
|
||||
or32-linux or32-unknown-linux-gnu
|
||||
sh-elf sh-unknown-elf
|
||||
sh1-elf sh1-unknown-elf
|
||||
sh2-elf sh2-unknown-elf
|
||||
sh3-elf sh3-unknown-elf
|
||||
sh4-elf sh4-unknown-elf
|
||||
sh2a-elf sh2a-unknown-elf
|
||||
sh4a-elf sh4a-unknown-elf
|
||||
sh2e-elf sh2e-unknown-elf
|
||||
sh3e-elf sh3e-unknown-elf
|
||||
sh3eb-elf sh3eb-unknown-elf
|
||||
sh4eb-elf sh4eb-unknown-elf
|
||||
shbe-elf shbe-unknown-elf
|
||||
shle-elf shle-unknown-elf
|
||||
sh1le-elf sh1le-unknown-elf
|
||||
sh2le-elf sh2le-unknown-elf
|
||||
sh3le-elf sh3le-unknown-elf
|
||||
sh4le-elf sh4le-unknown-elf
|
||||
sh3ele-elf sh3ele-unknown-elf
|
||||
i386-haiku i386-pc-haiku
|
||||
sparc-haiku sparc-unknown-haiku
|
||||
powerpc-haiku powerpc-unknown-haiku
|
||||
i386-pc-sco6 i386-pc-sco5v6
|
||||
i386-pc-sco5v6 i386-pc-sco5v6
|
||||
mt mt-unknown-none
|
||||
mt-elf mt-unknown-elf
|
||||
rdos i386-pc-rdos
|
||||
i586-rdos i586-pc-rdos
|
||||
i386-linux-newlib i386-pc-linux-newlib
|
||||
mb-elf mb-unknown-elf
|
||||
microblaze-elf microblaze-unknown-elf
|
||||
i386-solidbsd i386-pc-solidbsd
|
||||
amd64-kfreebsd5.4-gnu x86_64-pc-kfreebsd5.4-gnu
|
||||
nios nios-unknown-none
|
||||
nios2 nios2-unknown-none
|
||||
nios-elf nios-unknown-elf
|
||||
nios2-elf nios2-unknown-elf
|
||||
sparcv9v-elf sparcv9v-unknown-elf
|
||||
sparc64v-elf sparc64v-unknown-elf
|
||||
sparcv9v-solaris2.9 sparcv9v-unknown-solaris2.9
|
||||
sparc64v-solaris2.9 sparc64v-unknown-solaris2.9
|
||||
@@ -0,0 +1,35 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright 2004, 2005 Free Software Foundation, Inc.
|
||||
# Contributed by Ben Elliston <bje@gnu.org>.
|
||||
#
|
||||
# This test reads pairs from config-sub.data: an alias and its
|
||||
# canonical triplet. The config.sub scripts is invoked and the test
|
||||
# checks that the alias expands to the expected canonical triplet.
|
||||
|
||||
verbose=false
|
||||
|
||||
function run_config_sub ()
|
||||
{
|
||||
rc=0
|
||||
while read alias canonical ; do
|
||||
output=`sh ../config.sub $alias`
|
||||
if test $output != $canonical ; then
|
||||
echo "FAIL: $alias -> $output, but expected $canonical"
|
||||
rc=1
|
||||
else
|
||||
$verbose && echo "PASS: $alias"
|
||||
fi
|
||||
done < config-sub.data
|
||||
return $rc
|
||||
}
|
||||
|
||||
run_config_sub
|
||||
rc=$?
|
||||
if test $rc -eq 0 ; then
|
||||
$verbose || echo "PASS: config.sub checks"
|
||||
else
|
||||
test $rc -eq 1 && echo "Unexpected failures."
|
||||
fi
|
||||
|
||||
exit $rc
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
# uname(1) simulator, inspired by Pavel Roskin.
|
||||
|
||||
[ $# -ne 1 ] && exec sh $0 -s
|
||||
[ $1 = -m ] && echo "@MACHINE@" && exit 0
|
||||
[ $1 = -r ] && echo "@RELEASE@" && exit 0
|
||||
[ $1 = -s ] && echo "@SYSTEM@" && exit 0
|
||||
[ $1 = -v ] && echo "@VERSION@" && exit 0
|
||||
[ $1 = -p ] && echo "Pentium III(TM)-ISA/PCI"
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
# uname(1) simulator, inspired by Pavel Roskin.
|
||||
|
||||
[ $# -ne 1 ] && exec sh $0 -s
|
||||
[ $1 = -m ] && echo 4400
|
||||
[ $1 = -r ] && echo 4.0
|
||||
[ $1 = -s ] && echo iainfo2
|
||||
[ $1 = -v ] && echo 3.0
|
||||
[ $1 = -p ] && echo "Pentium III(TM)-ISA/PCI"
|
||||
Reference in New Issue
Block a user