7e78670e4b
Actually this is the proper rewrite that was looming ever since tgz support was introduced: there are multiple archive formats supported by mkimage, and there are multiple compression methods available as well. So the bullet got bitten yet again along with the "goal parser" which should be more straightforward by now. Thanks dkr@ and mithraen@ for the inspiration of this evening.
20 lines
437 B
Makefile
20 lines
437 B
Makefile
# step 4: build the virtual environment image
|
|
|
|
ifeq (tar,$(IMAGE_PACKTYPE))
|
|
MKI_TAR_COMPRESS = $(IMAGE_COMPRESS)
|
|
endif
|
|
|
|
ifeq (cpio,$(IMAGE_PACKTYPE))
|
|
MKI_CPIO_COMPRESS = $(IMAGE_COMPRESS)
|
|
endif
|
|
|
|
IMAGE_PACKAGES = $(call list,$(BASE_LISTS)) \
|
|
$(SYSTEM_PACKAGES) \
|
|
$(COMMON_PACKAGES) \
|
|
$(BASE_PACKAGES)
|
|
|
|
all: $(GLOBAL_DEBUG) build-image copy-tree run-image-scripts pack-image \
|
|
postprocess $(GLOBAL_CLEAN_WORKDIR)
|
|
|
|
prep: imagedir
|