mirror of https://github.com/hak5/openwrt.git
build: extend menu with few ubifs options
Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38303lede-17.01
parent
8b7b7cabf2
commit
9051e79bc2
36
Config.in
36
Config.in
|
@ -107,13 +107,47 @@ menu "Target Images"
|
||||||
help
|
help
|
||||||
Build a squashfs-lzma root filesystem
|
Build a squashfs-lzma root filesystem
|
||||||
|
|
||||||
config TARGET_ROOTFS_UBIFS
|
menuconfig TARGET_ROOTFS_UBIFS
|
||||||
bool "ubifs"
|
bool "ubifs"
|
||||||
default y if USES_UBIFS
|
default y if USES_UBIFS
|
||||||
depends on USES_UBIFS
|
depends on USES_UBIFS
|
||||||
help
|
help
|
||||||
Build a ubifs root filesystem
|
Build a ubifs root filesystem
|
||||||
|
|
||||||
|
choice
|
||||||
|
prompt "compression"
|
||||||
|
default TARGET_UBIFS_COMPRESSION_NONE
|
||||||
|
depends on TARGET_ROOTFS_UBIFS
|
||||||
|
help
|
||||||
|
Select compression type
|
||||||
|
|
||||||
|
config TARGET_UBIFS_COMPRESSION_NONE
|
||||||
|
bool "none"
|
||||||
|
|
||||||
|
config TARGET_UBIFS_COMPRESSION_LZO
|
||||||
|
bool "lzo"
|
||||||
|
|
||||||
|
config TARGET_UBIFS_COMPRESSION_ZLIB
|
||||||
|
bool "zlib"
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
config TARGET_UBIFS_FREE_SPACE_FIXUP
|
||||||
|
bool "free space fixup" if TARGET_ROOTFS_UBIFS
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
The file-system free space has to be fixed up on first mount
|
||||||
|
|
||||||
|
config TARGET_UBIFS_JOURNAL_SIZE
|
||||||
|
string
|
||||||
|
prompt "journal size" if TARGET_ROOTFS_UBIFS
|
||||||
|
default "512KiB"
|
||||||
|
|
||||||
|
config TARGET_UBIFS_SQUASH_UIDS
|
||||||
|
bool "squash uids" if TARGET_ROOTFS_UBIFS
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Squash owners making all files owned by root
|
||||||
|
|
||||||
comment "Image Options"
|
comment "Image Options"
|
||||||
|
|
||||||
source "target/linux/*/image/Config.in"
|
source "target/linux/*/image/Config.in"
|
||||||
|
|
|
@ -116,7 +116,15 @@ endif
|
||||||
ifneq ($(CONFIG_TARGET_ROOTFS_UBIFS),)
|
ifneq ($(CONFIG_TARGET_ROOTFS_UBIFS),)
|
||||||
define Image/mkfs/ubifs
|
define Image/mkfs/ubifs
|
||||||
$(CP) ./ubinize.cfg $(KDIR)
|
$(CP) ./ubinize.cfg $(KDIR)
|
||||||
$(STAGING_DIR_HOST)/bin/mkfs.ubifs $(UBIFS_OPTS) $(MKFS_DEVTABLE_OPT) -o $(KDIR)/root.ubifs -d $(TARGET_DIR)
|
$(STAGING_DIR_HOST)/bin/mkfs.ubifs \
|
||||||
|
$(UBIFS_OPTS) \
|
||||||
|
$(if $(CONFIG_TARGET_UBIFS_FREE_SPACE_FIXUP),--space-fixup) \
|
||||||
|
$(if $(CONFIG_TARGET_UBIFS_COMPRESSION_NONE),--force-compr=none) \
|
||||||
|
$(if $(CONFIG_TARGET_UBIFS_COMPRESSION_LZO),--force-compr=lzo) \
|
||||||
|
$(if $(CONFIG_TARGET_UBIFS_COMPRESSION_ZLIB),--force-compr=zlib) \
|
||||||
|
--jrn-size=$(CONFIG_TARGET_UBIFS_JOURNAL_SIZE) \
|
||||||
|
-o $(KDIR)/root.ubifs \
|
||||||
|
-d $(TARGET_DIR)
|
||||||
$(call Image/Build,ubifs)
|
$(call Image/Build,ubifs)
|
||||||
(cd $(KDIR); \
|
(cd $(KDIR); \
|
||||||
$(STAGING_DIR_HOST)/bin/ubinize $(UBINIZE_OPTS) -o $(KDIR)/root.ubi ubinize.cfg)
|
$(STAGING_DIR_HOST)/bin/ubinize $(UBINIZE_OPTS) -o $(KDIR)/root.ubi ubinize.cfg)
|
||||||
|
|
Loading…
Reference in New Issue