add loongarch64 support for oemaker
This commit is contained in:
parent
8635a62a48
commit
d4b9111319
36
add-openEuler_repo.conf-for-loongarch64.patch
Normal file
36
add-openEuler_repo.conf-for-loongarch64.patch
Normal file
@ -0,0 +1,36 @@
|
||||
From ba132d9a3f1e43130c03b41d7d89a6bcb6e57306 Mon Sep 17 00:00:00 2001
|
||||
From: Wenlong Zhang <zhangwenlong@loongson.cn>
|
||||
Date: Mon, 27 May 2024 08:48:30 +0000
|
||||
Subject: [PATCH] add openEuler_repo.conf for loongarch64
|
||||
|
||||
---
|
||||
envmaker/config/loongarch64/openEuler_repo.conf | 17 +++++++++++++++++
|
||||
1 file changed, 17 insertions(+)
|
||||
create mode 100644 envmaker/config/loongarch64/openEuler_repo.conf
|
||||
|
||||
diff --git a/envmaker/config/loongarch64/openEuler_repo.conf b/envmaker/config/loongarch64/openEuler_repo.conf
|
||||
new file mode 100644
|
||||
index 0000000..e7fc54c
|
||||
--- /dev/null
|
||||
+++ b/envmaker/config/loongarch64/openEuler_repo.conf
|
||||
@@ -0,0 +1,17 @@
|
||||
+[main]
|
||||
+debuglevel=2
|
||||
+gpgcheck=1
|
||||
+installonly_limit=3
|
||||
+clean_requirements_on_remove=True
|
||||
+best=False
|
||||
+skip_is_unavailable=False
|
||||
+
|
||||
+
|
||||
+# This is the default, if you make this bigger yum won't see if the metadata
|
||||
+
|
||||
+#in /etc/yum.repos.d
|
||||
+[openEuler]
|
||||
+name=openEuler
|
||||
+baseurl=http://repo.openEuler.org/openEuler-24.03-LTS/everything/loongarch64/
|
||||
+enabled=1
|
||||
+gpgcheck=0
|
||||
--
|
||||
2.43.0
|
||||
|
||||
0
desktop_normal_loongarch64.xml
Normal file
0
desktop_normal_loongarch64.xml
Normal file
1486
normal_loongarch64.xml
Normal file
1486
normal_loongarch64.xml
Normal file
File diff suppressed because it is too large
Load Diff
32
oemaker.spec
32
oemaker.spec
@ -6,12 +6,16 @@
|
||||
%global efi_x64 1
|
||||
%endif
|
||||
|
||||
%ifarch loongarch64
|
||||
%global efi_loongarch64 1
|
||||
%endif
|
||||
|
||||
Name: oemaker
|
||||
Summary: a building tool for DVD ISO making and ISO cutting
|
||||
License: Mulan PSL v2
|
||||
Group: System/Management
|
||||
Version: 3.1.0
|
||||
Release: 8
|
||||
Release: 9
|
||||
BuildRoot: %{_tmppath}/%{name}
|
||||
|
||||
Source: https://gitee.com/openeuler/oemaker/repository/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
@ -22,12 +26,16 @@ Source4: edge_normal_aarch64.xml
|
||||
Source5: edge_normal_x86_64.xml
|
||||
Source6: desktop_normal_aarch64.xml
|
||||
Source7: desktop_normal_x86_64.xml
|
||||
Source8: normal_loongarch64.xml
|
||||
Source9: rpmlist_loongarch64.xml
|
||||
Source10: desktop_normal_loongarch64.xml
|
||||
|
||||
Requires: createrepo dnf-plugins-core genisoimage isomd5sum grep bash libselinux-utils libxml2 anaconda libselinux-utils
|
||||
Requires: lorax >= 19.6.78-1
|
||||
|
||||
# Patch here
|
||||
Patch0001: 0001-fix-createrepo-data-error.patch
|
||||
Patch0002: add-openEuler_repo.conf-for-loongarch64.patch
|
||||
|
||||
%description
|
||||
a building tool for DVD ISO making and ISO cutting
|
||||
@ -54,8 +62,15 @@ rm -rf %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/aarch64/normal.xm
|
||||
cp %{SOURCE1} %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/aarch64/normal.xml
|
||||
rm -rf %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/x86_64/normal.xml
|
||||
cp %{SOURCE2} %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/x86_64/normal.xml
|
||||
rm -rf %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/loongarch64/normal.xml
|
||||
cp %{SOURCE8} %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/loongarch64/normal.xml
|
||||
%ifarch loongarch64
|
||||
rm -rf %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/rpmlist.xml
|
||||
cp %{SOURCE9} %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/rpmlist.xml
|
||||
%else
|
||||
rm -rf %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/rpmlist.xml
|
||||
cp %{SOURCE3} %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/rpmlist.xml
|
||||
%endif
|
||||
rm -rf %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/aarch64/edge_normal.xml
|
||||
cp %{SOURCE4} %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/aarch64/edge_normal.xml
|
||||
rm -rf %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/x86_64/edge_normal.xml
|
||||
@ -64,7 +79,10 @@ rm -rf %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/aarch64/desktop_n
|
||||
cp %{SOURCE6} %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/aarch64/desktop_normal.xml
|
||||
rm -rf %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/x86_64/desktop_normal.xml
|
||||
cp %{SOURCE7} %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/x86_64/desktop_normal.xml
|
||||
rm -rf %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/loongarch64/desktop_normal.xml
|
||||
cp %{SOURCE10} %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/loongarch64/desktop_normal.xml
|
||||
cd %{_builddir}/%{name}-%{version}/%{name}
|
||||
|
||||
%autopatch -p1
|
||||
|
||||
%install
|
||||
@ -91,9 +109,11 @@ install -m 700 %{name}/isomaker/rpm.sh %{buildroot}/opt/oemaker/rpm.sh
|
||||
install -m 700 %{name}/isomaker/env_record.sh %{buildroot}/opt/oemaker/env_record.sh
|
||||
install -m 700 %{name}/isomaker/env_restore.sh %{buildroot}/opt/oemaker/env_restore.sh
|
||||
install -m 400 %{name}/isomaker/config/rpmlist.xml %{buildroot}/opt/oemaker/config/rpmlist.xml
|
||||
%ifnarch loongarch64
|
||||
install -m 640 %{name}/isomaker/config/${sys_arch}/livecd/live/config_files/${sys_arch}/* %{buildroot}/opt/oemaker/config/${sys_arch}/livecd/live/config_files/${sys_arch}/
|
||||
install -m 400 %{name}/isomaker/config/${sys_arch}/livecd/livecd_${sys_arch}.ks %{buildroot}/opt/oemaker/config/${sys_arch}/livecd/livecd_${sys_arch}.ks
|
||||
install -m 600 %{name}/isomaker/config/${sys_arch}/livecd/rpmlist %{buildroot}/opt/oemaker/config/${sys_arch}/livecd/rpmlist
|
||||
%endif
|
||||
install -m 400 %{name}/isomaker/config/${sys_arch}/desktop_normal.xml %{buildroot}/opt/oemaker/config/${sys_arch}/desktop_normal.xml
|
||||
install -m 400 %{name}/isomaker/config/${sys_arch}/edge_normal.xml %{buildroot}/opt/oemaker/config/${sys_arch}/edge_normal.xml
|
||||
install -m 400 %{name}/isomaker/config/${sys_arch}/normal.xml %{buildroot}/opt/oemaker/config/${sys_arch}/normal.xml
|
||||
@ -101,11 +121,14 @@ install -m 400 %{name}/isomaker/config/${sys_arch}/standard.conf %{buildroot}/op
|
||||
%ifarch x86_64
|
||||
install -m 700 %{name}/isomaker/config/x86_64/livecd/live/x86.tmpl %{buildroot}/opt/oemaker/config/x86_64/livecd/live/x86.tmpl
|
||||
install -m 400 %{name}/isomaker/config/x86_64/ks.cfg %{buildroot}/opt/oemaker/config/x86_64/ks.cfg
|
||||
%else
|
||||
%endif
|
||||
%ifarch aarch64
|
||||
install -m 700 %{name}/isomaker/config/aarch64/livecd/live/aarch64.tmpl %{buildroot}/opt/oemaker/config/aarch64/livecd/live/aarch64.tmpl
|
||||
%endif
|
||||
%ifnarch loongarch64
|
||||
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
|
||||
install -m 700 %{name}/isomaker/docs/* %{buildroot}/opt/oemaker/docs/
|
||||
cp -ar %{name}/isomaker/80-openeuler %{buildroot}/opt/oemaker/
|
||||
|
||||
@ -173,6 +196,11 @@ rm -rf %{buildroot}
|
||||
rm -rf $RPM_BUILD_DIR/%{name}
|
||||
|
||||
%changelog
|
||||
* Tue May 21 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 3.1.0-9
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC: add loongarch64 support for oemaker
|
||||
|
||||
* Tue May 21 2024 wangchong <wangchong56@huawei.com> - 3.1.0-8
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
|
||||
1391
rpmlist_loongarch64.xml
Normal file
1391
rpmlist_loongarch64.xml
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user