Verified Commit cbaf1783 authored by hashworks's avatar hashworks
Browse files

Add the ability to adjust the thread count of xz, drop -e

`xz --extreme` would only save us about 1MB but take ~50% longer.
parent 026d2788
...@@ -4,6 +4,8 @@ DOCKER_IMAGE:=base ...@@ -4,6 +4,8 @@ DOCKER_IMAGE:=base
BUILDDIR=build BUILDDIR=build
PWD=$(shell pwd) PWD=$(shell pwd)
XZ_THREADS ?= 0
hooks: hooks:
mkdir -p alpm-hooks/usr/share/libalpm/hooks mkdir -p alpm-hooks/usr/share/libalpm/hooks
find /usr/share/libalpm/hooks -exec ln -sf /dev/null $(PWD)/alpm-hooks{} \; find /usr/share/libalpm/hooks -exec ln -sf /dev/null $(PWD)/alpm-hooks{} \;
...@@ -30,8 +32,7 @@ rootfs: hooks ...@@ -30,8 +32,7 @@ rootfs: hooks
archlinux.tar: rootfs archlinux.tar: rootfs
compress-rootfs: archlinux.tar compress-rootfs: archlinux.tar
xz -f archlinux.tar xz -9 -T"$(XZ_THREADS)" -f archlinux.tar
xz -9e -T0 -f archlinux.tar
docker-image: compress-rootfs docker-image: compress-rootfs
docker build -t $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE) . docker build -t $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE) .
......
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