mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-24 22:13:34 +08:00
69036c20f1
Use the host-e2fsprogs to tune2fs the generated rootfs.ext2 image, and upgrade it to either one of ext2, ext3 or ext4. Since calling tune2fs may require running e2fsck (tune2fs will warn to do so when certain FS options are changed), we systematically call e2fsck. This makes the code path simpler, and as a side-effect checks that genext2fs did not generate garbage. In turn, e2fsck will unconditionally add a UUID to the filesystem, which is bad for reproducibility, so we call tune2fs again to remove the UUID. This does not require checking the filesystem. To ensure compatibility of Buildroot's .config, leave ext2 as the default. Boards' .config can override this at will. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Peter Korsgaard <jacmet@uclibc.org> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
71 lines
1.4 KiB
Plaintext
71 lines
1.4 KiB
Plaintext
config BR2_TARGET_ROOTFS_EXT2
|
|
bool "ext2/3/4 root filesystem"
|
|
select BR2_PACKAGE_HOST_E2FSPROGS
|
|
help
|
|
Build an ext2/3/4 root filesystem
|
|
|
|
if BR2_TARGET_ROOTFS_EXT2
|
|
|
|
choice
|
|
bool "ext2/3/4 variant"
|
|
default BR2_TARGET_ROOTFS_EXT2_2
|
|
|
|
config BR2_TARGET_ROOTFS_EXT2_2
|
|
bool "ext2"
|
|
|
|
config BR2_TARGET_ROOTFS_EXT2_3
|
|
bool "ext3"
|
|
|
|
config BR2_TARGET_ROOTFS_EXT2_4
|
|
bool "ext4"
|
|
|
|
endchoice
|
|
|
|
config BR2_TARGET_ROOTFS_EXT2_GEN
|
|
int
|
|
default 2 if BR2_TARGET_ROOTFS_EXT2_2
|
|
default 3 if BR2_TARGET_ROOTFS_EXT2_3
|
|
default 4 if BR2_TARGET_ROOTFS_EXT2_4
|
|
|
|
config BR2_TARGET_ROOTFS_EXT2_BLOCKS
|
|
int "size in blocks (leave at 0 for auto calculation)"
|
|
default 0
|
|
|
|
config BR2_TARGET_ROOTFS_EXT2_INODES
|
|
int "inodes (leave at 0 for auto calculation)"
|
|
default 0
|
|
|
|
config BR2_TARGET_ROOTFS_EXT2_RESBLKS
|
|
int "reserved blocks percentage"
|
|
default 0
|
|
|
|
choice
|
|
prompt "Compression method"
|
|
default BR2_TARGET_ROOTFS_EXT2_NONE
|
|
help
|
|
Select compressor for ext2/3/4 filesystem of the root filesystem
|
|
|
|
config BR2_TARGET_ROOTFS_EXT2_NONE
|
|
bool "no compression"
|
|
help
|
|
Do not compress the ext2/3/4 filesystem.
|
|
|
|
config BR2_TARGET_ROOTFS_EXT2_GZIP
|
|
bool "gzip"
|
|
help
|
|
Do compress the ext2/3/4 filesystem with gzip.
|
|
|
|
config BR2_TARGET_ROOTFS_EXT2_BZIP2
|
|
bool "bzip2"
|
|
help
|
|
Do compress the ext2/3/4 filesystem with bzip2.
|
|
|
|
config BR2_TARGET_ROOTFS_EXT2_LZMA
|
|
bool "lzma"
|
|
help
|
|
Do compress the ext2/3/4 filesystem with lzma.
|
|
|
|
endchoice
|
|
|
|
endif # BR2_TARGET_ROOTFS_EXT2
|