diff options
author | Bill Richardson <wfrichar@chromium.org> | 2013-01-25 17:14:22 -0800 |
---|---|---|
committer | Bill Richardson <wfrichar@chromium.org> | 2013-01-25 17:16:32 -0800 |
commit | 0fd2017f20ecf649065d4a97bf7d9a90432e34de (patch) | |
tree | 4c6be0c1140a28f3822bcc0dfe2bc82b4d93cc4d | |
parent | 9c45cd6562f27e6fbea792b0a3c7d000baa13bd4 (diff) | |
download | vboot-0fd2017f20ecf649065d4a97bf7d9a90432e34de.tar.gz |
Install futility correctly into host
BUG=none
BRANCH=none
TEST=manual
sudo emerge vboot_refererence
emerge-link chromeos-bootimage
Change-Id: I4d0fde9c18a11a0ad2ee8d5f6f820bba842cd6a2
Reviewed-on: https://gerrit.chromium.org/gerrit/42072
Commit-Queue: Bill Richardson <wfrichar@chromium.org>
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Tested-by: Bill Richardson <wfrichar@chromium.org>
-rw-r--r-- | Makefile | 6 | ||||
-rwxr-xr-x | futility/setup_futility_symlinks.sh (renamed from futility/tests/setup_futility_symlinks.sh) | 10 |
2 files changed, 8 insertions, 8 deletions
@@ -657,10 +657,11 @@ ${FUTIL_BIN}: ${FUTIL_LDS} ${FUTIL_OBJS} ${Q}${LD} -o $@ ${CFLAGS} $^ ${LDFLAGS} ${LDLIBS} .PHONY: futil_install -futil_install: ${FUTIL_BIN} +futil_install: ${FUTIL_BIN} cgpt_install utils_install @printf " INSTALL futility\n" ${Q}mkdir -p ${F_DESTDIR} - ${Q}${INSTALL} -t ${F_DESTDIR} $^ + ${Q}${INSTALL} -t ${F_DESTDIR} ${FUTIL_BIN} + futility/setup_futility_symlinks.sh ${F_DESTDIR} # ---------------------------------------------------------------------------- @@ -955,7 +956,6 @@ runmisctests: test_setup .PHONY: runfutiltests runfutiltests: DESTDIR := ${TEST_INSTALL_DIR} runfutiltests: test_setup install - futility/tests/setup_futility_symlinks.sh ${DESTDIR} futility/tests/run_futility_tests.sh ${DESTDIR} # Run long tests, including all permutations of encryption keys (instead of diff --git a/futility/tests/setup_futility_symlinks.sh b/futility/setup_futility_symlinks.sh index dda4adc8..d7db9a7e 100755 --- a/futility/tests/setup_futility_symlinks.sh +++ b/futility/setup_futility_symlinks.sh @@ -3,17 +3,17 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -# Load common constants and variables. -. "$(dirname "$0")/common.sh" +# Fail on any unexpected nonsense. +set -e -u -# Where are the programs I'm testing against? -[ -z "${1:-}" ] && error "Directory argument is required" +# The one required argument is the directory where futility lives. BINDIR="$1" shift +# We look here to see what names to use for the symlinks. OLDDIR="$BINDIR/old_bins" -# create symlinks +# Create the symlinks. for prog in $OLDDIR/*; do ln -sf futility "${BINDIR}/${prog##*/}" done |