6fadf7e0e9
Here we go with postprocessing priorities along the way as ISO hybridization has to occur before implanting final MD5 sum (which must happen earlier than e.g. some external MD5SUM file generation). Unfortunately proper dependencies aren't applicable here (though I'd like to be proved wrong on this one). Please note that this needs propagator > 20101130-alt9 for automatic mode to work (has also been worked around in gfxboot case with design-bootloader-source-6.0-alt1). Thanks rom_as@ for asking about the hybrid image status and helping out with testing.
37 lines
981 B
Makefile
37 lines
981 B
Makefile
DISTRO_EXTS := .iso
|
|
|
|
use/pack:
|
|
@$(call add_feature)
|
|
|
|
# conventional ISO9660 image hybridization
|
|
# for direct bootable usbflash imaging
|
|
use/pack/iso: use/pack boot/isolinux $(ISOHYBRID:%=use/isohybrid)
|
|
ifeq (distro,$(IMAGE_CLASS))
|
|
@$(call set,IMAGE_PACKTYPE,isoboot)
|
|
else
|
|
@$(call set,IMAGE_PACKTYPE,isodata)
|
|
endif
|
|
|
|
VE_ARCHIVES := tar cpio
|
|
VE_COMPRESSORS := gz xz# there's no sense in bzip2 by now
|
|
VE_ZIPS := $(call addsuffices, \
|
|
$(addprefix .,$(VE_COMPRESSORS)), \
|
|
$(VE_ARCHIVES))# tar.gz cpio.xz ...
|
|
VE_EXTS := $(sort $(addprefix .,$(VE_ARCHIVES) $(VE_ZIPS)))# .tar .tar.gz ...
|
|
|
|
# generate rules for archive/compressor combinations
|
|
define PACK_containers
|
|
use/pack/$(1): use/pack
|
|
@$$(call set,IMAGE_PACKTYPE,$(1))
|
|
endef
|
|
|
|
define PACK_compressors
|
|
use/pack/$(1).$(2): use/pack/$(1)
|
|
@$$(call set,IMAGE_COMPRESS,$(2))
|
|
endef
|
|
|
|
$(foreach c,$(VE_ARCHIVES), \
|
|
$(eval $(call PACK_containers,$(c))) \
|
|
$(foreach z,$(VE_COMPRESSORS), \
|
|
$(eval $(call PACK_compressors,$(c),$(z)))))
|