From 71d45d777ba25f0d783290559aa7188c2c9e7ccc Mon Sep 17 00:00:00 2001 From: Aleksei Sviridkin Date: Fri, 9 Oct 2026 21:00:16 +0300 Subject: [PATCH] uboot-mediatek: build the KN-1012 chainloader for the image builder The KN-1012 kernel image embeds this U-Boot, and an image builder build compiles the kernel of every device in the subtarget. With only another filogic board selected the binary was never built, so the build failed when the KN-1012 kernel tried to read it. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin Link: https://github.com/openwrt/openwrt/pull/25757 Signed-off-by: Jonas Jelonek --- package/boot/uboot-mediatek/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/boot/uboot-mediatek/Makefile b/package/boot/uboot-mediatek/Makefile index f4de3d52220..08dfd6d16e7 100644 --- a/package/boot/uboot-mediatek/Makefile +++ b/package/boot/uboot-mediatek/Makefile @@ -577,6 +577,11 @@ define U-Boot/mt7981_keenetic_kn-1012 NAME:=Keenetic KN-1012 (chainload) BUILD_SUBTARGET:=filogic BUILD_DEVICES:=keenetic_kn-1012 netcraze_nc-1012 + DEFAULT:=y if (TARGET_mediatek_filogic_Default || IB \ + || TARGET_mediatek_filogic_DEVICE_keenetic_kn-1012 \ + || TARGET_mediatek_filogic_DEVICE_netcraze_nc-1012 \ + || TARGET_DEVICE_mediatek_filogic_DEVICE_keenetic_kn-1012 \ + || TARGET_DEVICE_mediatek_filogic_DEVICE_netcraze_nc-1012) UBOOT_CONFIG:=mt7981_keenetic_kn-1012 UBOOT_IMAGE:=u-boot.bin endef