aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-11-01 18:33:22 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-11-01 18:33:22 +0000
commitf0a877e5eb73e2d94e9a3e7d65f2c2cbb239e8df (patch)
tree829745a4dd3f4fee595057241f0b81417926c53d /target/linux
parentb2bc45d21e058f5e447f76425e98dec7d817dfae (diff)
downloadupstream-f0a877e5eb73e2d94e9a3e7d65f2c2cbb239e8df.tar.gz
upstream-f0a877e5eb73e2d94e9a3e7d65f2c2cbb239e8df.tar.bz2
upstream-f0a877e5eb73e2d94e9a3e7d65f2c2cbb239e8df.zip
ar71xx: image: add IMAGE_PROFILE variable
Ensures that the 'Default' images are generated even if the subtarget has no profiles. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38635
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/image/Makefile8
1 files changed, 5 insertions, 3 deletions
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))