X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/e3fd8663f100fe33dcda1f0bbf46bb1ab3338436..9445c77d7c4c2ffe9c751f4f9610d70ae65e346c:/openwrt/target/linux/image/jffs2.mk diff --git a/openwrt/target/linux/image/jffs2.mk b/openwrt/target/linux/image/jffs2.mk index fb8feab47..281db0192 100644 --- a/openwrt/target/linux/image/jffs2.mk +++ b/openwrt/target/linux/image/jffs2.mk @@ -1,4 +1,9 @@ +ifneq ($(BR2_BIG_ENDIAN),y) JFFS2OPTS := --pad --little-endian --squash +else +JFFS2OPTS := --pad --big-endian --squash +endif + #JFFS2OPTS += -Xlzo -msize -Xlzari jffs2-prepare: @@ -31,7 +36,7 @@ jffs2-install: $(KDIR)/root.jffs2-4MB $(KDIR)/root.jffs2-8MB jffs2-install-ib: compile-targets mkdir -p $(IB_DIR)/staging_dir_$(ARCH)/bin - cp $(STAGING_DIR)/bin/mkfs.jffs2 $(IB_DIR)/staging_dir_$(ARCH)/bin + $(CP) $(STAGING_DIR)/bin/mkfs.jffs2 $(IB_DIR)/staging_dir_$(ARCH)/bin prepare-targets: jffs2-prepare compile-targets: jffs2-compile