Commit 61a85803 authored by Guido Gunther's avatar Guido Gunther

Upload, clean and checksum tarball

parent 3733e982
debootstrap.log
*.img
*.img.xz
*.tar.xz
files/
tmp/
build/kernel-git-arm.txt
......
......@@ -2,28 +2,30 @@
BOARD=imx6
IMAGE=$(BOARD).img
TARBALL=$(BOARD).tar.xz
COMPRESSED=$(IMAGE).xz
all: sha256sums
tmp/$(IMAGE).stamp $(IMAGE): lava.sh root.sh
tmp/$(IMAGE).stamp $(IMAGE) $(TARBALL): lava.sh root.sh
./lava.sh -b $(BOARD)
touch tmp/$(IMAGE).stamp
%.img.xz: %.img tmp/%.img.stamp
xz -T0 --stdout $< > $@.tmp
mv $@.tmp $@
sha256sum $@
sha256sums: $(COMPRESSED)
sha256sum $< > $@.tmp
sha256sums: $(COMPRESSED) $(TARBALL)
sha256sum $^ > $@.tmp
mv $@.tmp $@
clean:
rm -rf files/ tmp/ *.img *.img.xz sha256sums
rm -rf files/ tmp/ $(IMAGE) $(COMPRESSED) sha256sums
check:
bash -n lava.sh root.sh
publish: $(COMPRESSED)
build/publish.sh
.PHONY: all
......@@ -20,7 +20,7 @@ scp -r -P 3376 files/* "${REMOTE}:${TARGET}/files/"
# Publish built images if present
if ls *.img.xz >& /dev/null; then
scp -P 3376 *.img.xz sha256sums "${REMOTE}:${TARGET}/"
scp -P 3376 *.tar.xz *.img.xz sha256sums "${REMOTE}:${TARGET}/"
fi
ssh -p 3376 ${REMOTE} "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