From: Jonas Jelonek Date: Thu, 30 Apr 2026 10:55:36 +0000 (+0000) Subject: realtek: image: reset COMPILE between devices X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e079f109ffa206f9463fbe5ec4c468b7d62d6411;p=thirdparty%2Fopenwrt.git realtek: image: reset COMPILE between devices Device/zyxel_zynos sets COMPILE := loader-$(1).bin to drive the standalone rt-loader build, but include/image.mk's Device/Init does not reset COMPILE between TARGET_DEVICES iterations. When a non-zynos device follows a zynos device, the stale COMPILE entry survives and Device/Build/compile registers a second recipe for the previous device's loader-*.bin target. Make warns about the override and the second (wrong) recipe wins. Reset COMPILE in Device/Default so each device starts with a clean slate. Signed-off-by: Jonas Jelonek Link: https://github.com/openwrt/openwrt/pull/23226 Signed-off-by: Robert Marko --- diff --git a/target/linux/realtek/image/Makefile b/target/linux/realtek/image/Makefile index 457fb0c1095..7ce9a7396b4 100644 --- a/target/linux/realtek/image/Makefile +++ b/target/linux/realtek/image/Makefile @@ -136,6 +136,7 @@ define Device/Default uImage gzip DEVICE_DTS_DIR := ../dts DEVICE_DTS = $$(SOC)_$(1) + COMPILE := IMAGES := sysupgrade.bin IMAGE/sysupgrade.bin := \ append-kernel | \