From patchwork Sat May 4 19:34:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Emil Renner Berthing X-Patchwork-Id: 13654109 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B2846C4345F for ; Sat, 4 May 2024 19:35:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=r0+iCsnjAbF4Ti06OzjhjqNJUQbXH4Kq5Mu+bZ/Et64=; b=GAnflgV5LRUbCy uZOY6YDhbpQiSfPISzS6lJTVtmN/dJR5RpaMPT44euiLlrRKFgy/H8ZWJEjg09b8GFwRlnBgwXiqL z+ykvOEStzI/Xeuv9gRD634wLelN7Tfv3gP7J8b93rD8jOyZFOVhLz3QLr7QQQ2m4YEnlisUjlJK9 tq1Srs7681gBayJs4qDdgkAtgnX23LgrBdFIO0y5j+dP2zPJ3fweFwfvfNu/a7Q9BaTwqWphREXgb 2tFCILFAWIqxBRaBMl8rl+OtQ2XHyv94EXcBTqFRzj9bxq6xoKRcBuzNb4JKCREpNgCR/9YH9OHBt 3M//wzD1k2qwqKoj/IMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s3L9w-00000002jJx-3t98; Sat, 04 May 2024 19:35:00 +0000 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s3L9t-00000002jHy-064V for linux-riscv@lists.infradead.org; Sat, 04 May 2024 19:34:58 +0000 Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id B57773FE63 for ; Sat, 4 May 2024 19:34:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1714851291; bh=XYcyH30Tdg0L1XT/KhSL5KHFpF2lXtDsTt+QyOMRfmk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=r9Y4m7dxMZXV3maoVzMFgVwXYJxNGQ4EPQDIrsaD7DLhkrvIIOGfL3MMpwzjSACpl grskiZuCNLWG8r0scYnZ0D3TsZ5FdepFsFq/RkRpOuV+0gYv2bKv4YuT3QH9QNtlra 6yqtC+Q1uxtkEDxwhoskc9chlE8mBlwTQebVuvWbjGk+s1T3RvNAqtxiHhq7ClDzXk modFrNarb/Vmqh3pVX+XRXPX09iBPhbhowjHZjttu7C4ZOd0uHq0QMgiSD5vdfk1so n+MN32F+dCrHGVVgoCwwKsd+5z9tqneq4CW1P87OmIiP9OQnb1v920ptcaawTSUQyj +Vw/TBq/3XFwA== Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-5726d06aa18so78212a12.2 for ; Sat, 04 May 2024 12:34:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714851290; x=1715456090; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XYcyH30Tdg0L1XT/KhSL5KHFpF2lXtDsTt+QyOMRfmk=; b=M5VFrp/e3SRgcHw3BDL2XAY/PzJYWtfpRpyuQnR2qyUICfWZH8C4U+apzfxH0ceUEZ z0kEDxBzvbldkykYwgY3XeChno1GVqzKHlgc+9d03kcIdd6z3HI3Vw1VPuR/UKnra5jw bUEUTPLmLvu5B447/QNCcyZxwsuA0AbnDA6ST0ytHOaClY50WQCRPr4QgAlsm5upb6mA 5BUKTy4oh3j+9nWlagIAxFAcCIeQ3YBRLwMkyS7akyGD4WGc//YEi0JNVyldhP+R/oIn /L7koTEcqTqS36jXVtI6Lq48uRyn1yS+McbM5inH0m8k0pd7BtC8z+8vSFaSuuG5Oh+9 PyuA== X-Gm-Message-State: AOJu0Yx1OaxILb2BBZZXIoVZOu1djZYXXxpfRBa2y2uQ+c/ugjVgAh+K Zzts3qf6iAU+ySKDbbrbGnI2BHT3u7lu4hGsehuE3YnX4lBKXhT2+5O8BmRB6ssmC53Kf5qvn1n Z18RbNpgiFJSL5UTVolzQ96uZnnbuGSvjvqJ8MEa+ru7IhILNxOOxD/OYCwRqeQCPU+9A0Knjvh vC/0PzDsGz+TUuxw== X-Received: by 2002:a50:d5d8:0:b0:572:4fc3:3a28 with SMTP id g24-20020a50d5d8000000b005724fc33a28mr3895875edj.23.1714851290380; Sat, 04 May 2024 12:34:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGnRJR1GyEL9wACd0QWSYElWiR8PckNNzcjss6a2GKF18p7Qs7LRVI0kBoEyI6PAN3xCIefKQ== X-Received: by 2002:a50:d5d8:0:b0:572:4fc3:3a28 with SMTP id g24-20020a50d5d8000000b005724fc33a28mr3895868edj.23.1714851290043; Sat, 04 May 2024 12:34:50 -0700 (PDT) Received: from stitch.. ([80.71.142.166]) by smtp.gmail.com with ESMTPSA id et4-20020a056402378400b00572d255e342sm2227021edb.10.2024.05.04.12.34.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 12:34:49 -0700 (PDT) From: Emil Renner Berthing To: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Cc: Paul Walmsley , Palmer Dabbelt , Masahiro Yamada , Nathan Chancellor , Nicolas Schier , Nick Terrell , =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= Subject: [PATCH v2 1/2] riscv: make image compression configurable Date: Sat, 4 May 2024 21:34:38 +0200 Message-ID: <20240504193446.196886-2-emil.renner.berthing@canonical.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240504193446.196886-1-emil.renner.berthing@canonical.com> References: <20240504193446.196886-1-emil.renner.berthing@canonical.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240504_123457_225110_DDA622B2 X-CRM114-Status: GOOD ( 14.12 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Previously the build process would always set KBUILD_IMAGE to the uncompressed Image file (unless XIP_KERNEL or EFI_ZBOOT was enabled) and unconditionally compress it into Image.gz. However there are already build targets for Image.bz2, Image.lz4, Image.lzma, Image.lzo and Image.zstd, so let's make use of those, make the compression method configurable and set KBUILD_IMAGE accordingly so that targets like 'make install' and 'make bindeb-pkg' will use the chosen image. Tested-by: Björn Töpel Signed-off-by: Emil Renner Berthing Reviewed-by: Nicolas Schier Reviewed-by: Masahiro Yamada --- Changes in v2: - Rebase on riscv/for-next - Use boot-image-$(CONFIG_..) := assignments rather than ifeq train --- arch/riscv/Kconfig | 7 +++++++ arch/riscv/Makefile | 38 ++++++++++++++++++-------------------- arch/riscv/boot/install.sh | 9 ++++++--- 3 files changed, 31 insertions(+), 23 deletions(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 6bec1bce6586..79e558397f41 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -140,6 +140,13 @@ config RISCV select HAVE_GCC_PLUGINS select HAVE_GENERIC_VDSO if MMU && 64BIT select HAVE_IRQ_TIME_ACCOUNTING + select HAVE_KERNEL_BZIP2 if !XIP_KERNEL && !EFI_ZBOOT + select HAVE_KERNEL_GZIP if !XIP_KERNEL && !EFI_ZBOOT + select HAVE_KERNEL_LZ4 if !XIP_KERNEL && !EFI_ZBOOT + select HAVE_KERNEL_LZMA if !XIP_KERNEL && !EFI_ZBOOT + select HAVE_KERNEL_LZO if !XIP_KERNEL && !EFI_ZBOOT + select HAVE_KERNEL_UNCOMPRESSED if !XIP_KERNEL && !EFI_ZBOOT + select HAVE_KERNEL_ZSTD if !XIP_KERNEL && !EFI_ZBOOT select HAVE_KPROBES if !XIP_KERNEL select HAVE_KPROBES_ON_FTRACE if !XIP_KERNEL select HAVE_KRETPROBES if !XIP_KERNEL diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile index 8b2ae27f1d98..07ff2f34f0dc 100644 --- a/arch/riscv/Makefile +++ b/arch/riscv/Makefile @@ -136,20 +136,20 @@ 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_ARCH_CANAAN),yy) -KBUILD_IMAGE := $(boot)/loader.bin -else -ifeq ($(CONFIG_EFI_ZBOOT),) -KBUILD_IMAGE := $(boot)/Image.gz -else -KBUILD_IMAGE := $(boot)/vmlinuz.efi -endif -endif +boot := arch/riscv/boot +boot-image-y := Image +boot-image-$(CONFIG_KERNEL_BZIP2) := Image.bz2 +boot-image-$(CONFIG_KERNEL_GZIP) := Image.gz +boot-image-$(CONFIG_KERNEL_LZ4) := Image.lz4 +boot-image-$(CONFIG_KERNEL_LZMA) := Image.lzma +boot-image-$(CONFIG_KERNEL_LZO) := Image.lzo +boot-image-$(CONFIG_KERNEL_ZSTD) := Image.zst +ifdef CONFIG_RISCV_M_MODE +boot-image-$(CONFIG_ARCH_CANAAN) := loader.bin endif +boot-image-$(CONFIG_EFI_ZBOOT) := vmlinuz.efi +boot-image-$(CONFIG_XIP_KERNEL) := xipImage +KBUILD_IMAGE := $(boot)/$(boot-image-y) libs-y += arch/riscv/lib/ libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a @@ -168,21 +168,19 @@ endif vdso-install-y += arch/riscv/kernel/vdso/vdso.so.dbg vdso-install-$(CONFIG_COMPAT) += arch/riscv/kernel/compat_vdso/compat_vdso.so.dbg -BOOT_TARGETS := Image Image.gz loader loader.bin xipImage vmlinuz.efi +BOOT_TARGETS := Image Image.gz Image.bz2 Image.lz4 Image.lzma Image.lzo Image.zst loader loader.bin xipImage vmlinuz.efi all: $(notdir $(KBUILD_IMAGE)) loader.bin: loader -Image.gz loader vmlinuz.efi: Image +Image.gz Image.bz2 Image.lz4 Image.lzma Image.lzo Image.zst loader xipImage vmlinuz.efi: Image + $(BOOT_TARGETS): vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ @$(kecho) ' Kernel: $(boot)/$@ is ready' -Image.%: Image - $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ - -install: KBUILD_IMAGE := $(boot)/Image -zinstall: KBUILD_IMAGE := $(boot)/Image.gz +# the install target always installs KBUILD_IMAGE (which may be compressed) +# but keep the zinstall target for compatibility with older releases install zinstall: $(call cmd,install) diff --git a/arch/riscv/boot/install.sh b/arch/riscv/boot/install.sh index 4c63f3f0643d..a8df7591513a 100755 --- a/arch/riscv/boot/install.sh +++ b/arch/riscv/boot/install.sh @@ -17,15 +17,18 @@ # $3 - kernel map file # $4 - default install path (blank if root directory) -if [ "$(basename $2)" = "Image.gz" ]; then +case "${2##*/}" in # Compressed install +Image.*|vmlinuz.efi) echo "Installing compressed kernel" base=vmlinuz -else + ;; # Normal install +*) echo "Installing normal kernel" base=vmlinux -fi + ;; +esac if [ -f $4/$base-$1 ]; then mv $4/$base-$1 $4/$base-$1.old From patchwork Sat May 4 19:34:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Emil Renner Berthing X-Patchwork-Id: 13654111 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 83A00C4345F for ; Sat, 4 May 2024 19:35:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SRzNM8SdlMaOB7xiL6Irueqo6zimGM1jdshB19y39bA=; b=x8PP1/l+qQOqkM Tn+p9vHJkCFZxlE5gTZkHyMT3a9qXkn9wG6Wb26XdCyhTLQbQAE2ifeKZIBj3AHM6sg/vgxU2Xcc7 RSh7zoJDiJmbvn1+ynRJy3khVUEJtL9gyw9mey57tbBIW3KIEJuq+5xXwpn8PRaKkPzezI9I+5ChH Gyrq3MOlSXvJ4N+BzEJBcz0YQE1creHc4RuaTrvRfU2egZbrcrJV1DosvQ1GulkNOGcW43wPunkBe Yi3w140eghxuE+EFBgdQykpMtmBk6ENzHpdd0yWWgzF1AYMx85bCY4s61o6xXlnAywh21V1JCqI/Y Jb2x1pxDIOyw7I86x59A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s3L9w-00000002jJW-1AXV; Sat, 04 May 2024 19:35:00 +0000 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s3L9s-00000002jIF-0gKE for linux-riscv@lists.infradead.org; Sat, 04 May 2024 19:34:57 +0000 Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id D933D3F270 for ; Sat, 4 May 2024 19:34:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1714851294; bh=oOLIaUL1ksCYikVh+tjyK0yztXrep94eIS+0vADjCFU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nWYmfSpstEpb6gXasL1OcKvQN2WddkBbMMjRglv3T1Wl0GeuakSjmAELTTcyi2egr akIrin3G4Use7ANU8v+YgzLEUxjxG0LKZsmEkNpGcrd5cMAfhXrkyL8gxtShyZ0Ngv q8fhQKlFL3dfOJhKEC3n4cnOiWIQsUs9J0GZW6tSPRoqp0msAvFXNHFt0XYcQE1f6N btFtw0HRFed8Cn87gpUsuTD5WCntAlCefdEZ5vh1t6F+DMsu3HdlrqB7lmCcSs5DCc 2YtnNui3jgWZekfBUe9N92kxn9hxkidKk+JsaBsqfDWlz6ahftundeSx0V199GTDZy +NPyHSm6Adtcw== Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-a58d2d13937so15272266b.0 for ; Sat, 04 May 2024 12:34:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714851291; x=1715456091; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oOLIaUL1ksCYikVh+tjyK0yztXrep94eIS+0vADjCFU=; b=R9wwzdVssqiTsOyWn85Lng6vL4X+YQzTwrJ3z77rv7uExj984BrwOVKEaoGkbv/K7D MfzabgRkALcgtFFIFXIaaMSWJAJeMNSjMe4vikZxD872ZzH9kr0y5Q6gZwoZixG48Q82 gbcY1/kBbd6H71rY3dY1yAaQe+sRin/Bu5PnT3BhtDvyP5Bxxq+xkPojH3lRvsKVXRzc 9xXLcm4i+os38LpwWzKRHOXY7H5eI+PehfHnLtgWf8WtrDzrhzfFqgluR6Oh8WS6q+7/ NdRNy7ikxJ1gFvs1SFWvILD5vqGRHah6YDxpmQWC0bR21/B0AU24/rdXtgSqQhHa5X3l k57w== X-Gm-Message-State: AOJu0Yy6bR8PSQ53GuvGrcAmVB84iOUB04Uzx/wv+1i/rl2uE11RXPYK XuKNphAR5GVYsLxeelyuGosOuhJt1+8AWxXAQvbJ0k1SAF2mYjbXxL2OIqvYtBFH26LLR51NF0x eiwzTnPvUW8rfomJGjwQylk3LGKXr+Q57k8hsA/2FAmOT2BSaLx1tbSJXl6F/KTpmQM2RRfyIAp Rz5P7CGe3UjGf+Yg== X-Received: by 2002:a50:a693:0:b0:56e:2cb6:480e with SMTP id e19-20020a50a693000000b0056e2cb6480emr5037843edc.38.1714851291518; Sat, 04 May 2024 12:34:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHSxa0bKw9XZSPRzRQBk5sICnCx31i0zneLUhKIf2Xqa/AxILKx9IuvkMH2j2eNM0zWghhKyQ== X-Received: by 2002:a50:a693:0:b0:56e:2cb6:480e with SMTP id e19-20020a50a693000000b0056e2cb6480emr5037835edc.38.1714851291333; Sat, 04 May 2024 12:34:51 -0700 (PDT) Received: from stitch.. ([80.71.142.166]) by smtp.gmail.com with ESMTPSA id et4-20020a056402378400b00572d255e342sm2227021edb.10.2024.05.04.12.34.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 12:34:50 -0700 (PDT) From: Emil Renner Berthing To: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Cc: Paul Walmsley , Palmer Dabbelt , Masahiro Yamada , Nathan Chancellor , Nicolas Schier , Nick Terrell , =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= Subject: [PATCH v2 2/2] riscv: show help string for riscv-specific targets Date: Sat, 4 May 2024 21:34:39 +0200 Message-ID: <20240504193446.196886-3-emil.renner.berthing@canonical.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240504193446.196886-1-emil.renner.berthing@canonical.com> References: <20240504193446.196886-1-emil.renner.berthing@canonical.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240504_123456_361784_5868163D X-CRM114-Status: UNSURE ( 8.86 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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 Signed-off-by: Emil Renner Berthing Reviewed-by: Masahiro Yamada --- arch/riscv/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile index 07ff2f34f0dc..ae51720199a3 100644 --- a/arch/riscv/Makefile +++ b/arch/riscv/Makefile @@ -201,3 +201,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