[Buildroot] [PATCH v5 2/5] fs/ext2: use mkfs to generate rootfs image
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Tue Jul 4 22:41:26 UTC 2017
Hello,
On Tue, 4 Jul 2017 16:47:26 +0200, Samuel Martin wrote:
> From: Sébastien Szymanski <sebastien.szymanski at armadeus.com>
>
> mkfs is now capable of generating rootfs images. Use mkfs instead of
> genext2fs.
>
> If not set, we now let mkfs calculate the block size and the number of
> inodes needed.
>
> This change also adjusts the options to meet those of mkfs.
>
> Notes:
> * Passing a null inode number to mkfs triggers its automatic calculation.
> * Passing a fs-size with no unit suffix to mkfs is interpreted as using
> 1K block size.
>
> Signed-off-by: Sébastien Szymanski <sebastien.szymanski at armadeus.com>
> Signed-off-by: Samuel Martin <s.martin49 at gmail.com>
> Cc: "Yann E. MORIN" <yann.morin.1998 at free.fr>
>
> ---
> changes v4->v5:
> - remove BR2_TARGET_ROOTFS_EXT2_BLOCKS renaming
> - update commit log
I've made the minor improvement suggested by Arnout: passing
PATH=$(BR_PATH) is no longer needed, and instead mkfs.ext is called
directly using its $(HOST_DIR)/usr/sbin/ path.
Applied to master with this change. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list