mirror of
https://salsa.debian.org/raspi-team/image-specs
synced 2026-05-30 06:38:09 +02:00
Merge remote-tracking branch 'smcv/bmap'
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,4 +1,5 @@
|
|||||||
# suggested build result and log filenames
|
# suggested build result and log filenames
|
||||||
|
raspi*.bmap
|
||||||
raspi*.img
|
raspi*.img
|
||||||
raspi*.img.xz
|
raspi*.img.xz
|
||||||
raspi*.log
|
raspi*.log
|
||||||
|
|||||||
7
Makefile
7
Makefile
@@ -131,6 +131,9 @@ raspi_4_bullseye.yaml: raspi_base_bullseye.yaml
|
|||||||
%.img.xz: %.img
|
%.img.xz: %.img
|
||||||
xz -f -k -z -9 $(@:.xz=)
|
xz -f -k -z -9 $(@:.xz=)
|
||||||
|
|
||||||
|
%.img.bmap: %.img
|
||||||
|
bmaptool create -o $@ $<
|
||||||
|
|
||||||
%.img: %.yaml
|
%.img: %.yaml
|
||||||
touch $(@:.img=.log)
|
touch $(@:.img=.log)
|
||||||
time nice $(as_root) vmdb2 --verbose --rootfs-tarball=$(subst .img,.tar.gz,$@) --output=$@ $(subst .img,.yaml,$@) --log $(subst .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))
|
rm -f $(addsuffix .img,$(platforms))
|
||||||
_clean_xzimages:
|
_clean_xzimages:
|
||||||
rm -f $(addsuffix .img.xz,$(platforms))
|
rm -f $(addsuffix .img.xz,$(platforms))
|
||||||
|
_clean_bmaps:
|
||||||
|
rm -f $(addsuffix .img.bmap,$(platforms))
|
||||||
_clean_shasums:
|
_clean_shasums:
|
||||||
rm -f $(addsuffix .sha256,$(platforms)) $(addsuffix .xz.sha256,$(platforms))
|
rm -f $(addsuffix .sha256,$(platforms)) $(addsuffix .xz.sha256,$(platforms))
|
||||||
_clean_logs:
|
_clean_logs:
|
||||||
rm -f $(addsuffix .log,$(platforms))
|
rm -f $(addsuffix .log,$(platforms))
|
||||||
_clean_tarballs:
|
_clean_tarballs:
|
||||||
rm -f $(addsuffix .tar.gz,$(platforms))
|
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
|
.PHONY: _ck_root _build_img clean _clean_images _clean_yaml _clean_tarballs _clean_logs
|
||||||
|
|||||||
Reference in New Issue
Block a user