mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 22:11:33 +02:00
[image] create squashfs4 images if kernel version >=2.6.29
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15866 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
e5b98fff8d
commit
ef7cf93ac5
@ -23,6 +23,17 @@ JFFS2OPTS := --pad --big-endian --squash
|
|||||||
SQUASHFS_OPTS := -be
|
SQUASHFS_OPTS := -be
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(CONFIG_LINUX_2_6_29)$(CONFIG_LINUX_2_6_30),)
|
||||||
|
USE_SQUASHFS4 := y
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq ($(USE_SQUASHFS4),)
|
||||||
|
MKSQUASHFS_CMD := $(STAGING_DIR_HOST)/bin/mksquashfs4
|
||||||
|
SQUASHFS_OPTS :=
|
||||||
|
else
|
||||||
|
MKSQUASHFS_CMD := $(STAGING_DIR_HOST)/bin/mksquashfs-lzma
|
||||||
|
endif
|
||||||
|
|
||||||
JFFS2_BLOCKSIZE ?= 64k 128k
|
JFFS2_BLOCKSIZE ?= 64k 128k
|
||||||
|
|
||||||
define add_jffs2_mark
|
define add_jffs2_mark
|
||||||
@ -55,7 +66,7 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
|
|||||||
ifeq ($(CONFIG_TARGET_ROOTFS_SQUASHFS),y)
|
ifeq ($(CONFIG_TARGET_ROOTFS_SQUASHFS),y)
|
||||||
define Image/mkfs/squashfs
|
define Image/mkfs/squashfs
|
||||||
@mkdir -p $(TARGET_DIR)/jffs
|
@mkdir -p $(TARGET_DIR)/jffs
|
||||||
$(STAGING_DIR_HOST)/bin/mksquashfs-lzma $(TARGET_DIR) $(KDIR)/root.squashfs -nopad -noappend -root-owned $(SQUASHFS_OPTS)
|
$(MKSQUASHFS_CMD) $(TARGET_DIR) $(KDIR)/root.squashfs -nopad -noappend -root-owned $(SQUASHFS_OPTS)
|
||||||
$(call Image/Build,squashfs)
|
$(call Image/Build,squashfs)
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user