X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/bca3f225e9645134018a951d78198b70601eb02d..b2dc6c86ee3e55b3bad7b3f69ed2b39fb894fa0a:/target/linux/kirkwood/image/Makefile diff --git a/target/linux/kirkwood/image/Makefile b/target/linux/kirkwood/image/Makefile index 86d6a01e9..c93be6751 100644 --- a/target/linux/kirkwood/image/Makefile +++ b/target/linux/kirkwood/image/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/image.mk -add_jffs2_mark= +JFFS2OPTS += --little-endian --pagesize=0x800 --no-cleanmarkers --pad define Image/Prepare cp $(LINUX_DIR)/arch/arm/boot/uImage $(KDIR)/uImage @@ -19,14 +19,15 @@ define Image/BuildKernel endef define Image/Build - $(call Image/Build/$(1),$(1)) + $(if $(Image/Build/$(1)), \ + $(call Image/Build/$(1),$(1)), \ + $(CP) $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-$(1).img \ + ) endef define Image/Build/jffs2-128k - ( \ - dd if=$(KDIR)/uImage bs=4096k conv=sync; \ - dd if=$(KDIR)/root.$(1) bs=128k conv=sync; \ - ) > $(BIN_DIR)/$(IMG_PREFIX)-$(1).img + dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-$(1).img \ + bs=2048 conv=sync endef define Image/Build/squashfs @@ -34,7 +35,7 @@ define Image/Build/squashfs ( \ dd if=$(KDIR)/uImage bs=4096k conv=sync; \ dd if=$(KDIR)/root.$(1) bs=128k conv=sync; \ - ) > $(BIN_DIR)/$(IMG_PREFIX)-$(1).img + ) > $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-$(1).img endef $(eval $(call BuildImage))