From c401efdd0371aee733c8672a645baab49b3e3b86 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 13 Oct 2023 23:15:25 +0100 Subject: build/release: support skipping rom builds pass this argument: -m src by doing this, only the src tarball will be made Signed-off-by: Leah Rowe --- script/update/project/release | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'script/update') diff --git a/script/update/project/release b/script/update/project/release index c28d8f9e..519efbcf 100755 --- a/script/update/project/release +++ b/script/update/project/release @@ -8,7 +8,7 @@ set -u -e . "include/err.sh" eval "$(setvars "" vdir basename src_dirname srcdir _nogit _xm target romdir \ - microcode_required CONFIG_HAVE_MRC CONFIG_HAVE_ME_BIN \ + microcode_required CONFIG_HAVE_MRC CONFIG_HAVE_ME_BIN mode \ CONFIG_KBC1126_FIRMWARE CONFIG_INCLUDE_SMSC_SCH5545_EC_FW)" _f="coreboot u-boot seabios flashrom grub memtest86plus uefitool" @@ -21,10 +21,11 @@ cbfstool="cbutils/default/cbfstool" main() { vdir="release" - while getopts d: option + while getopts d:m: option do case "${1}" in -d) vdir="${2}" ;; + -m) mode="${2}" ;; *) err "Invalid option" ;; esac done @@ -78,10 +79,12 @@ build_release() cd "${srcdir%/*}" || err "${_xm}: mktarball \"${srcdir}\"" mktarball "${srcdir##*/}" "${srcdir##*/}.tar.xz" || err "${_xm}: mksrc" ) - ( - cd "${srcdir}" || err "${_xm}: 2 !cd \"${srcdir}\"" - mkrom_images - ) + if [ "${mode}" != "src" ]; then + ( + cd "${srcdir}" || err "${_xm}: 2 !cd \"${srcdir}\"" + mkrom_images + ) + fi rm -Rf "${srcdir}" || err "${_xm}: !rm -Rf \"${srcdir}\"" } -- cgit v1.2.1