[OpenBIOS] [commit] r1191 - trunk/openbios-devel/config/scripts

repository service svn at openbios.org
Sat Jul 27 13:21:56 CEST 2013


Author: mcayland
Date: Sat Jul 27 13:21:56 2013
New Revision: 1191
URL: http://tracker.coreboot.org/trac/openbios/changeset/1191

Log:
switch-arch: make the fcode-utils tokeniser "toke" mandatory for the build

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>

Modified:
   trunk/openbios-devel/config/scripts/switch-arch

Modified: trunk/openbios-devel/config/scripts/switch-arch
==============================================================================
--- trunk/openbios-devel/config/scripts/switch-arch	Sat Jul 27 12:15:11 2013	(r1190)
+++ trunk/openbios-devel/config/scripts/switch-arch	Sat Jul 27 13:21:56 2013	(r1191)
@@ -117,6 +117,11 @@
     echo "<option name=\"$option\" type=\"boolean\" value=\"true\" />"
 }
 
+exists()
+{
+    type "$1" >/dev/null 2>&1
+}
+
 
 SRCDIR=`dirname "$0"`/../..
 BUILDDIR=`pwd`
@@ -132,6 +137,13 @@
 
 echo "Configuring OpenBIOS on $HOSTARCH for $*"
 
+if exists toke; then
+    :
+else
+    echo "Unable to locate toke executable from the fcode-utils package - aborting"
+    exit 1
+fi
+
 target_list=""
 for target in $*; do
     case $target in



More information about the OpenBIOS mailing list