Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add RISC-V Support #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ override EFI_ESP_ROOT=/boot/efi
endif
EFI_ARCHES ?= $(call get-config,arches)
ifeq ($(EFI_ARCHES),)
override EFI_ARCHES="x86_64 aarch64 %{arm} %{ix86}"
override EFI_ARCHES="x86_64 aarch64 %{arm} %{ix86} riscv64"
endif
EFI_VENDOR ?= $(call get-config,vendor)

Expand Down
2 changes: 1 addition & 1 deletion efi-rpm-macros.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ machine bootloaders and tools.
%autosetup -S git_am -n %{name}-@@EFI_SOURCE_VERSION@@
git config --local --add efi.vendor "%{_efi_vendor_}"
git config --local --add efi.esp-root /boot/efi
git config --local --add efi.arches "x86_64 aarch64 %{arm} %{ix86}"
git config --local --add efi.arches "x86_64 aarch64 %{arm} %{ix86} riscv64"

%build
%make_build clean all
Expand Down
2 changes: 2 additions & 0 deletions macros.efi-srpm.in
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
return("aa64")
elseif arch("%{arm}") then
return("arm")
elseif arch("riscv64") then
return("riscv64")
else
return("none")
end
Expand Down