]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
riscv: Build loader.bin exclusively for Canaan K210
authorFeng Jiang <jiangfeng@kylinos.cn>
Wed, 29 Oct 2025 09:44:28 +0000 (17:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Nov 2025 09:35:46 +0000 (10:35 +0100)
[ Upstream commit 3ad1b71fdc5707d14332d9ae710a237de936be9b ]

According to the explanation in commit ef10bdf9c3e6 ("riscv:
Kconfig.socs: Split ARCH_CANAAN and SOC_CANAAN_K210"),
loader.bin is a special feature of the Canaan K210 and
is not applicable to other SoCs.

Fixes: e79dfcbfb902 ("riscv: make image compression configurable")
Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn>
Reviewed-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Link: https://lore.kernel.org/r/20251029094429.553842-1-jiangfeng@kylinos.cn
Signed-off-by: Paul Walmsley <pjw@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/riscv/Makefile

index d469db9f46f426122a1d6a41861622171402763c..3df2111673601dc28463106f8b67da97361eca08 100644 (file)
@@ -161,7 +161,7 @@ boot-image-$(CONFIG_KERNEL_LZO)             := Image.lzo
 boot-image-$(CONFIG_KERNEL_ZSTD)       := Image.zst
 boot-image-$(CONFIG_KERNEL_XZ)         := Image.xz
 ifdef CONFIG_RISCV_M_MODE
-boot-image-$(CONFIG_ARCH_CANAAN)       := loader.bin
+boot-image-$(CONFIG_SOC_CANAAN_K210)   := loader.bin
 endif
 boot-image-$(CONFIG_EFI_ZBOOT)         := vmlinuz.efi
 boot-image-$(CONFIG_XIP_KERNEL)                := xipImage