gemini: lazy set IMAGE_NAME
authorChristian Lamparter <chunkeey@gmail.com>
Tue, 22 Jan 2019 21:48:57 +0000 (22:48 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Thu, 24 Jan 2019 14:53:04 +0000 (15:53 +0100)
Currently, IMAGE_NAME is expanded at declaration time
and this causes strange filename in the builder's logs:

|cp: cannot stat '[...]/openwrt-gemini-dlink-dns-313-.': No such file or directory
|cp: cannot stat '[...]/openwrt-gemini-nas4220b-.': No such file or directory
|[...]

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
target/linux/gemini/image/Makefile

index c1d7792bf8ff48af8af27abec6f0d8925aaa1a93..a92b466a64ffd69d418657af81e1580ee0353ff0 100644 (file)
@@ -91,7 +91,7 @@ define Device/Default
        KERNEL_NAME := zImage
        KERNEL := kernel-bin | append-dtb
        FILESYSTEMS := squashfs
-       IMAGE_NAME := $$(IMAGE_PREFIX)-$$(1).$$(2)
+       IMAGE_NAME = $$(IMAGE_PREFIX)-$$(1).$$(2)
        BLOCKSIZE := 128k
        PAGESIZE := 2048
 endef