mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-18 21:28:02 +00:00
Add support for building ubifs images.
SVN-Revision: 19097
This commit is contained in:
parent
5ec88a4a15
commit
db06ca593b
@ -88,6 +88,13 @@ menu "Target Images"
|
|||||||
help
|
help
|
||||||
Create some bootable ISO image
|
Create some bootable ISO image
|
||||||
|
|
||||||
|
config TARGET_ROOTFS_UBIFS
|
||||||
|
bool "ubifs"
|
||||||
|
default y if USES_UBIFS
|
||||||
|
depends !TARGET_ROOTFS_INITRAMFS && USES_UBIFS
|
||||||
|
help
|
||||||
|
Build a ubifs root filesystem
|
||||||
|
|
||||||
comment "Image Options"
|
comment "Image Options"
|
||||||
|
|
||||||
source "target/linux/*/image/Config.in"
|
source "target/linux/*/image/Config.in"
|
||||||
|
@ -86,6 +86,14 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
|
|||||||
( cd $(TARGET_DIR); find . | cpio -o -H newc | gzip -9 >$(BIN_DIR)/openwrt-$(BOARD)-rootfs.cpio.gz )
|
( cd $(TARGET_DIR); find . | cpio -o -H newc | gzip -9 >$(BIN_DIR)/openwrt-$(BOARD)-rootfs.cpio.gz )
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(CONFIG_TARGET_ROOTFS_UBIFS),y)
|
||||||
|
define Image/mkfs/ubifs
|
||||||
|
$(CP) ./ubinize.cfg $(KDIR)
|
||||||
|
$(STAGING_DIR_HOST)/bin/mkfs.ubifs $(UBIFS_OPTS) -o $(KDIR)/root.ubifs -d $(TARGET_DIR)
|
||||||
|
(cd $(KDIR); \
|
||||||
|
$(STAGING_DIR_HOST)/bin/ubinize $(UBINIZE_OPTS) -o $(BIN_DIR)/openwrt-$(BOARD)-rootfs.ubi ubinize.cfg)
|
||||||
|
endef
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
define Image/BuildKernel
|
define Image/BuildKernel
|
||||||
cp $(KDIR)/vmlinux.elf $(BIN_DIR)/openwrt-$(BOARD)-vmlinux.elf
|
cp $(KDIR)/vmlinux.elf $(BIN_DIR)/openwrt-$(BOARD)-vmlinux.elf
|
||||||
@ -150,6 +158,7 @@ ifneq ($(IB),1)
|
|||||||
$(call Image/mkfs/cpiogz)
|
$(call Image/mkfs/cpiogz)
|
||||||
$(call Image/mkfs/ext2)
|
$(call Image/mkfs/ext2)
|
||||||
$(call Image/mkfs/iso)
|
$(call Image/mkfs/iso)
|
||||||
|
$(call Image/mkfs/ubifs)
|
||||||
$(call Image/Checksum)
|
$(call Image/Checksum)
|
||||||
else
|
else
|
||||||
install: compile install-targets
|
install: compile install-targets
|
||||||
@ -160,6 +169,7 @@ else
|
|||||||
$(call Image/mkfs/cpiogz)
|
$(call Image/mkfs/cpiogz)
|
||||||
$(call Image/mkfs/ext2)
|
$(call Image/mkfs/ext2)
|
||||||
$(call Image/mkfs/iso)
|
$(call Image/mkfs/iso)
|
||||||
|
$(call Image/mkfs/ubifs)
|
||||||
$(call Image/Checksum)
|
$(call Image/Checksum)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -163,6 +163,7 @@ sub target_config_features(@) {
|
|||||||
/ext2/ and $ret .= "\tselect USES_EXT2\n";
|
/ext2/ and $ret .= "\tselect USES_EXT2\n";
|
||||||
/tgz/ and $ret .= "\tselect USES_TGZ\n";
|
/tgz/ and $ret .= "\tselect USES_TGZ\n";
|
||||||
/cpiogz/ and $ret .= "\tselect USES_CPIOGZ\n";
|
/cpiogz/ and $ret .= "\tselect USES_CPIOGZ\n";
|
||||||
|
/ubifs/ and $ret .= "\tselect USES_UBIFS\n";
|
||||||
/fpu/ and $ret .= "\tselect HAS_FPU\n";
|
/fpu/ and $ret .= "\tselect HAS_FPU\n";
|
||||||
/ramdisk/ and $ret .= "\tselect USES_INITRAMFS\n";
|
/ramdisk/ and $ret .= "\tselect USES_INITRAMFS\n";
|
||||||
/powerpc64/ and $ret .= "\tselect powerpc64\n";
|
/powerpc64/ and $ret .= "\tselect powerpc64\n";
|
||||||
|
@ -50,7 +50,10 @@ config USES_TGZ
|
|||||||
config USES_CPIOGZ
|
config USES_CPIOGZ
|
||||||
bool
|
bool
|
||||||
|
|
||||||
config PROFILE_KCONFIG
|
config USES_UBIFS
|
||||||
|
bool
|
||||||
|
|
||||||
|
config PROFILE_KCONFIG
|
||||||
bool
|
bool
|
||||||
|
|
||||||
config NOMMU
|
config NOMMU
|
||||||
|
Loading…
Reference in New Issue
Block a user