summaryrefslogtreecommitdiff
path: root/include/inject.sh
diff options
context:
space:
mode:
Diffstat (limited to 'include/inject.sh')
-rw-r--r--include/inject.sh17
1 files changed, 14 insertions, 3 deletions
diff --git a/include/inject.sh b/include/inject.sh
index 9f30b0a0..19a2716e 100644
--- a/include/inject.sh
+++ b/include/inject.sh
@@ -17,8 +17,17 @@ if [ -n "$cvchk" ]; then
cv="$cv $cvchk"
fi
-eval "`setvars "" archive boarddir IFD_platform ifdprefix tree new_mac \
- tmpromdir board xchanged $cv`"
+archive=""
+boarddir=""
+IFD_platform=""
+ifdprefix=""
+tree=""
+new_mac=""
+tmpromdir=""
+board=""
+xchanged=""
+
+eval "`setvars "" $cv`"
inject()
{
@@ -118,7 +127,9 @@ check_target()
. "$boarddir/target.cfg" || \
err "Can't read '$boarddir/target.cfg'" "check_target" "$@"
- chkvars tree
+ if [ -z "$tree" ]; then
+ err "tree unset in '$boarddir/target.cfg'" "check_target" "$@"
+ fi
x_ ./mk -d coreboot "$tree"