Commit 682fe623 authored by Guido Gunther's avatar Guido Gunther

Checksum generated image

parent c468ff77
......@@ -12,3 +12,4 @@ files/*.imx
files/*.orig.tar.gz
build/u-boot-*/
build/u-boot-*.imx
sha256sums
......@@ -4,7 +4,7 @@ BOARD=imx6
IMAGE=$(BOARD).img
COMPRESSED=$(IMAGE).xz
all: $(COMPRESSED)
all: sha256sums
$(IMAGE): lava.sh root.sh
./lava.sh -b $(BOARD)
......@@ -12,6 +12,11 @@ $(IMAGE): lava.sh root.sh
%.img.xz: %.img
xz -T0 --stdout $< > $@.tmp
mv $@.tmp $@
sha256sum imx6.img.xz
sha256sums: $(COMPRESSED)
sha256sum $< > $@.tmp
mv $@.tmp $@
clean:
rm -f files/ *.img *.img.*
......
......@@ -17,7 +17,7 @@ scp -r -P 3376 files/* "librem5@storage.puri.sm:${TARGET}/"
# Publish built images if present
if ls *.img.xz >& /dev/null; then
scp -P 3376 *.img.xz "librem5@storage.puri.sm:${TARGET}/"
scp -P 3376 *.img.xz sha256sums "librem5@storage.puri.sm:${TARGET}/"
fi
ssh -p 3376 librem5@storage.puri.sm "ln -nsf ${DATE} ${TARGET}/../latest"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment