summaryrefslogtreecommitdiff
path: root/script/build/release/roms
diff options
context:
space:
mode:
authorRiku Viitanen <riku.viitanen@protonmail.com>2023-09-08 20:43:47 +0300
committerRiku Viitanen <riku.viitanen@protonmail.com>2023-09-08 20:43:53 +0300
commit7b6fb958977f5d5f3f2c3ac91726efa7d72860f0 (patch)
tree5fa43f7a41ba095d71dd87c5b60fa1d6e32a454a /script/build/release/roms
parentc292e01b009405931f66adbf5c1c17377ef0a50c (diff)
Build pico-serprog binary release archive
Signed-off-by: Riku Viitanen <riku.viitanen@protonmail.com>
Diffstat (limited to 'script/build/release/roms')
-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" ] && \