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>audit2
parent
c77c09bac2
commit
2740db84b7
|
@ -12,7 +12,7 @@ set -u -e
|
||||||
cbmakeargs="UPDATED_SUBMODULES=1 CPUS=$XBMK_THREADS"
|
cbmakeargs="UPDATED_SUBMODULES=1 CPUS=$XBMK_THREADS"
|
||||||
eval `setvars "" xarch cdir defconfig cmakedir xlang mode makeargs elfdir cmd \
|
eval `setvars "" xarch cdir defconfig cmakedir xlang mode makeargs elfdir cmd \
|
||||||
project target target_dir targets xtree _f target1 bootstrapargs mkhelper \
|
project target target_dir targets xtree _f target1 bootstrapargs mkhelper \
|
||||||
autoconfargs config_name listfile autogenargs btype tree`
|
autoconfargs listfile autogenargs btype tree`
|
||||||
|
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
|
@ -107,7 +107,6 @@ handle_defconfig()
|
||||||
for y in "$target_dir/config"/*; do
|
for y in "$target_dir/config"/*; do
|
||||||
[ -f "$y" ] || continue
|
[ -f "$y" ] || continue
|
||||||
defconfig="$y"
|
defconfig="$y"
|
||||||
config_name="${defconfig#"$target_dir/config/"}"
|
|
||||||
|
|
||||||
[ -n "$mode" ] || check_config || continue
|
[ -n "$mode" ] || check_config || continue
|
||||||
handle_makefile
|
handle_makefile
|
||||||
|
@ -205,7 +204,7 @@ check_config()
|
||||||
{
|
{
|
||||||
[ -f "$defconfig" ] || $err "check_config $project/$target: no 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
|
elfcheck || return 1 # skip build if a previous one exists
|
||||||
|
|
||||||
x_ mkdir -p "$dest_dir"
|
x_ mkdir -p "$dest_dir"
|
||||||
|
|
Loading…
Reference in New Issue