summaryrefslogtreecommitdiff
path: root/script/update/project
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-10-13 23:15:25 +0100
committerLeah Rowe <leah@libreboot.org>2023-10-13 23:16:19 +0100
commitc401efdd0371aee733c8672a645baab49b3e3b86 (patch)
tree7b0eb64a04efc2ac91c3c7cb1c2c8f7fdd0772e4 /script/update/project
parent268fd6ce719b5abe5a8d39bb80989f184868c992 (diff)
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 <leah@libreboot.org>
Diffstat (limited to 'script/update/project')
-rwxr-xr-xscript/update/project/release15
1 files changed, 9 insertions, 6 deletions
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}\""
}