]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
riscv: Remove redundant judgment for the default build target
authorFeng Jiang <jiangfeng@kylinos.cn>
Wed, 29 Oct 2025 09:44:29 +0000 (17:44 +0800)
committerPaul Walmsley <pjw@kernel.org>
Sat, 8 Nov 2025 00:39:07 +0000 (17:39 -0700)
The value of KBUILD_IMAGE is derived from $(boot-image-y),
so there's no need for redundant checks before this.

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-2-jiangfeng@kylinos.cn
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/Makefile

index 3998d4036f156191dd78b04e966439c630e157ca..4c6de57f65ef0e0339358f6c9ab8d4e7a6d1263f 100644 (file)
@@ -134,21 +134,6 @@ endif
 CHECKFLAGS += -D__riscv -D__riscv_xlen=$(BITS)
 
 # Default target when executing plain make
-boot           := arch/riscv/boot
-ifeq ($(CONFIG_XIP_KERNEL),y)
-KBUILD_IMAGE := $(boot)/xipImage
-else
-ifeq ($(CONFIG_RISCV_M_MODE)$(CONFIG_SOC_CANAAN_K210),yy)
-KBUILD_IMAGE := $(boot)/loader.bin
-else
-ifeq ($(CONFIG_EFI_ZBOOT),)
-KBUILD_IMAGE   := $(boot)/Image.gz
-else
-KBUILD_IMAGE := $(boot)/vmlinuz.efi
-endif
-endif
-endif
-
 boot                                   := arch/riscv/boot
 boot-image-y                           := Image
 boot-image-$(CONFIG_KERNEL_BZIP2)      := Image.bz2