prebuilt: allow running prebuilt images

This commit is contained in:
Ciro Santilli
2018-05-23 04:08:58 +01:00
parent b60c6f1b9c
commit 32ccda88c8
7 changed files with 163 additions and 94 deletions

View File

@@ -1,10 +1,6 @@
#!/usr/bin/env bash
set -eu
# Ideally should be obtained from common.
# But the paths there are absolute, and get recorded by in zip.
# and generating relative paths seems hard:
# https://stackoverflow.com/questions/2564634/convert-absolute-path-into-relative-path-given-a-current-directory-using-bash
outfile="out/images-$(git log -1 --format="%H").zip"
outfile="out/out.zip"
rm -f "$outfile"
for arch in x86_64 arm aarch64; do
img_dir="out/${arch}/buildroot/images"