diff options
-rw-r--r-- | config/grub/default/target.cfg | 1 | ||||
-rw-r--r-- | config/grub/nvme/target.cfg | 1 | ||||
-rw-r--r-- | config/grub/xhci/target.cfg | 1 | ||||
-rwxr-xr-x | script/trees | 7 |
4 files changed, 7 insertions, 3 deletions
diff --git a/config/grub/default/target.cfg b/config/grub/default/target.cfg index df558a94..a5936693 100644 --- a/config/grub/default/target.cfg +++ b/config/grub/default/target.cfg @@ -4,3 +4,4 @@ bootstrapargs="--gnulib-srcdir=gnulib/ --no-git" autoconfargs="--with-platform=coreboot --disable-werror" makeargs="FS_PAYLOAD_MODULES=\"\"" btype="autohell" +mkhelper="mkpayload_grub" diff --git a/config/grub/nvme/target.cfg b/config/grub/nvme/target.cfg index 2f84f110..f5e95daf 100644 --- a/config/grub/nvme/target.cfg +++ b/config/grub/nvme/target.cfg @@ -4,3 +4,4 @@ bootstrapargs="--gnulib-srcdir=gnulib/ --no-git" autoconfargs="--with-platform=coreboot --disable-werror" makeargs="FS_PAYLOAD_MODULES=\"\"" btype="autohell" +mkhelper="mkpayload_grub" diff --git a/config/grub/xhci/target.cfg b/config/grub/xhci/target.cfg index 2c6d6080..3cdcb5d8 100644 --- a/config/grub/xhci/target.cfg +++ b/config/grub/xhci/target.cfg @@ -4,3 +4,4 @@ bootstrapargs="--gnulib-srcdir=gnulib/ --no-git" autoconfargs="--with-platform=coreboot --disable-werror" makeargs="FS_PAYLOAD_MODULES=\"\"" btype="autohell" +mkhelper="mkpayload_grub" diff --git a/script/trees b/script/trees index 3da74fe9..781e4055 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 config config_name xlang mode makeargs \ elfdir project target target_dir targets tree _f target1 bootstrapargs \ - autoconfargs cmakedir listfile autogenargs xtree btype` + autoconfargs cmakedir listfile autogenargs xtree btype mkhelper` main() { @@ -152,7 +152,7 @@ handle_src_tree() load_project_config() { eval `setvars "" xarch xlang tree bootstrapargs autoconfargs xtree \ - tree_depend makeargs btype` + tree_depend makeargs btype mkhelper` [ -f "$1/target.cfg" ] || btype="auto" # target.cfg optional on single-tree so return if missing. @@ -246,7 +246,8 @@ run_make_command() make -C "$cdir" $mode -j$XBMK_THREADS $makeargs || $err "$cdir mk$mode" - [ "$project" = "grub" ] && [ -z "$mode" ] && mkpayload_grub + [ -z "$mkhelper" ] || [ -n "$mode" ] || $mkhelper || \ + $err "$cdir: helper command failed: $mkhelper" # eg mkpayload_grub [ "$mode" != "clean" ] && return 0 make -C "$cdir" distclean 2>/dev/null || : |