mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-24 05:53:30 +08:00
fs/iso9660: add option for transparent (de)compression
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> [Thomas: rename option to BR2_TARGET_ROOTFS_ISO9660_TRANSPARENT_COMPRESSION.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
7555a2ae1a
commit
90867d8fdf
@ -63,6 +63,15 @@ config BR2_TARGET_ROOTFS_ISO9660_INITRD
|
||||
contain a kernel image, an initrd image (unless an initramfs
|
||||
linked into the kernel is used) and the bootloader.
|
||||
|
||||
config BR2_TARGET_ROOTFS_ISO9660_TRANSPARENT_COMPRESSION
|
||||
bool "transparent compression"
|
||||
depends on !BR2_TARGET_ROOTFS_ISO9660_INITRD
|
||||
depends on !BR2_TARGET_ROOTFS_INITRAMFS
|
||||
help
|
||||
Say 'y' to enable use of transparent (de)compression. Files
|
||||
are stored compressed and will be decompressed on-the-fly
|
||||
upon access at runtime.
|
||||
|
||||
config BR2_TARGET_ROOTFS_ISO9660_HYBRID
|
||||
bool "Build hybrid image"
|
||||
depends on BR2_TARGET_ROOTFS_ISO9660_ISOLINUX
|
||||
|
@ -41,6 +41,17 @@ define ROOTFS_ISO9660_CREATE_TEMPDIR
|
||||
mkdir -p $(ROOTFS_ISO9660_TARGET_DIR)
|
||||
endef
|
||||
ROOTFS_ISO9660_PRE_GEN_HOOKS += ROOTFS_ISO9660_CREATE_TEMPDIR
|
||||
else ifeq ($(BR2_TARGET_ROOTFS_ISO9660_TRANSPARENT_COMPRESSION),y)
|
||||
ROOTFS_ISO9660_TARGET_DIR = $(FS_DIR)/rootfs.iso9660.tmp
|
||||
# This must be early, before we copy the bootloader files
|
||||
define ROOTFS_ISO9660_MKZFTREE
|
||||
$(RM) -rf $(ROOTFS_ISO9660_TARGET_DIR)
|
||||
mkzftree -X -z 9 -p $(PARALLEL_JOBS) \
|
||||
$(TARGET_DIR) \
|
||||
$(ROOTFS_ISO9660_TARGET_DIR)
|
||||
endef
|
||||
ROOTFS_ISO9660_PRE_GEN_HOOKS += ROOTFS_ISO9660_MKZFTREE
|
||||
ROOTFS_ISO9660_GENISOIMAGE_OPTS += -z
|
||||
else
|
||||
ROOTFS_ISO9660_TARGET_DIR = $(TARGET_DIR)
|
||||
endif
|
||||
@ -117,6 +128,7 @@ endif # ROOTFS_ISO9660_USE_INITRD
|
||||
define ROOTFS_ISO9660_CMD
|
||||
$(HOST_DIR)/bin/genisoimage -J -R -b $(ROOTFS_ISO9660_BOOT_IMAGE) \
|
||||
-no-emul-boot -boot-load-size 4 -boot-info-table \
|
||||
$(ROOTFS_ISO9660_GENISOIMAGE_OPTS) \
|
||||
-o $@ $(ROOTFS_ISO9660_TARGET_DIR)
|
||||
endef
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user