Compare commits
10 Commits
8ca77b2fe1
...
a48a392b04
| Author | SHA1 | Date | |
|---|---|---|---|
| a48a392b04 | |||
|
|
923c010226 | ||
|
|
8e8316876b | ||
|
|
388c556f8c | ||
|
|
aa65fb6e4e | ||
|
|
2f4702dfda | ||
|
|
08e8ed2228 | ||
|
|
9bce82384f | ||
|
|
8cd1a47e62 | ||
|
|
7b500e0a1c |
24
Delete-the-commented-code.patch
Normal file
24
Delete-the-commented-code.patch
Normal file
@ -0,0 +1,24 @@
|
||||
From c7605385b9d838be78a87de02a48eaaa6e69b4b2 Mon Sep 17 00:00:00 2001
|
||||
From: hongjinghao <hongjinghao@huawei.com>
|
||||
Date: Tue, 5 Mar 2024 20:22:59 +0800
|
||||
Subject: [PATCH] Delete the commented code
|
||||
|
||||
---
|
||||
brp-digest-list | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/brp-digest-list b/brp-digest-list
|
||||
index 77248c9..7de42b7 100644
|
||||
--- a/brp-digest-list
|
||||
+++ b/brp-digest-list
|
||||
@@ -9,7 +9,6 @@ if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
|
||||
fi
|
||||
|
||||
# Create temporary file listing files in the manifest
|
||||
-#[ -n "$TMPDIR" ] || TMPDIR="/tmp"
|
||||
TMPDIR="/tmp"
|
||||
BIN_PKG_FILES=${TMPDIR}/${3%%.rpm}
|
||||
cat - > $BIN_PKG_FILES
|
||||
--
|
||||
2.33.0
|
||||
|
||||
38
add-powerpc64le-and-ppc64le-support.patch
Normal file
38
add-powerpc64le-and-ppc64le-support.patch
Normal file
@ -0,0 +1,38 @@
|
||||
From fc04d33640534f5046210b4cb60fd4c595955781 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?=E9=82=B9=E9=B9=8F?= <peng.zou@shingroup.cn>
|
||||
Date: Thu, 22 Feb 2024 14:42:38 +0800
|
||||
Subject: [PATCH] add powerpc64le and ppc64le support
|
||||
|
||||
---
|
||||
macros | 2 +-
|
||||
rpmrc | 1 +
|
||||
2 files changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/macros b/macros
|
||||
index d241ce3..ddee753 100644
|
||||
--- a/macros
|
||||
+++ b/macros
|
||||
@@ -241,7 +241,7 @@
|
||||
%pkg_vcmp() (%{expand:%%{pkg_version_cmp %1 %3}} %2 0)
|
||||
|
||||
#arches macros
|
||||
-%generic_arches %{ix86} x86_64 %{arm} aarch64 sw_64 loongarch64
|
||||
+%generic_arches %{ix86} x86_64 %{arm} aarch64 sw_64 loongarch64 powerpc64le ppc64le
|
||||
%ldc_arches %{generic_arches}
|
||||
%valgrind_arches %{generic_arches}
|
||||
%nodejs_arches %{generic_arches}
|
||||
diff --git a/rpmrc b/rpmrc
|
||||
index 8ba756d..6a29bcb 100644
|
||||
--- a/rpmrc
|
||||
+++ b/rpmrc
|
||||
@@ -7,6 +7,7 @@ optflags: x86_64 %{__global_compiler_flags} -m64 -mtune=generic -fasynchronous-u
|
||||
|
||||
optflags: aarch64 %{__global_compiler_flags} -fasynchronous-unwind-tables -fstack-clash-protection
|
||||
optflags: riscv64 %{__global_compiler_flags} -fasynchronous-unwind-tables -fstack-clash-protection
|
||||
+optflags: ppc64le %{__global_compiler_flags} -fasynchronous-unwind-tables -fstack-clash-protection
|
||||
|
||||
buildarchtranslate: athlon: i686
|
||||
buildarchtranslate: geode: i686
|
||||
--
|
||||
2.33.0
|
||||
|
||||
41
add-riscv64-to-some-arches-macro.patch
Normal file
41
add-riscv64-to-some-arches-macro.patch
Normal file
@ -0,0 +1,41 @@
|
||||
From 7332245a8f59de83485208282f2a15beaf5e544f Mon Sep 17 00:00:00 2001
|
||||
From: laokz <zhangkai@iscas.ac.cn>
|
||||
Date: Tue, 7 May 2024 10:21:52 +0800
|
||||
Subject: [PATCH] add riscv64 to some arches macro
|
||||
|
||||
---
|
||||
macros | 11 +++++------
|
||||
1 file changed, 5 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/macros b/macros
|
||||
index ddee753..bf82bc5 100644
|
||||
--- a/macros
|
||||
+++ b/macros
|
||||
@@ -244,7 +244,7 @@
|
||||
%generic_arches %{ix86} x86_64 %{arm} aarch64 sw_64 loongarch64 powerpc64le ppc64le
|
||||
%ldc_arches %{generic_arches}
|
||||
%valgrind_arches %{generic_arches}
|
||||
-%nodejs_arches %{generic_arches}
|
||||
+%nodejs_arches %{generic_arches} riscv64
|
||||
%ldc_arches %{generic_arches}
|
||||
%mono_arches %{generic_arches}
|
||||
%fpc_arches %{generic_arches}
|
||||
@@ -253,11 +253,10 @@
|
||||
%GNAT_arches %{GPRbuild_arches} %{generic_arches}
|
||||
%GPRbuild_arches %{generic_arches}
|
||||
%nim_arches %{generic_arches}
|
||||
-%nodejs_arches %{generic_arches}
|
||||
-%ocaml_native_compiler %{generic_arches}
|
||||
-%ocaml_natdynlink %{generic_arches}
|
||||
-%ocaml_native_profiling %{generic_arches}
|
||||
-%openblas_arches %{generic_arches}
|
||||
+%ocaml_native_compiler %{generic_arches} riscv64
|
||||
+%ocaml_natdynlink %{generic_arches} riscv64
|
||||
+%ocaml_native_profiling %{generic_arches} riscv64
|
||||
+%openblas_arches %{generic_arches} riscv64
|
||||
|
||||
#%ldconfig /sbin/ldconfig
|
||||
%ldconfig_post(n:) %{?ldconfig:%post -p %ldconfig %{?*} %{-n:-n %{-n*}}\
|
||||
--
|
||||
2.39.2
|
||||
|
||||
@ -1,10 +1,12 @@
|
||||
From 20213f22f2b32d36c993be8200d3989bc9fc9e29 Mon Sep 17 00:00:00 2001
|
||||
From 3e65c85831be0b8f8e1cd43869b4991a76e14d9b Mon Sep 17 00:00:00 2001
|
||||
From: Yang Yanchao <yangyanchao6@huawei.com>
|
||||
Date: Tue, 28 Mar 2023 03:38:28 +0000
|
||||
Date: Fri, 17 Mar 2023 01:09:09 +0000
|
||||
Subject: [PATCH] backport kmp feature
|
||||
|
||||
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
|
||||
Signed-off-by: Xinliang Liu <xinliang.liu@linaro.org>
|
||||
---
|
||||
kmodtool | 287 ++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
kmodtool | 281 ++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
kmodtool.py | 83 ---------------
|
||||
macros.kmp | 85 ++++++++++++----
|
||||
3 files changed, 350 insertions(+), 105 deletions(-)
|
||||
@ -16,7 +18,7 @@ new file mode 100644
|
||||
index 0000000..427d1df
|
||||
--- /dev/null
|
||||
+++ b/kmodtool
|
||||
@@ -0,0 +1,287 @@
|
||||
@@ -0,0 +1,281 @@
|
||||
+#!/usr/bin/bash
|
||||
+
|
||||
+# kmodtool - Helper script for building kernel module RPMs
|
||||
@ -152,11 +154,6 @@ index 0000000..427d1df
|
||||
+Requires(postun): /usr/sbin/depmod
|
||||
+EOF
|
||||
+
|
||||
+#if [ "no" != "$kmp_nobuildreqs" ]
|
||||
+#then
|
||||
+ # echo "BuildRequires: kernel${dashvariant}-devel-%{_target_cpu} = ${verrel}"
|
||||
+#fi
|
||||
+
|
||||
+if [ "" != "$kmp_override_preamble" ]
|
||||
+then
|
||||
+ cat "$kmp_override_preamble"
|
||||
@ -195,7 +192,6 @@ index 0000000..427d1df
|
||||
+ if [ ! -z "$kmp" ]; then
|
||||
+ cat <<EOF
|
||||
+modules=( \$(cat /var/run/rpm-kmod-${kmod_name}${dashvariant}-modules) )
|
||||
+#rm /var/run/rpm-kmod-${kmod_name}${dashvariant}-modules
|
||||
+if [ -x "/sbin/weak-modules" ]; then
|
||||
+ printf '%s\n' "\${modules[@]}" \
|
||||
+ | /sbin/weak-modules --remove-modules
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
%global vendor %{?_vendor:%{_vendor}}%{!?_vendor:openEuler}
|
||||
%global vendor {os_name}
|
||||
%global rpmvdir /usr/lib/rpm/%{vendor}
|
||||
|
||||
Name: %{vendor}-rpm-config
|
||||
Version: 30
|
||||
Release: 38
|
||||
Version: 300
|
||||
Release: 42
|
||||
License: GPL+
|
||||
Summary: specific rpm configuration files
|
||||
URL: https://gitee.com/openeuler/openEuler-rpm-config
|
||||
@ -31,6 +31,9 @@ Patch17: Feature-support-EBS-sign-for-IMA-digest-list.patch
|
||||
Patch18: fix-brp-ldconfig-riscv-default-library-directory.patch
|
||||
Patch19: check-if-the-file-is-a-symbolic-link-in-brp-digest-list.patch
|
||||
Patch20: fix-the-ELF-file-cannot-be-found-due-to-escape-of.patch
|
||||
Patch21: add-powerpc64le-and-ppc64le-support.patch
|
||||
Patch22: Delete-the-commented-code.patch
|
||||
Patch23: add-riscv64-to-some-arches-macro.patch
|
||||
|
||||
Provides: python-rpm-macros = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
Provides: python2-rpm-macros = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
@ -138,6 +141,18 @@ sed -i "s/__vendor/%{vendor}/g" `grep "__vendor" -rl %{buildroot}%{_rpmconfigdir
|
||||
%{rpmvdir}/find-requires.ksyms
|
||||
|
||||
%changelog
|
||||
* Tue May 07 2024 laokz <zhangkai@iscas.ac.cn> - 30-42
|
||||
- add riscv64 to some arches macro
|
||||
|
||||
* Mon Apr 29 2024 xujing <xujing125@huawei.com> - 30-41
|
||||
- don't delete the commented code in macros
|
||||
|
||||
* Tue Mar 5 2024 hongjinghao <hongjinghao@huawei.com> - 30-40
|
||||
- Delete the commented code
|
||||
|
||||
* Thu Feb 22 2024 peng.zou <peng.zou@shingroup.cn> - 30-39
|
||||
- add powerpc64le and ppc64le support
|
||||
|
||||
* Tue Nov 21 2023 xujing <xujing125@huawei.com> - 30-38
|
||||
- add the scanning path of the rpath
|
||||
fix the ELF file cannot be found due to escape of '\'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user