summaryrefslogtreecommitdiff
path: root/script/build/release
diff options
context:
space:
mode:
authorLeah Rowe <vimuser@noreply.codeberg.org>2023-09-08 21:02:04 +0000
committerLeah Rowe <vimuser@noreply.codeberg.org>2023-09-08 21:02:04 +0000
commit4a459b0217c45a9dbd761793b040be67502c4d7e (patch)
tree5fa43f7a41ba095d71dd87c5b60fa1d6e32a454a /script/build/release
parent7e8465bec86805e5d6d67d348d811a09243d3b9c (diff)
parent7b6fb958977f5d5f3f2c3ac91726efa7d72860f0 (diff)
Merge pull request 'pico-serprog improvements' (#128) from Riku_V/lbmk:master into master
Reviewed-on: https://codeberg.org/libreboot/lbmk/pulls/128
Diffstat (limited to 'script/build/release')
-rwxr-xr-xscript/build/release/roms14
1 files changed, 11 insertions, 3 deletions
diff --git a/script/build/release/roms b/script/build/release/roms
index 500bdcfc..a56c43f5 100755
--- a/script/build/release/roms
+++ b/script/build/release/roms
@@ -43,6 +43,7 @@ main()
init_check
for romdir in bin/*; do
+
[ -d "${romdir}" ] || continue
make_archive "${romdir}"
done
@@ -81,6 +82,16 @@ make_archive()
err "make_archive: cannot create tmpdir"
rm -Rf "${romdir}" || err "make_archive: can't remove tmpdir"
target="${builddir##*/}"
+
+ if [ ! -f "config/coreboot/${target}/target.cfg" ]; then
+ # No config, just make a tarball
+ tarball=release/${version}/roms/${target}_${version}.tar.xz
+ tar -c "${builddir}" | xz -6 > ${tarball} || \
+ (rm ${tarball}
+ err "make_archive: cannot make \"${tarball}\"")
+ return 0
+ fi
+
romdir="${romdir}/bin/${target}"
mkdir -p "${romdir}" || \
err "make_archive: can't mkdir tmpdir"
@@ -89,9 +100,6 @@ make_archive()
echo ${target}
- [ -f "config/coreboot/${target}/target.cfg" ] || \
- err "make_archive: ${target}: target.cfg is missing"
-
microcode_required="y"
. "config/coreboot/${target}/target.cfg"
if [ "${microcode_required}" != "y" ] && \