summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Wolf <gwolf@gwolf.org>2020-04-14 22:27:20 -0500
committerGunnar Wolf <gwolf@gwolf.org>2020-04-14 22:27:20 -0500
commitc4b31783eec7a92198abfd476363af6ddc7c4148 (patch)
tree4f76133f949b0ffb700c665ca05316503498b45f
parent507c5cd45a599a3640bf262419bc5d00befe250a (diff)
Add xzimages target; build shasums based on them instead
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 827ccbd..8932e18 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
all: shasums
shasums: raspi_0w.sha256 raspi_2.sha256 raspi_3.sha256
+xzimages: raspi_0w.img.xz raspi_2.img.xz raspi_3.img.xz
images: raspi_0w.img raspi_2.img raspi_3.img
yaml: raspi_0w.yaml raspi_2.yaml raspi_3.yaml
@@ -28,8 +29,11 @@ raspi_3.yaml: raspi_master.yaml
sed "s/__SPU_ENABLE__//" |\
sed "s/__HOST__/rpi3/" > $@
-%.sha256: %.img
- sha256sum $(@:sha256=img) > $@
+%.sha256: %.img.xz
+ sha256sum $(@:sha256=img.xz) > $@
+
+%.img.xz: %.img
+ xz -f -z -9 $(@:.xz=)
%.img: %.yaml
touch $(@:.img=.log)