]> Git Repo - J-linux.git/commitdiff
riscv: show help string for riscv-specific targets
authorEmil Renner Berthing <[email protected]>
Sat, 4 May 2024 19:34:39 +0000 (21:34 +0200)
committerPalmer Dabbelt <[email protected]>
Wed, 22 May 2024 23:12:45 +0000 (16:12 -0700)
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]>
arch/riscv/Makefile

index 6ebf505ddd32620abadaa4d67f6e4ef412bc97fb..8a128def849fd427e2441e59ec3743f61374378b 100644 (file)
@@ -216,3 +216,20 @@ rv32_defconfig:
 PHONY += rv32_nommu_virt_defconfig
 rv32_nommu_virt_defconfig:
        $(Q)$(MAKE) -f $(srctree)/Makefile nommu_virt_defconfig 32-bit.config
+
+define archhelp
+  echo  '  Image               - Uncompressed kernel image (arch/riscv/boot/Image)'
+  echo  '  Image.gz    - Compressed kernel image (arch/riscv/boot/Image.gz)'
+  echo  '  Image.bz2   - Compressed kernel image (arch/riscv/boot/Image.bz2)'
+  echo  '  Image.lz4   - Compressed kernel image (arch/riscv/boot/Image.lz4)'
+  echo  '  Image.lzma  - Compressed kernel image (arch/riscv/boot/Image.lzma)'
+  echo  '  Image.lzo   - Compressed kernel image (arch/riscv/boot/Image.lzo)'
+  echo  '  Image.zst   - Compressed kernel image (arch/riscv/boot/Image.zst)'
+  echo  '  vmlinuz.efi - Compressed EFI kernel image (arch/riscv/boot/vmlinuz.efi)'
+  echo  '                Default when CONFIG_EFI_ZBOOT=y'
+  echo  '  xipImage    - Execute-in-place kernel image (arch/riscv/boot/xipImage)'
+  echo  '                Default when CONFIG_XIP_KERNEL=y'
+  echo  '  install     - Install kernel using (your) ~/bin/$(INSTALLKERNEL) or'
+  echo  '                (distribution) /sbin/$(INSTALLKERNEL) or install to '
+  echo  '                $$(INSTALL_PATH)'
+endef
This page took 0.050181 seconds and 4 git commands to generate.