mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 21:16:57 +02:00
Review URL: http://chromereview.prom.corp.google.com/1186020 git-svn-id: svn://chrome-svn/chromeos/trunk@205 06c00378-0e64-4dae-be16-12b19f9950a1
33 lines
909 B
Bash
Executable File
33 lines
909 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# Runs our own version of extlinux, which is in the third_party directory.
|
|
# Our version is quieter and faster. extlinux will be compiled if it's not
|
|
# already.
|
|
|
|
set -e
|
|
|
|
SCRIPTS_ROOT=`dirname "$0"`
|
|
THIRD_PARTY="${SCRIPTS_ROOT}/../third_party"
|
|
BUILD_ROOT=${BUILD_ROOT:-${SCRIPTS_ROOT}/../build}
|
|
EXTLINUX_BIN="$BUILD_ROOT"/x86/obj/src/third_party/syslinux/syslinux-*/extlinux/extlinux
|
|
|
|
echo bin is "$EXTLINUX_BIN"
|
|
|
|
if [ ! -e $EXTLINUX_BIN ]
|
|
then
|
|
# compile extlinux
|
|
(cd "$SCRIPTS_ROOT/../third_party/syslinux/files/" && make)
|
|
if [ ! -e $EXTLINUX_BIN ]
|
|
then
|
|
echo "Can't find or compile extlinux. Sorry."
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
# we don't want ""s around $* b/c that will group all args into a single arg
|
|
$EXTLINUX_BIN $*
|