Add support for riscv64

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
This commit is contained in:
David Abdurachmanov 2018-05-11 11:31:22 +02:00
parent 2d9533ab7f
commit 03754dbb42
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,25 @@
diff --git a/imgcreate/live.py b/imgcreate/live.py
index b3da184..d464913 100755
--- a/imgcreate/live.py
+++ b/imgcreate/live.py
@@ -1043,6 +1043,8 @@ elif arch in ("ppc64",):
LiveImageCreator = ppc64LiveImageCreator
elif arch.startswith(("arm", "aarch64")):
LiveImageCreator = LiveImageCreatorBase
+elif arch in ("riscv64",):
+ LiveImageCreator = LiveImageCreatorBase
else:
raise CreatorError("Architecture not supported!")
diff --git a/tools/editliveos b/tools/editliveos
index 36d7124..f542201 100755
--- a/tools/editliveos
+++ b/tools/editliveos
@@ -2158,5 +2158,7 @@ elif arch in ("ppc64",):
LiveImageCreator = ppc64LiveImageCreator
elif arch.startswith(("arm", "aarch64")):
LiveImageCreator = LiveImageCreatorBase
+elif arch in ("riscv64",):
+ LiveImageCreator = LiveImageCreatorBase
else:
raise CreatorError("Architecture not supported!")

View File

@ -10,7 +10,7 @@
Summary: Tools for building live CDs
Name: livecd-tools
Version: 25.0
Release: 6%{?dist}
Release: 6.0.riscv64%{?dist}
Epoch: 1
License: GPLv2
Group: System Environment/Base
@ -19,6 +19,7 @@ Source0: https://releases.pagure.org/%{name}/%{name}-%{version}.tar.gz
Patch0: https://github.com/livecd-tools/livecd-tools/commit/491a49ff9aedf5197af3e4dcb0f50351db3cddf0.patch
Patch1: livecd-tools-revert-restorecon.patch
Patch2: livecd-tools-25.0-add-riscv64.patch
BuildRequires: python2-devel
%if %{with python3}
@ -190,6 +191,9 @@ rm -rfv %{buildroot}%{_mandir}/man8/livecd-iso-to-*
%endif
%changelog
* Fri May 11 2018 David Abdurachmanov <david.abdurachmanov@gmail.com> - 1:25.0-6.0.riscv64
- Add support for riscv64
* Thu Mar 22 2018 Patrick Uiterwijk <puiterwijk@redhat.com> - 1:25.0-6
- Revert patch to use restorecon due to unloaded selinux policy