summaryrefslogtreecommitdiff
path: root/script/update
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-10-20 08:03:45 +0100
committerLeah Rowe <leah@libreboot.org>2023-10-20 08:45:57 +0100
commit182ee8e4163b79984b6c775688f1b27e9a62d514 (patch)
tree4cf8f6c60acd0ff1d3a5ba8caeed42d8cbfcf264 /script/update
parent54eb347a300c45f8c6c846ed96398c29a0db52a2 (diff)
update/trees: don't run make if mode=fetch
this fixes a regression caused by a previous revision Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/update')
-rwxr-xr-xscript/update/trees12
1 files changed, 9 insertions, 3 deletions
diff --git a/script/update/trees b/script/update/trees
index a71dbec0..88f22c31 100755
--- a/script/update/trees
+++ b/script/update/trees
@@ -45,7 +45,10 @@ build_projects()
{
[ $# -gt 0 ] && x_ ./update trees ${_f} ${@}
- [ "${mode}" = "fetch" ] && fetch_project_repo && return 0
+ if [ "${mode}" = "fetch" ]; then
+ fetch_project_repo
+ return 0
+ fi
codedir="src/${project}"
[ -d "${codedir}" ] || x_ ./update trees -f "${project}"
@@ -131,7 +134,10 @@ handle_src_tree()
romtype="normal"
target_dir="${cfgsdir}/${target}"
- [ "${mode}" = "fetch" ] && fetch_project_trees && return 1
+ if [ "${mode}" = "fetch" ]; then
+ fetch_project_trees
+ return 1
+ fi
x_ mkdir -p "${elfdir}/${target}"
eval "$(setvars "" arch tree)"
@@ -159,7 +165,7 @@ handle_src_tree()
[ "$project" != "coreboot" ] && [ "$project" != "u-boot" ] && return 0
# u-boot and coreboot are both compiled with coreboot's crossgcc
- [ -z ${mode} ] || return 0
+ [ -z "${mode}" ] || return 0
check_cross_compiler
}