[Buildroot] [PATCH v6 1/2] fs/ext2: rename BR2_TARGET_ROOTFS_EXT2_BLOCKS -> BR2_TARGET_ROOTFS_EXT2_SIZE
Baruch Siach
baruch at tkos.co.il
Wed Jul 5 13:07:50 UTC 2017
Hi Samuel,
On Wed, Jul 05, 2017 at 03:00:59PM +0200, Samuel Martin wrote:
> This change deprecates the ext2/3/4 rootfs size in blocks symbol in
> favor of one that mimic the fs-size argument behavior of mkfs (i.e.
> size in a human readable format accepting k, m, g or t suffix or their
> upper-case variants).
>
> This change also updates the defconfigs that used to set
> BR2_TARGET_ROOTFS_EXT2_BLOCKS symbol.
>
> Signed-off-by: Samuel Martin <s.martin49 at gmail.com>
>
> ---
> changes v5->v6:
> - rebase
> - fix typo (Peter)
> - add comments in legacy (Arnout)
> - quote EXT2_SIZE usage (Arnout)
> - use more human-friendly size (defaults + defconfigs) (Arnout)
> - trigger legacy when using the deprecated valid (Arnout)
>
> changes v4->v5:
> - new patch (Arnout)
> ---
> Config.in.legacy | 15 +++++++++++++++
> configs/at91sam9x5ek_mmc_dev_defconfig | 2 +-
> configs/beaglebone_qt5_defconfig | 2 +-
> configs/firefly_rk3288_demo_defconfig | 2 +-
> configs/minnowboard_max-graphical_defconfig | 3 +--
> configs/nanopi_neo_defconfig | 2 +-
> configs/pc_x86_64_bios_defconfig | 2 +-
> configs/pc_x86_64_efi_defconfig | 2 +-
> configs/raspberrypi3_64_defconfig | 2 +-
> fs/ext2/Config.in | 13 ++++++++-----
> fs/ext2/ext2.mk | 7 ++++++-
> 11 files changed, 37 insertions(+), 15 deletions(-)
>
> diff --git a/Config.in.legacy b/Config.in.legacy
> index 12362da6f..853e2f913 100644
> --- a/Config.in.legacy
> +++ b/Config.in.legacy
> @@ -152,6 +152,21 @@ config BR2_PACKAGE_HOST_MKE2IMG
> We now call mkfs directly to generate ext2/3/4 filesystem
> image, so mke2img is no longer necessary.
>
> +config BR2_TARGET_ROOTFS_EXT2_BLOCKS
> + int "exact size in blocks has been removed"
> + default 0
Missing BR2_LEGACY.
> + help
> + This option has been removed in favor of BR2_TARGET_ROOTFS_EXT2_SIZE.
> + It has been set automatically to the value you had before.
> +
> +config BR2_TARGET_ROOTFS_EXT2_BLOCKS_WRAP
> + bool
> + default y if BR2_TARGET_ROOTFS_EXT2_BLOCKS != 0
> + default y if BR2_TARGET_ROOTFS_EXT2_BLOCKS != 61440 # deprecated default value
> + select BR2_LEGACY
> +
> +# Note: BR2_TARGET_ROOTFS_EXT2_BLOCKS_WRAP still reference in fs/ext2/Config.in
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
More information about the buildroot
mailing list