summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Wolf <gwolf@gwolf.org>2021-08-02 12:08:47 -0500
committerGunnar Wolf <gwolf@gwolf.org>2021-08-02 12:08:47 -0500
commit6cc7bc36663d33abf9654781b2107ad34d04671e (patch)
tree8051c129fc6da6cf882705eabafd8b4a955107d7
parentbc811c0b53e54addd30485ee6857565eb0985a24 (diff)
parente6defffb2355300e7fd8b9e6c79d9383a53b77f2 (diff)
Merge remote-tracking branch 'smcv/bmap'
-rw-r--r--.gitignore1
-rw-r--r--Makefile7
2 files changed, 7 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index d86c999..60d5887 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
# suggested build result and log filenames
+raspi*.bmap
raspi*.img
raspi*.img.xz
raspi*.log
diff --git a/Makefile b/Makefile
index 1b25417..e46d372 100644
--- a/Makefile
+++ b/Makefile
@@ -131,6 +131,9 @@ raspi_4_bullseye.yaml: raspi_base_bullseye.yaml
%.img.xz: %.img
xz -f -k -z -9 $(@:.xz=)
+%.img.bmap: %.img
+ bmaptool create -o $@ $<
+
%.img: %.yaml
touch $(@:.img=.log)
time nice $(as_root) vmdb2 --verbose --rootfs-tarball=$(subst .img,.tar.gz,$@) --output=$@ $(subst .img,.yaml,$@) --log $(subst .img,.log,$@)
@@ -145,12 +148,14 @@ _clean_images:
rm -f $(addsuffix .img,$(platforms))
_clean_xzimages:
rm -f $(addsuffix .img.xz,$(platforms))
+_clean_bmaps:
+ rm -f $(addsuffix .img.bmap,$(platforms))
_clean_shasums:
rm -f $(addsuffix .sha256,$(platforms)) $(addsuffix .xz.sha256,$(platforms))
_clean_logs:
rm -f $(addsuffix .log,$(platforms))
_clean_tarballs:
rm -f $(addsuffix .tar.gz,$(platforms))
-clean: _clean_xzimages _clean_images _clean_shasums _clean_yaml _clean_tarballs _clean_logs
+clean: _clean_xzimages _clean_images _clean_shasums _clean_yaml _clean_tarballs _clean_logs _clean_bmaps
.PHONY: _ck_root _build_img clean _clean_images _clean_yaml _clean_tarballs _clean_logs