Makefile: use XZ_OPT=-0 for make vm

...and targets which depend on it, like `make check`.

This shaves some seconds off of image building.
This commit is contained in:
Allison Karlitskaya 2024-06-04 16:20:36 +02:00 committed by Jelle van der Waa
parent 3a7820998e
commit d3758c3fef

View file

@ -157,6 +157,7 @@ rpm: $(TARFILE) $(NODE_CACHE) $(SPEC)
# build a VM with locally built distro pkgs installed # build a VM with locally built distro pkgs installed
# disable networking, VM images have mock/pbuilder with the common build dependencies pre-installed # disable networking, VM images have mock/pbuilder with the common build dependencies pre-installed
$(VM_IMAGE): export XZ_OPT=-0
$(VM_IMAGE): $(TARFILE) $(NODE_CACHE) bots test/vm.install $(VM_IMAGE): $(TARFILE) $(NODE_CACHE) bots test/vm.install
bots/image-customize --no-network --fresh \ bots/image-customize --no-network --fresh \
--upload $(NODE_CACHE):/var/tmp/ --build $(TARFILE) \ --upload $(NODE_CACHE):/var/tmp/ --build $(TARFILE) \