Move all to deprecated folder.
This commit is contained in:
113
deprecated/firmware/buildroot/fs/ext2/Config.in
Normal file
113
deprecated/firmware/buildroot/fs/ext2/Config.in
Normal file
@@ -0,0 +1,113 @@
|
||||
config BR2_TARGET_ROOTFS_EXT2
|
||||
bool "ext2/3/4 root filesystem"
|
||||
select BR2_PACKAGE_HOST_MKE2IMG
|
||||
help
|
||||
Build an ext2/3/4 root filesystem
|
||||
|
||||
if BR2_TARGET_ROOTFS_EXT2
|
||||
|
||||
config BR2_TARGET_ROOTFS_EXT2_2
|
||||
bool
|
||||
|
||||
choice
|
||||
bool "ext2/3/4 variant"
|
||||
default BR2_TARGET_ROOTFS_EXT2_2r0
|
||||
|
||||
config BR2_TARGET_ROOTFS_EXT2_2r0
|
||||
bool "ext2 (rev0)"
|
||||
select BR2_TARGET_ROOTFS_EXT2_2
|
||||
|
||||
config BR2_TARGET_ROOTFS_EXT2_2r1
|
||||
bool "ext2 (rev1)"
|
||||
select BR2_TARGET_ROOTFS_EXT2_2
|
||||
|
||||
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
|
||||
|
||||
# All ext generations are revision 1, except ext2r0, which is revision 0
|
||||
config BR2_TARGET_ROOTFS_EXT2_REV
|
||||
int
|
||||
default 0 if BR2_TARGET_ROOTFS_EXT2_2r0
|
||||
default 1 if !BR2_TARGET_ROOTFS_EXT2_2r0
|
||||
|
||||
config BR2_TARGET_ROOTFS_EXT2_LABEL
|
||||
string "filesystem label"
|
||||
|
||||
config BR2_TARGET_ROOTFS_EXT2_BLOCKS
|
||||
int "exact size in blocks (leave at 0 for auto calculation)"
|
||||
default 0
|
||||
|
||||
config BR2_TARGET_ROOTFS_EXT2_INODES
|
||||
int "exact number of inodes (leave at 0 for auto calculation)"
|
||||
default 0
|
||||
|
||||
config BR2_TARGET_ROOTFS_EXT2_EXTRA_BLOCKS
|
||||
int "extra size in blocks" if BR2_TARGET_ROOTFS_EXT2_BLOCKS = 0
|
||||
default 0
|
||||
help
|
||||
Enter here the number of extra blocks of free space you
|
||||
want on your filesystem. By default, Buildroot will not
|
||||
leave much space free.
|
||||
|
||||
config BR2_TARGET_ROOTFS_EXT2_EXTRA_INODES
|
||||
int "extra inodes" if BR2_TARGET_ROOTFS_EXT2_INODES = 0
|
||||
default 0
|
||||
help
|
||||
Enter here the number of extra free inodes you want on
|
||||
your filesystem. By default, Buildroot will not leave
|
||||
many free inodes.
|
||||
|
||||
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.
|
||||
|
||||
config BR2_TARGET_ROOTFS_EXT2_LZO
|
||||
bool "lzo"
|
||||
help
|
||||
Do compress the ext2 filesystem with lzop.
|
||||
|
||||
config BR2_TARGET_ROOTFS_EXT2_XZ
|
||||
bool "xz"
|
||||
help
|
||||
Do compress the ext2 filesystem with xz.
|
||||
|
||||
endchoice
|
||||
|
||||
endif # BR2_TARGET_ROOTFS_EXT2
|
||||
46
deprecated/firmware/buildroot/fs/ext2/ext2.mk
Normal file
46
deprecated/firmware/buildroot/fs/ext2/ext2.mk
Normal file
@@ -0,0 +1,46 @@
|
||||
################################################################################
|
||||
#
|
||||
# Build the ext2 root filesystem image
|
||||
#
|
||||
################################################################################
|
||||
|
||||
EXT2_OPTS = -G $(BR2_TARGET_ROOTFS_EXT2_GEN) -R $(BR2_TARGET_ROOTFS_EXT2_REV)
|
||||
|
||||
ifneq ($(strip $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)),0)
|
||||
EXT2_OPTS += -b $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)
|
||||
endif
|
||||
EXT2_OPTS += -B $(BR2_TARGET_ROOTFS_EXT2_EXTRA_BLOCKS)
|
||||
|
||||
ifneq ($(strip $(BR2_TARGET_ROOTFS_EXT2_INODES)),0)
|
||||
EXT2_OPTS += -i $(BR2_TARGET_ROOTFS_EXT2_INODES)
|
||||
endif
|
||||
EXT2_OPTS += -I $(BR2_TARGET_ROOTFS_EXT2_EXTRA_INODES)
|
||||
|
||||
ifneq ($(strip $(BR2_TARGET_ROOTFS_EXT2_RESBLKS)),0)
|
||||
EXT2_OPTS += -r $(BR2_TARGET_ROOTFS_EXT2_RESBLKS)
|
||||
endif
|
||||
|
||||
# Not qstrip-ing the variable, because it may contain spaces, but we must
|
||||
# qstrip it when checking. Furthermore, we need to further quote it, so
|
||||
# that the quotes do not get eaten by the echo statement when creating the
|
||||
# fakeroot script
|
||||
ifneq ($(call qstrip,$(BR2_TARGET_ROOTFS_EXT2_LABEL)),)
|
||||
EXT2_OPTS += -l '$(BR2_TARGET_ROOTFS_EXT2_LABEL)'
|
||||
endif
|
||||
|
||||
ROOTFS_EXT2_DEPENDENCIES = host-mke2img
|
||||
|
||||
define ROOTFS_EXT2_CMD
|
||||
PATH=$(BR_PATH) mke2img -d $(TARGET_DIR) $(EXT2_OPTS) -o $@
|
||||
endef
|
||||
|
||||
rootfs-ext2-symlink:
|
||||
ln -sf rootfs.ext2$(ROOTFS_EXT2_COMPRESS_EXT) $(BINARIES_DIR)/rootfs.ext$(BR2_TARGET_ROOTFS_EXT2_GEN)$(ROOTFS_EXT2_COMPRESS_EXT)
|
||||
|
||||
.PHONY: rootfs-ext2-symlink
|
||||
|
||||
ifneq ($(BR2_TARGET_ROOTFS_EXT2_GEN),2)
|
||||
ROOTFS_EXT2_POST_TARGETS += rootfs-ext2-symlink
|
||||
endif
|
||||
|
||||
$(eval $(call ROOTFS_TARGET,ext2))
|
||||
Reference in New Issue
Block a user