1config BR2_TARGET_ROOTFS_ISO9660 2 bool "iso image" 3 depends on (BR2_i386 || BR2_x86_64) 4 depends on BR2_LINUX_KERNEL 5 depends on BR2_TARGET_GRUB2 || BR2_TARGET_SYSLINUX_ISOLINUX 6 select BR2_LINUX_KERNEL_INSTALL_TARGET \ 7 if (!BR2_TARGET_ROOTFS_ISO9660_INITRD && !BR2_TARGET_ROOTFS_INITRAMFS) 8 help 9 Build a bootable ISO9660 image. By default, the root 10 filesystem is directly packed as the ISO9660 filesystem, 11 which means the root filesystem will be read-only. It 12 requires ISO9660 filesystem support and CDROM support in the 13 kernel. 14 15 However, if BR2_TARGET_ROOTFS_INITRAMFS or 16 BR2_TARGET_ROOTFS_ISO9660_INITRD have been enabled, the 17 ISO9660 filesystem will only contain a kernel image and 18 optionally an external initrd image. In this case, the 19 filesystem being in RAM, it will be read/write. No ISO9660 20 or CDROM support is needed in the kernel. 21 22if BR2_TARGET_ROOTFS_ISO9660 23 24choice 25 prompt "Bootloader" 26 27config BR2_TARGET_ROOTFS_ISO9660_GRUB2 28 bool "grub2" 29 depends on BR2_TARGET_GRUB2 30 select BR2_TARGET_ROOTFS_ISO9660_BIOS_BOOTLOADER \ 31 if BR2_TARGET_GRUB2_I386_PC 32 select BR2_TARGET_ROOTFS_ISO9660_EFI_BOOTLOADER \ 33 if (BR2_TARGET_GRUB2_I386_EFI || BR2_TARGET_GRUB2_X86_64_EFI) 34 help 35 Use Grub 2 as the bootloader for the ISO9660 image. Make 36 sure to enable the 'iso9660' module in 37 BR2_TARGET_GRUB2_BUILTIN_MODULES_PC or 38 BR2_TARGET_GRUB2_BUILTIN_MODULES_EFI. Use 'cd' as the boot 39 partition in BR2_TARGET_GRUB2_BOOT_PARTITION= for GRUB on BIOS 40 or 'set root=(cd0)' in the configuration file passed to 41 BR2_TARGET_GRUB2_BUILTIN_CONFIG_EFI for GRUB on EFI. 42 43config BR2_TARGET_ROOTFS_ISO9660_ISOLINUX 44 bool "isolinux" 45 depends on BR2_TARGET_SYSLINUX_ISOLINUX 46 select BR2_TARGET_ROOTFS_ISO9660_BIOS_BOOTLOADER 47 48endchoice 49 50config BR2_TARGET_ROOTFS_ISO9660_BIOS_BOOTLOADER 51 bool 52 53config BR2_TARGET_ROOTFS_ISO9660_EFI_BOOTLOADER 54 bool 55 56config BR2_TARGET_ROOTFS_ISO9660_BOOT_MENU 57 string "Boot menu config file" 58 default "fs/iso9660/grub.cfg" if BR2_TARGET_ROOTFS_ISO9660_GRUB2 59 default "fs/iso9660/isolinux.cfg" if BR2_TARGET_ROOTFS_ISO9660_ISOLINUX 60 help 61 Use this option to provide a custom bootloader configuration 62 file (grub.cfg for Grub 2, isolinux.cfg for isolinux). 63 64 Note that the strings __KERNEL_PATH__ and __INITRD_PATH__ 65 will automatically be replaced by the path to the kernel and 66 initrd images respectively. 67 68config BR2_TARGET_ROOTFS_ISO9660_INITRD 69 bool "Use initrd" 70 default y 71 select BR2_TARGET_ROOTFS_CPIO 72 help 73 Enable this option to have the root filesystem bundled as an 74 initrd/initramfs rather than directly as the ISO9660 75 filesystem. With this option enabled, the ISO9660 will only 76 contain a kernel image, an initrd image (unless an initramfs 77 linked into the kernel is used) and the bootloader. 78 79config BR2_TARGET_ROOTFS_ISO9660_TRANSPARENT_COMPRESSION 80 bool "transparent compression" 81 depends on !BR2_TARGET_ROOTFS_ISO9660_INITRD 82 depends on !BR2_TARGET_ROOTFS_INITRAMFS 83 help 84 Say 'y' to enable use of transparent (de)compression. Files 85 are stored compressed and will be decompressed on-the-fly 86 upon access at runtime. 87 88config BR2_TARGET_ROOTFS_ISO9660_HYBRID 89 bool "Build hybrid image" 90 depends on BR2_TARGET_ROOTFS_ISO9660_ISOLINUX 91 help 92 Enable this option to build an hybrid image, i.e an image 93 which can either be booted from a CD-ROM or from a device 94 which BIOS considers a hard disk or ZIP disk, e.g. a USB key 95 or similar. 96 97endif 98 99comment "iso image needs a Linux kernel and either grub2 or isolinux to be built" 100 depends on BR2_i386 || BR2_x86_64 101 depends on !BR2_LINUX_KERNEL || \ 102 !(BR2_TARGET_GRUB2 || BR2_TARGET_SYSLINUX_ISOLINUX) 103