Commit d43434eb authored by Guido Gunther's avatar Guido Gunther

Makefile: use a stamp for the image

Otherwise calling make on an aborted image build will compress
it instead o rebuilding it
parent 92afdd9f
......@@ -2,6 +2,7 @@
*.img
*.img.xz
*.img.log
*.img.stamp
files/uboot-*/
files/*.changes
files/*.deb
......
......@@ -6,10 +6,11 @@ COMPRESSED=$(IMAGE).xz
all: sha256sums
$(IMAGE): lava.sh root.sh
$(IMAGE).stamp: lava.sh root.sh
./lava.sh -b $(BOARD)
touch $(IMAGE).stamp
%.img.xz: %.img
%.img.xz: %.img %.img.stamp
xz -T0 --stdout $< > $@.tmp
mv $@.tmp $@
sha256sum imx6.img.xz
......
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