X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/fb042825f857fb3851d00854ea7da095d26ea417..6c64fce072af58aa0c33e179b4408d7ac0ad7eaa:/include/image.mk diff --git a/include/image.mk b/include/image.mk index 847e01c2d..a722086a0 100644 --- a/include/image.mk +++ b/include/image.mk @@ -23,15 +23,15 @@ JFFS2OPTS := --pad --big-endian --squash SQUASHFS_OPTS := -be endif -ifneq ($(CONFIG_LINUX_2_6_30),) -USE_SQUASHFS4 := y +ifneq ($(CONFIG_LINUX_2_4)$(CONFIG_LINUX_2_6_21)$(CONFIG_LINUX_2_6_25)$(CONFIG_LINUX_2_6_28),) +USE_SQUASHFS3 := y endif -ifneq ($(USE_SQUASHFS4),) -MKSQUASHFS_CMD := $(STAGING_DIR_HOST)/bin/mksquashfs4 -SQUASHFS_OPTS := -lzma -else +ifneq ($(USE_SQUASHFS3),) MKSQUASHFS_CMD := $(STAGING_DIR_HOST)/bin/mksquashfs-lzma +else +MKSQUASHFS_CMD := $(STAGING_DIR_HOST)/bin/mksquashfs4 +SQUASHFS_OPTS := -comp lzma -processors 1 endif JFFS2_BLOCKSIZE ?= 64k 128k @@ -92,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