lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Tue,  5 Oct 2021 10:50:18 +0200
From:   Heinrich Schuchardt <heinrich.schuchardt@...onical.com>
To:     James Bottomley <James.Bottomley@...senPartnership.com>
Cc:     linux-efi@...r.kernel.org, linux-kernel@...r.kernel.org,
        Heinrich Schuchardt <heinrich.schuchardt@...onical.com>
Subject: [PATCH 1/1] efitools: enable RISC-V build

Set necessary Makefile variables for architecture riscv64.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@...onical.com>
---
 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.32.0

Powered by blists - more mailing lists