summaryrefslogtreecommitdiff
path: root/script/trees
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-30 14:10:49 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-30 14:10:49 +0100
commitba7b3a3b21349b9929df674b34a317d03b88a341 (patch)
tree9bebe4f83d93afb29cc65f7df4eb21e2a493f4f3 /script/trees
parent030f1afd8ee79fd9bdb02c041050a80f2f14a632 (diff)
trees: remove variable "config_name"
it's only ever used once, so just use the value that it's set to, without declaring the variable itself Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/trees')
-rwxr-xr-xscript/trees5
1 files changed, 2 insertions, 3 deletions
diff --git a/script/trees b/script/trees
index 79a5898c..0bf32548 100755
--- a/script/trees
+++ b/script/trees
@@ -12,7 +12,7 @@ set -u -e
cbmakeargs="UPDATED_SUBMODULES=1 CPUS=$XBMK_THREADS"
eval `setvars "" xarch cdir defconfig cmakedir xlang mode makeargs elfdir cmd \
project target target_dir targets xtree _f target1 bootstrapargs mkhelper \
- autoconfargs config_name listfile autogenargs btype tree`
+ autoconfargs listfile autogenargs btype tree`
main()
{
@@ -109,7 +109,6 @@ handle_defconfig()
for y in "$target_dir/config"/*; do
[ -f "$y" ] || continue
defconfig="$y"
- config_name="${defconfig#"$target_dir/config/"}"
[ -n "$mode" ] || check_config || continue
handle_makefile
@@ -207,7 +206,7 @@ check_config()
{
[ -f "$defconfig" ] || $err "check_config $project/$target: no config"
- dest_dir="$elfdir/$target/$config_name"
+ dest_dir="$elfdir/$target/${defconfig#"$target_dir/config/"}"
elfcheck || return 1 # skip build if a previous one exists
x_ mkdir -p "$dest_dir"