initial import of openbios--main--1.0--patch-26

git-svn-id: svn://coreboot.org/openbios/openbios-devel@1 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Stefan Reinauer
2006-04-26 15:08:19 +00:00
commit 5c9eb9b45b
522 changed files with 83237 additions and 0 deletions

16
config/scripts/archname Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/sh
unset ARCH
case "$1" in
# ppc|powerpc) ARCH=ppc ;;
# mpc107) ARCH=mpc107 ;;
# osx|darwin) ARCH=osx ;;
ppc|powerpc|mpc107|osx|darwin) ARCH=ppc ;;
esac
test "$ARCH" || ARCH=`uname -m | sed -e s/i.86/x86/ -e s/sun4u/sparc64/ \
-e s/arm.*/arm/ -e s/sa110/arm/ -e s/x86_64/amd64/ \
-e "s/Power Macintosh/ppc/"`
echo $ARCH

11
config/scripts/reldir Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
PREF="."
for x in 0 1 2 3 4 5 6 7 ; do
test -f $PREF/config/configure.in && break
PREF="../$PREF"
done
ROOT=$( echo $(pwd) | sed "s,\(//*[^/][^/]*\)\{$x\}/*\$,," )
RELNAME=$( echo $(pwd) | sed "s,^$ROOT/*,,g" )
echo $RELNAME

15
config/scripts/switch-arch Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
if [ x"$1" = x ]; then
echo -e "Usage:\n $0 [arch-config]"
echo -e "\narch-config: cross-ppc, x86"
exit 0
fi
ARCH=$1
rm rules.xml
rm config.xml
ln -s config/examples/${ARCH}_rules.xml rules.xml
ln -s config/examples/${ARCH}_config.xml config.xml