X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=blobdiff_plain;f=target%2Flinux%2Far71xx%2Fimage%2FMakefile;h=316f8bd5895ce1f4c27f5759dfea02ae0b46b56c;hp=f2b6befa8e94d1440cd8dbcfae3c48303e8712f5;hb=5d1d367be140498a005f396f674d1f76ecea6c00;hpb=377c94cf52f33c54c65eaae32b7b5b64f7b5dea8 diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index f2b6befa8e..316f8bd589 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -7,6 +7,8 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/image.mk +IMAGE_PROFILE:=$(if $(PROFILE),$(PROFILE),Default) + JFFS2_BLOCKSIZE = 64k 128k 256k define imgname @@ -1010,7 +1012,7 @@ define Image/Build/squashfs endef define Image/Build/Initramfs - $(call Image/Build/Profile/$(PROFILE),initramfs) + $(call Image/Build/Profile/$(IMAGE_PROFILE),initramfs) endef define Image/Prepare @@ -1022,13 +1024,13 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),) $(call Image/BuildLoader,generic,elf,,,-initramfs) endif $(call Image/BuildLoader,generic,elf) - $(call Image/Build/Profile/$(if $(CONFIG_IB),Default,$(PROFILE)),loader) + $(call Image/Build/Profile/$(if $(CONFIG_IB),Default,$(IMAGE_PROFILE)),loader) endef define Image/Build $(call Image/Build/$(1)) dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-root.$(1) bs=128k conv=sync - $(call Image/Build/Profile/$(PROFILE),$(1)) + $(call Image/Build/Profile/$(IMAGE_PROFILE),$(1)) endef $(eval $(call BuildImage))