[Buildroot] [git commit] configs/nanopi_neo: determine roofs partition size automatically

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue Nov 26 21:53:13 UTC 2019


commit: https://git.buildroot.net/buildroot/commit/?id=4976b8450dd4f1389679a05567f03a33aca26d03
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Let genimage determine rootfs partition size based on the filesystem
image size.

Signed-off-by: Viktar Palstsiuk <viktar.palstsiuk at promwad.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 board/friendlyarm/nanopi-neo/genimage.cfg | 1 -
 configs/nanopi_neo_defconfig              | 2 --
 2 files changed, 3 deletions(-)

diff --git a/board/friendlyarm/nanopi-neo/genimage.cfg b/board/friendlyarm/nanopi-neo/genimage.cfg
index ad43d31049..f6adc4af3e 100644
--- a/board/friendlyarm/nanopi-neo/genimage.cfg
+++ b/board/friendlyarm/nanopi-neo/genimage.cfg
@@ -29,6 +29,5 @@ image sdcard.img {
 	partition rootfs {
 		partition-type = 0x83
 		image = "rootfs.ext4"
-		size = 32M
 	}
 }
diff --git a/configs/nanopi_neo_defconfig b/configs/nanopi_neo_defconfig
index aa464917b5..838f4edad5 100644
--- a/configs/nanopi_neo_defconfig
+++ b/configs/nanopi_neo_defconfig
@@ -31,8 +31,6 @@ BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-sunxi-with-spl.bin"
 # Build an sdcard image
 BR2_TARGET_ROOTFS_EXT2=y
 BR2_TARGET_ROOTFS_EXT2_4=y
-BR2_TARGET_ROOTFS_EXT2_SIZE="32M"
-BR2_TARGET_ROOTFS_EXT2_INODES=8192
 # BR2_TARGET_ROOTFS_TAR is not set
 BR2_PACKAGE_HOST_DOSFSTOOLS=y
 BR2_PACKAGE_HOST_GENIMAGE=y


More information about the buildroot mailing list