LKML Archive on
help / color / mirror / Atom feed
From: Heinrich Schuchardt <>
To: James Bottomley <>
Cc: Ard Biesheuvel <>,,,
	Heinrich Schuchardt <>
Subject: [efitools PATCH 1/1] Make.rules: enable building on riscv64
Date: Thu,  1 Apr 2021 18:57:54 +0200	[thread overview]
Message-ID: <> (raw)

We can use just the same flags as for aarch64.

Signed-off-by: Heinrich Schuchardt <>
RISC-V patches for gnu-efi are not yet accepted in upstream. Cf.

[Gnu-efi-discuss] [PATCH 1/1] Initial support for RISCV64
[Gnu-efi-discuss] [PATCH 1/1] Undefined Status in LibGetVariableAndSize()

You can use for
building sbsigntools and efitools.
 Make.rules | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Make.rules b/Make.rules
index 903a5a4..69bd3bd 100644
--- a/Make.rules
+++ b/Make.rules
@@ -10,6 +10,8 @@ else ifeq ($(ARCH),aarch64)
 ARCH3264 =
 else ifeq ($(ARCH),arm)
 ARCH3264 =
+else ifeq ($(ARCH),riscv64)
+ARCH3264 =
 $(error unknown architecture $(ARCH))
@@ -56,6 +58,11 @@ ifeq ($(ARCH),aarch64)
   FORMAT = -O binary

+ifeq ($(ARCH),riscv64)
+  LDFLAGS += --defsym=EFI_SUBSYSTEM=0x0a
+  FORMAT = -O binary
 	$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic -j .dynsym \
 		   -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \

             reply	other threads:[~2021-04-01 17:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-01 16:57 Heinrich Schuchardt [this message]
2021-08-31  8:33 ` Heinrich Schuchardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \
    --subject='Re: [efitools PATCH 1/1] Make.rules: enable building on riscv64' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).