mirror of
https://abf.rosa.ru/djam/efivar.git
synced 2025-02-23 18:52:45 +00:00
add riscv
This commit is contained in:
parent
96a26205ea
commit
e2b73aeb72
2 changed files with 36 additions and 0 deletions
35
0001-Fix-the-march-issue-for-riscv64.patch
Normal file
35
0001-Fix-the-march-issue-for-riscv64.patch
Normal file
|
@ -0,0 +1,35 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Wei Fu <wefu@redhat.com>
|
||||
Date: Sat, 2 Apr 2022 22:53:36 +0800
|
||||
Subject: [PATCH] Fix the -march issue for riscv64
|
||||
|
||||
There is an issue on riscv64 system when compiling it natively:
|
||||
gcc: error: '-march=native': ISA string must begin with rv32 or rv64
|
||||
|
||||
This patch set HOST_MARCH= like ia64 to resolve the issue.
|
||||
|
||||
Signed-off-by: Wei Fu <wefu@redhat.com>
|
||||
(cherry picked from commit aab4e9b10ac9e98588a1b19771cf6f4c8c0a3096)
|
||||
---
|
||||
src/include/defaults.mk | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/src/include/defaults.mk b/src/include/defaults.mk
|
||||
index 632b155..b8cc590 100644
|
||||
--- a/src/include/defaults.mk
|
||||
+++ b/src/include/defaults.mk
|
||||
@@ -73,10 +73,14 @@ override SOFLAGS = $(_SOFLAGS) \
|
||||
|
||||
HOST_ARCH=$(shell uname -m)
|
||||
ifneq ($(HOST_ARCH),ia64)
|
||||
+ifneq ($(HOST_ARCH),riscv64)
|
||||
HOST_MARCH=-march=native
|
||||
else
|
||||
HOST_MARCH=
|
||||
endif
|
||||
+else
|
||||
+ HOST_MARCH=
|
||||
+endif
|
||||
HOST_CPPFLAGS ?= $(CPPFLAGS)
|
||||
override _HOST_CPPFLAGS := $(HOST_CPPFLAGS)
|
||||
override HOST_CPPFLAGS = $(_HOST_CPPFLAGS) \
|
|
@ -15,6 +15,7 @@ Group: System/Kernel and hardware
|
|||
URL: https://github.com/rhboot/efivar
|
||||
Source0: https://github.com/rhboot/%{name}/releases/download/%{version}/efivar-%{version}.tar.bz2
|
||||
#Source0: efivar-git%{date}.tar.gz
|
||||
Patch0: 0001-Fix-the-march-issue-for-riscv64.patch
|
||||
|
||||
Requires: %{libname} = %{EVRD}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue