!314 add riscv64 support

From: @ouuleilei 
Reviewed-by: @zhuchunyi 
Signed-off-by: @zhuchunyi
This commit is contained in:
openeuler-ci-bot 2024-05-28 06:38:34 +00:00 committed by Gitee
commit b1f1404654
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 5938 additions and 1 deletions

File diff suppressed because it is too large Load Diff

1569
normal_riscv64.xml Normal file

File diff suppressed because it is too large Load Diff

View File

@ -15,7 +15,7 @@ Summary: a building tool for DVD ISO making and ISO cutting
License: Mulan PSL v2
Group: System/Management
Version: 3.1.0
Release: 9
Release: 10
BuildRoot: %{_tmppath}/%{name}
Source: https://gitee.com/openeuler/oemaker/repository/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
@ -29,6 +29,8 @@ Source7: desktop_normal_x86_64.xml
Source8: normal_loongarch64.xml
Source9: rpmlist_loongarch64.xml
Source10: desktop_normal_loongarch64.xml
Source11: rpmlist_riscv64.xml
Source12: normal_riscv64.xml
Requires: createrepo dnf-plugins-core genisoimage isomd5sum grep bash libselinux-utils libxml2 anaconda libselinux-utils
Requires: lorax >= 19.6.78-1
@ -36,6 +38,10 @@ Requires: lorax >= 19.6.78-1
# Patch here
Patch0001: 0001-fix-createrepo-data-error.patch
Patch0002: add-openEuler_repo.conf-for-loongarch64.patch
%ifarch riscv64
Patch0003: 0001-add-riscv64-support.patch
%endif
%description
a building tool for DVD ISO making and ISO cutting
@ -84,6 +90,14 @@ cp %{SOURCE10} %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/loongarch
cd %{_builddir}/%{name}-%{version}/%{name}
%autopatch -p1
%ifarch riscv64
rm -rf %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/rpmlist.xml
cp %{SOURCE11} %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/rpmlist.xml
rm -rf %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/riscv64/normal.xml
cp %{SOURCE12} %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/riscv64/normal.xml
%endif
%install
sys_arch=$(uname -m)
@ -129,6 +143,9 @@ install -m 700 %{name}/isomaker/config/aarch64/livecd/live/aarch64.tmpl %{buildr
install -m 700 %{name}/isomaker/config/common/livecd/live/* %{buildroot}/opt/oemaker/config/common/livecd/live/
install -m 400 %{name}/isomaker/config/common/livecd/root_pwd %{buildroot}/opt/oemaker/config/common/livecd/root_pwd
%endif
%ifarch riscv64
install -m 700 %{name}/isomaker/config/riscv64/livecd/live/riscv64.tmpl %{buildroot}/opt/oemaker/config/riscv64/livecd/live/riscv64.tmpl
%endif
install -m 700 %{name}/isomaker/docs/* %{buildroot}/opt/oemaker/docs/
cp -ar %{name}/isomaker/80-openeuler %{buildroot}/opt/oemaker/
@ -196,6 +213,9 @@ rm -rf %{buildroot}
rm -rf $RPM_BUILD_DIR/%{name}
%changelog
* Tue May 28 2024 Ouuleilei <wangliu@iscas.ac.cn> - 3.1.0-10
- add riscv64 support
* Tue May 21 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 3.1.0-9
- ID:NA
- SUG:NA

1441
rpmlist_riscv64.xml Normal file

File diff suppressed because it is too large Load Diff