image.mk: initialize BOARD_NAME and IMAGES, add it to DEVICE_VARS
authorFelix Fietkau <nbd@nbd.name>
Wed, 20 Jul 2016 08:09:10 +0000 (10:09 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 20 Jul 2016 08:13:50 +0000 (10:13 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
include/image.mk

index 3891787140d442083a6b49ba2f3c54931d6a9955..43c144ad34270dd27e872d0b9f366a4f3648878e 100644 (file)
@@ -276,6 +276,7 @@ define Device/Init
   KERNEL_SIZE:=
   CMDLINE:=
 
+  IMAGES :=
   IMAGE_PREFIX := $(IMG_PREFIX)-$(1)
   IMAGE_NAME = $$(IMAGE_PREFIX)-$$(1)-$$(2)
   KERNEL_PREFIX = $$(IMAGE_PREFIX)
@@ -304,12 +305,14 @@ define Device/Init
   DEVICE_DTS :=
   DEVICE_DTS_DIR :=
 
+  BOARD_NAME :=
+
   FILESYSTEMS := $(TARGET_FILESYSTEMS)
 endef
 
 DEFAULT_DEVICE_VARS := \
   DEVICE_NAME KERNEL KERNEL_INITRAMFS KERNEL_INITRAMFS_IMAGE \
-  DEVICE_DTS DEVICE_DTS_DIR \
+  DEVICE_DTS DEVICE_DTS_DIR BOARD_NAME \
   UBOOTENV_IN_UBI KERNEL_IN_UBI \
   BLOCKSIZE PAGESIZE SUBPAGESIZE VID_HDR_OFFSET \
   UBINIZE_OPTS