* [efitools PATCH 1/1] Make.rules: enable building on riscv64
@ 2021-04-01 16:57 Heinrich Schuchardt
2021-08-31 8:33 ` Heinrich Schuchardt
0 siblings, 1 reply; 2+ messages in thread
From: Heinrich Schuchardt @ 2021-04-01 16:57 UTC (permalink / raw)
To: James Bottomley
Cc: Ard Biesheuvel, linux-efi, linux-kernel, Heinrich Schuchardt
We can use just the same flags as for aarch64.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
RISC-V patches for gnu-efi are not yet accepted in upstream. Cf.
[Gnu-efi-discuss] [PATCH 1/1] Initial support for RISCV64
https://sourceforge.net/p/gnu-efi/mailman/gnu-efi-discuss/thread/20210401153553.103286-1-xypron.glpk%40gmx.de/#msg37253360
[Gnu-efi-discuss] [PATCH 1/1] Undefined Status in LibGetVariableAndSize()
https://sourceforge.net/p/gnu-efi/mailman/gnu-efi-discuss/thread/20210319162557.334645-1-xypron.glpk%40gmx.de/#msg37243995
You can use
https://github.com/xypron/gnu-efi/releases/tag/riscv64-2021-04-01 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 =
else
$(error unknown architecture $(ARCH))
endif
@@ -56,6 +58,11 @@ ifeq ($(ARCH),aarch64)
FORMAT = -O binary
endif
+ifeq ($(ARCH),riscv64)
+ LDFLAGS += --defsym=EFI_SUBSYSTEM=0x0a
+ FORMAT = -O binary
+endif
+
%.efi: %.so
$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic -j .dynsym \
-j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \
--
2.30.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [efitools PATCH 1/1] Make.rules: enable building on riscv64
2021-04-01 16:57 [efitools PATCH 1/1] Make.rules: enable building on riscv64 Heinrich Schuchardt
@ 2021-08-31 8:33 ` Heinrich Schuchardt
0 siblings, 0 replies; 2+ messages in thread
From: Heinrich Schuchardt @ 2021-08-31 8:33 UTC (permalink / raw)
To: James Bottomley
Cc: Ard Biesheuvel, linux-efi, linux-kernel, Heinrich Schuchardt
On 4/1/21 6:57 PM, Heinrich Schuchardt wrote:
> We can use just the same flags as for aarch64.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
> RISC-V patches for gnu-efi are not yet accepted in upstream. Cf.
>
> [Gnu-efi-discuss] [PATCH 1/1] Initial support for RISCV64
> https://sourceforge.net/p/gnu-efi/mailman/gnu-efi-discuss/thread/20210401153553.103286-1-xypron.glpk%40gmx.de/#msg37253360
> [Gnu-efi-discuss] [PATCH 1/1] Undefined Status in LibGetVariableAndSize()
> https://sourceforge.net/p/gnu-efi/mailman/gnu-efi-discuss/thread/20210319162557.334645-1-xypron.glpk%40gmx.de/#msg37243995
>
> You can use
> https://github.com/xypron/gnu-efi/releases/tag/riscv64-2021-04-01 for
> building sbsigntools and efitools.
Hello James,
I did not see any review from you on this patch yet.
https://lore.kernel.org/linux-efi/?q=Make.rules%3A+enable+building+on+riscv64
gnu-efi 3.0.14 has been released with RISC-V support.
Best regards
Heinrich
> ---
> 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 =
> else
> $(error unknown architecture $(ARCH))
> endif
> @@ -56,6 +58,11 @@ ifeq ($(ARCH),aarch64)
> FORMAT = -O binary
> endif
>
> +ifeq ($(ARCH),riscv64)
> + LDFLAGS += --defsym=EFI_SUBSYSTEM=0x0a
> + FORMAT = -O binary
> +endif
> +
> %.efi: %.so
> $(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic -j .dynsym \
> -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \
> --
> 2.30.2
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-31 8:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-01 16:57 [efitools PATCH 1/1] Make.rules: enable building on riscv64 Heinrich Schuchardt
2021-08-31 8:33 ` Heinrich Schuchardt
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).