build: add support for enabling the rootfs/boot partition size option via target...
authorFelix Fietkau <nbd@nbd.name>
Sun, 26 Aug 2018 17:36:33 +0000 (19:36 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 3 Sep 2018 10:06:24 +0000 (12:06 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
config/Config-images.in
scripts/target-metadata.pl
target/Config.in

index 76e64641b414c027930c01d25c393c6cd0731d55..6242e36d34b9293854176cc4097f82d2155a464c 100644 (file)
@@ -268,12 +268,12 @@ menu "Target Images"
 
        config TARGET_KERNEL_PARTSIZE
                int "Kernel partition size (in MB)"
-               depends on GRUB_IMAGES
+               depends on GRUB_IMAGES || USES_BOOT_PART
                default 16
 
        config TARGET_ROOTFS_PARTSIZE
                int "Root filesystem partition size (in MB)"
-               depends on GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532 || TARGET_mvebu || TARGET_uml
+               depends on GRUB_IMAGES || USES_ROOTFS_PART || TARGET_ROOTFS_EXT4FS || TARGET_rb532 || TARGET_mvebu || TARGET_uml
                default 256
                help
                  Select the root filesystem partition size.
index cbc3403a057086bb5eba57a565601ae4e8b62c28..ef0a34eb4ffae2fe9b8b50d6b4295600eee6f2f3 100755 (executable)
@@ -40,6 +40,8 @@ sub target_config_features(@) {
                /^small_flash$/ and $ret .= "\tselect SMALL_FLASH\n";
                /^nand$/ and $ret .= "\tselect NAND_SUPPORT\n";
                /^virtio$/ and $ret .= "\tselect VIRTIO_SUPPORT\n";
+               /^rootfs-part$/ and $ret .= "\tselect USES_ROOTFS_PART\n";
+               /^boot-part$/ and $ret .= "\tselect USES_BOOT_PART\n";
        }
        return $ret;
 }
index 3aef76890dba3c18ac3fafa588cba61ce72009d7..3cf4231f2aad3e9bdcee9d715e5366d697b3b490 100644 (file)
@@ -96,6 +96,12 @@ config ARCH_64BIT
 config VIRTIO_SUPPORT
        bool
 
+config USES_ROOTFS_PART
+       bool
+
+config USES_BOOT_PART
+       bool
+
 # Architecture selection
 
 config aarch64