summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/data/coreboot/mkhelper.cfg1
-rwxr-xr-xscript/roms2
-rwxr-xr-xscript/trees14
3 files changed, 8 insertions, 9 deletions
diff --git a/config/data/coreboot/mkhelper.cfg b/config/data/coreboot/mkhelper.cfg
new file mode 100644
index 00000000..3418d98d
--- /dev/null
+++ b/config/data/coreboot/mkhelper.cfg
@@ -0,0 +1 @@
+makeargs="UPDATED_SUBMODULES=1 CPUS=$XBMK_THREADS"
diff --git a/script/roms b/script/roms
index 359d5725..8a2cc796 100755
--- a/script/roms
+++ b/script/roms
@@ -107,7 +107,7 @@ configure_target()
[ -n "$uboot_config" ] || uboot_config="default"
[ "$payload_uboot" = "y" ] || payload_seabios="y"
[ "$payload_grub" = "y" ] && payload_seabios="y"
- [ "$payload_seabios" = "y" ] && [ -n "$payload_uboot" = "y" ] && \
+ [ "$payload_seabios" = "y" ] && [ "$payload_uboot" = "y" ] && \
$err "$board: U-Boot and SeaBIOS/GRUB are both enabled."
[ -z "$grub_scan_disk" ] && grub_scan_disk="nvme ahci ata"
diff --git a/script/trees b/script/trees
index fff1d890..cf344d9d 100755
--- a/script/trees
+++ b/script/trees
@@ -9,7 +9,6 @@ set -u -e
. "include/lib.sh"
. "include/git.sh"
-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 listfile autogenargs btype tree rev tree_depend`
@@ -38,7 +37,7 @@ main()
[ -z "$project" ] && for p in $(ls -1 config/git); do
./update trees $_f "$p" || $err "!./update trees $_f $p"
[ "$XBMK_RELEASE" != "y" ] || singletree "$p" || \
- x_ rm Rf "src/$p/$p"; continue
+ x_ rm -Rf "src/$p/$p"; continue
done && return 0
[ -f "config/git/$project/pkg.cfg" ] || $err "'$project' not defined"
@@ -180,9 +179,9 @@ check_cross_compiler()
[ -n "$xlang" ] && export BUILD_LANGUAGES="$xlang"
# sometimes buildgcc fails for like no reason. try twice.
- make -C "$cbdir" crossgcc-${_xarch%-*} $cbmakeargs || \
- make -C "$cbdir" crossgcc-${_xarch%-*} $cbmakeargs || \
- $err "!mkxgcc $project/$xtree '${_xarch%-*}' '$cbmakeargs'"
+ make -C "$cbdir" crossgcc-${_xarch%-*} $makeargs || \
+ make -C "$cbdir" crossgcc-${_xarch%-*} $makeargs || \
+ $err "!mkxgcc $project/$xtree '${_xarch%-*}' '$makeargs'"
done; return 0
}
@@ -193,7 +192,7 @@ check_coreboot_utils()
utilsrcdir="src/coreboot/$1/util/$util"
utilmode="" && [ -n "$mode" ] && utilmode="clean"
- x_ make -C "$utilsrcdir" $utilmode -j$XBMK_THREADS $cbmakeargs
+ x_ make -C "$utilsrcdir" $utilmode -j$XBMK_THREADS $makeargs
[ -z "$mode" ] && [ ! -f "$utilelfdir/$util" ] && \
x_ mkdir -p "$utilelfdir" && \
x_ cp "$utilsrcdir/$util" "elf/$util/$1"
@@ -241,8 +240,7 @@ run_make_command()
check_makefile "$cdir" || return 1
[ "$project" = "coreboot" ] && [ -z "$mode" ] && x_ \
- printf "%s\n" "${version%%-*}" > "$cdir/.coreboot-version" \
- && makeargs="$makeargs $cbmakeargs"
+ printf "%s\n" "${version%%-*}" > "$cdir/.coreboot-version"
make -C "$cdir" $mode -j$XBMK_THREADS $makeargs || $err "$cdir mk$mode"
[ -z "$mkhelper" ] || [ -n "$mode" ] || $mkhelper || $err "!$mkhelper"