mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-24 05:18:14 +00:00
parent
30fe1805d5
commit
edbbf145d5
@ -41,6 +41,13 @@ menu "Target Images"
|
|||||||
help
|
help
|
||||||
Build a compressed tar archive of the the root filesystem
|
Build a compressed tar archive of the the root filesystem
|
||||||
|
|
||||||
|
config TARGET_ROOTFS_CPIOGZ
|
||||||
|
bool "cpiogz"
|
||||||
|
default y if USES_TGZ
|
||||||
|
depends !TARGET_ROOTFS_INITRAMFS
|
||||||
|
help
|
||||||
|
Build a compressed cpio archive of the the root filesystem
|
||||||
|
|
||||||
config TARGET_ROOTFS_EXT2FS
|
config TARGET_ROOTFS_EXT2FS
|
||||||
bool "ext2"
|
bool "ext2"
|
||||||
default y if USES_EXT2
|
default y if USES_EXT2
|
||||||
|
@ -64,6 +64,12 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
|
|||||||
$(TAR) -zcf $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-rootfs.tgz --owner=root --group=root -C $(TARGET_DIR)/ .
|
$(TAR) -zcf $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-rootfs.tgz --owner=root --group=root -C $(TARGET_DIR)/ .
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_TARGET_ROOTFS_CPIOGZ),y)
|
||||||
|
define Image/mkfs/cpiogz
|
||||||
|
( cd $(BUILD_DIR)/root; find . | cpio -o -H newc | gzip -9 >$(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-rootfs.cpio.gz )
|
||||||
|
endef
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
define Image/BuildKernel
|
define Image/BuildKernel
|
||||||
cp $(KDIR)/vmlinux.elf $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-vmlinux.elf
|
cp $(KDIR)/vmlinux.elf $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-vmlinux.elf
|
||||||
@ -118,6 +124,7 @@ ifneq ($(IB),1)
|
|||||||
$(call Image/mkfs/jffs2)
|
$(call Image/mkfs/jffs2)
|
||||||
$(call Image/mkfs/squashfs)
|
$(call Image/mkfs/squashfs)
|
||||||
$(call Image/mkfs/tgz)
|
$(call Image/mkfs/tgz)
|
||||||
|
$(call Image/mkfs/cpiogz)
|
||||||
$(call Image/mkfs/ext2)
|
$(call Image/mkfs/ext2)
|
||||||
$(call Image/mkfs/iso)
|
$(call Image/mkfs/iso)
|
||||||
else
|
else
|
||||||
@ -126,6 +133,7 @@ else
|
|||||||
$(call Image/mkfs/jffs2)
|
$(call Image/mkfs/jffs2)
|
||||||
$(call Image/mkfs/squashfs)
|
$(call Image/mkfs/squashfs)
|
||||||
$(call Image/mkfs/tgz)
|
$(call Image/mkfs/tgz)
|
||||||
|
$(call Image/mkfs/cpiogz)
|
||||||
$(call Image/mkfs/ext2)
|
$(call Image/mkfs/ext2)
|
||||||
$(call Image/mkfs/iso)
|
$(call Image/mkfs/iso)
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user