X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/9cf711b67b43dde957cbdc5d9f4e66ec12303f3f..faa68f7f6bf9fd01f47d1d9ff8fb9d5d617baf5c:/include/image.mk diff --git a/include/image.mk b/include/image.mk index 3341f10e5..cab9722df 100644 --- a/include/image.mk +++ b/include/image.mk @@ -23,6 +23,17 @@ JFFS2OPTS := --pad --big-endian --squash SQUASHFS_OPTS := -be endif +ifneq ($(CONFIG_LINUX_2_6_30)$(CONFIG_LINUX_2_6_31),) +USE_SQUASHFS4 := y +endif + +ifneq ($(USE_SQUASHFS4),) +MKSQUASHFS_CMD := $(STAGING_DIR_HOST)/bin/mksquashfs4 +SQUASHFS_OPTS := -lzma -processors 1 +else +MKSQUASHFS_CMD := $(STAGING_DIR_HOST)/bin/mksquashfs-lzma +endif + JFFS2_BLOCKSIZE ?= 64k 128k define add_jffs2_mark @@ -55,7 +66,7 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y) ifeq ($(CONFIG_TARGET_ROOTFS_SQUASHFS),y) define Image/mkfs/squashfs @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) endef endif @@ -81,7 +92,7 @@ endif define Image/Checksum ( cd ${BIN_DIR} ; \ $(FIND) -maxdepth 1 -type f \! -name 'md5sums' -printf "%P\n" | xargs \ - md5sum > md5sums \ + md5sum --binary > md5sums \ ) endef