build.mk: initial .work/aptbox immediately after configuring the profile

This will allow apt to be request before/without the hasher is created.
This commit is contained in:
Anton Midyukov 2021-07-19 01:06:21 +07:00
parent 0837be654c
commit 0f68446da7

View File

@ -57,10 +57,13 @@ IMAGEDIR ?= $(shell \
)
LOGDIR ?= $(wildcard $(IMAGEDIR))
make-aptbox:
@mkdir -p $(BUILDDIR)/.work/pkgbox; \
mkaptbox --without-stuff --target=$(ARCH) --apt-config=$(wildcard $(APTCONF)) -- $(BUILDDIR)/.work/pkgbox
# actual build starter
# NB: our output MUST go into stderr to escape POSTPROC
build-image: profile/populate
build-image: make-aptbox profile/populate
@{ \
if [ -n "$(CHECK)" ]; then \
echo "$(TIME) skipping actual image build (CHECK is set)"; \