| OLD | NEW |
| (Empty) |
| 1 #!/bin/bash | |
| 2 | |
| 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | |
| 4 # Use of this source code is governed by a BSD-style license that can be | |
| 5 # found in the LICENSE file. | |
| 6 | |
| 7 # Runs our own version of extlinux, which is in the third_party directory. | |
| 8 # Our version is quieter and faster. extlinux will be compiled if it's not | |
| 9 # already. | |
| 10 | |
| 11 set -e | |
| 12 | |
| 13 SCRIPTS_ROOT=`dirname "$0"` | |
| 14 THIRD_PARTY="${SCRIPTS_ROOT}/../third_party" | |
| 15 BUILD_ROOT=${BUILD_ROOT:-${SCRIPTS_ROOT}/../build} | |
| 16 EXTLINUX_BIN="$BUILD_ROOT"/x86/obj/src/third_party/syslinux/syslinux-*/extlinux/
extlinux | |
| 17 | |
| 18 echo bin is "$EXTLINUX_BIN" | |
| 19 | |
| 20 if [ ! -e $EXTLINUX_BIN ] | |
| 21 then | |
| 22 # compile extlinux | |
| 23 (cd "$SCRIPTS_ROOT/../third_party/syslinux/files/" && make) | |
| 24 if [ ! -e $EXTLINUX_BIN ] | |
| 25 then | |
| 26 echo "Can't find or compile extlinux. Sorry." | |
| 27 exit 1 | |
| 28 fi | |
| 29 fi | |
| 30 | |
| 31 # we don't want ""s around $* b/c that will group all args into a single arg | |
| 32 $EXTLINUX_BIN $* | |
| OLD | NEW |