Skip to content

Commit 5e86329

Browse files
flynnjiangPaul Walmsley
authored andcommitted
riscv: Remove redundant judgment for the default build target
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>
1 parent 3ad1b71 commit 5e86329

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

arch/riscv/Makefile

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -134,21 +134,6 @@ endif
134134
CHECKFLAGS += -D__riscv -D__riscv_xlen=$(BITS)
135135

136136
# Default target when executing plain make
137-
boot := arch/riscv/boot
138-
ifeq ($(CONFIG_XIP_KERNEL),y)
139-
KBUILD_IMAGE := $(boot)/xipImage
140-
else
141-
ifeq ($(CONFIG_RISCV_M_MODE)$(CONFIG_SOC_CANAAN_K210),yy)
142-
KBUILD_IMAGE := $(boot)/loader.bin
143-
else
144-
ifeq ($(CONFIG_EFI_ZBOOT),)
145-
KBUILD_IMAGE := $(boot)/Image.gz
146-
else
147-
KBUILD_IMAGE := $(boot)/vmlinuz.efi
148-
endif
149-
endif
150-
endif
151-
152137
boot := arch/riscv/boot
153138
boot-image-y := Image
154139
boot-image-$(CONFIG_KERNEL_BZIP2) := Image.bz2

0 commit comments

Comments
 (0)