From a988e20ab0502303a19e1405a761da892344dc8a Mon Sep 17 00:00:00 2001 From: Jonas Jelonek Date: Thu, 30 Apr 2026 10:54:33 +0000 Subject: [PATCH] realtek: image: pin FLASH_ADDR per device FLASH_ADDR is referenced inside Build/rt-loader-standalone but is not listed in DEVICE_VARS, so include/image.mk's Device/Export does not emit a per-target FLASH_ADDR := assignment for the standalone loader recipe. At recipe expansion time $(FLASH_ADDR) therefore resolves to whatever value the last device in TARGET_DEVICES set globally, which is not necessarily the value belonging to the loader being built. This currently happens to produce correct binaries only because every device that sets FLASH_ADDR within a given subtarget shares the same value, so the leaked global matches by coincidence. Add FLASH_ADDR to DEVICE_VARS so each loader recipe captures its own device's address. Signed-off-by: Jonas Jelonek Link: https://github.com/openwrt/openwrt/pull/23226 Signed-off-by: Robert Marko --- target/linux/realtek/image/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/realtek/image/Makefile b/target/linux/realtek/image/Makefile index 2b95035e9e..457fb0c109 100644 --- a/target/linux/realtek/image/Makefile +++ b/target/linux/realtek/image/Makefile @@ -14,6 +14,7 @@ DEVICE_VARS += \ CAMEO_KERNEL_PART \ CAMEO_KERNEL_PART_SIZE \ CAMEO_ROOTFS_PART \ + FLASH_ADDR \ H3C_DEVICE_ID \ H3C_PRODUCT_ID \ LINKSYS_HEADER \