diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-08-26 19:36:33 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2018-09-03 12:06:24 +0200 |
commit | 00f030a9c67c551e675364d73234a4cba273b420 (patch) | |
tree | fb2112e83f865c5b6badc5a00b7a8ed871486bb5 | |
parent | 7165378d19a8a76b3182b95681af61d2bc93a74c (diff) | |
download | upstream-00f030a9c67c551e675364d73234a4cba273b420.tar.gz upstream-00f030a9c67c551e675364d73234a4cba273b420.tar.bz2 upstream-00f030a9c67c551e675364d73234a4cba273b420.zip |
build: add support for enabling the rootfs/boot partition size option via target feature
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r-- | config/Config-images.in | 4 | ||||
-rwxr-xr-x | scripts/target-metadata.pl | 2 | ||||
-rw-r--r-- | target/Config.in | 6 |
3 files changed, 10 insertions, 2 deletions
diff --git a/config/Config-images.in b/config/Config-images.in index 76e64641b4..6242e36d34 100644 --- a/config/Config-images.in +++ b/config/Config-images.in @@ -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. diff --git a/scripts/target-metadata.pl b/scripts/target-metadata.pl index cbc3403a05..ef0a34eb4f 100755 --- a/scripts/target-metadata.pl +++ b/scripts/target-metadata.pl @@ -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; } diff --git a/target/Config.in b/target/Config.in index 3aef76890d..3cf4231f2a 100644 --- a/target/Config.in +++ b/target/Config.in @@ -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 |