Skip to content

Commit 07501c4

Browse files
esmilpalmer-dabbelt
authored andcommitted
riscv: show help string for riscv-specific targets
Define the archhelp variable so that 'make ACRH=riscv help' will show the targets specific to building a RISC-V kernel like other architectures. Tested-by: Björn Töpel <[email protected]> Signed-off-by: Emil Renner Berthing <[email protected]> Reviewed-by: Masahiro Yamada <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent e79dfcb commit 07501c4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

arch/riscv/Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,3 +216,20 @@ rv32_defconfig:
216216
PHONY += rv32_nommu_virt_defconfig
217217
rv32_nommu_virt_defconfig:
218218
$(Q)$(MAKE) -f $(srctree)/Makefile nommu_virt_defconfig 32-bit.config
219+
220+
define archhelp
221+
echo ' Image - Uncompressed kernel image (arch/riscv/boot/Image)'
222+
echo ' Image.gz - Compressed kernel image (arch/riscv/boot/Image.gz)'
223+
echo ' Image.bz2 - Compressed kernel image (arch/riscv/boot/Image.bz2)'
224+
echo ' Image.lz4 - Compressed kernel image (arch/riscv/boot/Image.lz4)'
225+
echo ' Image.lzma - Compressed kernel image (arch/riscv/boot/Image.lzma)'
226+
echo ' Image.lzo - Compressed kernel image (arch/riscv/boot/Image.lzo)'
227+
echo ' Image.zst - Compressed kernel image (arch/riscv/boot/Image.zst)'
228+
echo ' vmlinuz.efi - Compressed EFI kernel image (arch/riscv/boot/vmlinuz.efi)'
229+
echo ' Default when CONFIG_EFI_ZBOOT=y'
230+
echo ' xipImage - Execute-in-place kernel image (arch/riscv/boot/xipImage)'
231+
echo ' Default when CONFIG_XIP_KERNEL=y'
232+
echo ' install - Install kernel using (your) ~/bin/$(INSTALLKERNEL) or'
233+
echo ' (distribution) /sbin/$(INSTALLKERNEL) or install to '
234+
echo ' $$(INSTALL_PATH)'
235+
endef

0 commit comments

Comments
 (0)