mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Author: Pavel Roskin <proski@gnu.org>
Check that the script is run from the top-level directory. Check that the config file is available for every specified architecture. git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@548 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -84,6 +84,11 @@ archname()
|
||||
-e "s/Power Macintosh/ppc/"`
|
||||
}
|
||||
|
||||
if ! test -f utils/dist/debian/rules; then
|
||||
echo "switch-arch must be run from the top-level source directory" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# This is needed because viewvc messes with the permissions of executables:
|
||||
chmod 755 utils/dist/debian/rules
|
||||
chmod 755 config/scripts/switch-arch
|
||||
@@ -97,6 +102,11 @@ VERSION=`head VERSION`
|
||||
|
||||
echo "Configuring OpenBIOS on $HOSTARCH for $*"
|
||||
for RULES_ARCH in $*; do
|
||||
if ! test -f config/examples/${RULES_ARCH}_config.xml; then
|
||||
echo "Cannot find config/examples/${RULES_ARCH}_config.xml" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ARCH=`echo $RULES_ARCH | sed s/cross-//g`
|
||||
case $ARCH in
|
||||
amd64)
|
||||
|
||||
Reference in New Issue
Block a user