!123 Fix kmod rpm install failed

From: @xin3liang 
Reviewed-by: @openeuler-basic 
Signed-off-by: @openeuler-basic
This commit is contained in:
openeuler-ci-bot 2023-03-17 07:29:15 +00:00 committed by Gitee
commit 5a4967ad1b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 16 additions and 16 deletions

View File

@ -1,22 +1,24 @@
From 22a24809ad1192a89b9d1c795dc3b7c313488f64 Mon Sep 17 00:00:00 2001
From 3e65c85831be0b8f8e1cd43869b4991a76e14d9b Mon Sep 17 00:00:00 2001
From: Yang Yanchao <yangyanchao6@huawei.com>
Date: Wed, 7 Dec 2022 11:34:39 +0800
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 | 292 ++++++++++++++++++++++++++++++++++++++++++++++++++++
kmodtool | 287 ++++++++++++++++++++++++++++++++++++++++++++++++++++
kmodtool.py | 83 ---------------
macros.kmp | 85 +++++++++++----
3 files changed, 355 insertions(+), 105 deletions(-)
macros.kmp | 85 ++++++++++++----
3 files changed, 350 insertions(+), 105 deletions(-)
create mode 100644 kmodtool
delete mode 100644 kmodtool.py
diff --git a/kmodtool b/kmodtool
new file mode 100644
index 0000000..c3217e6
index 0000000..427d1df
--- /dev/null
+++ b/kmodtool
@@ -0,0 +1,292 @@
@@ -0,0 +1,287 @@
+#!/usr/bin/bash
+
+# kmodtool - Helper script for building kernel module RPMs
@ -133,10 +135,6 @@ index 0000000..c3217e6
+ echo "Release: %{kmp_release}"
+ fi
+
+ if [ ! -z "$kmp" ]; then
+ echo "%global _use_internal_dependency_generator 0"
+ fi
+
+ cat <<EOF
+Provides: kernel-modules = ${verrel}${variant}
+Provides: ${kmod_name}-kmod = %{?epoch:%{epoch}:}%{version}-%{release}
@ -152,8 +150,8 @@ index 0000000..c3217e6
+#
+
+ cat <<EOF
+Requires(post): /sbin/depmod
+Requires(postun): /sbin/depmod
+Requires(post): /usr/sbin/depmod
+Requires(postun): /usr/sbin/depmod
+EOF
+
+#if [ "no" != "$kmp_nobuildreqs" ]
@ -212,7 +210,6 @@ index 0000000..c3217e6
+then
+ echo "%defattr(644,root,root,755)"
+ echo "/lib/modules/${verrel}${variant}/"
+ echo "/lib/firmware/"
+else
+ cat "$kmp_override_filelist" | get_filelist
+fi
@ -399,7 +396,7 @@ index 75492b9..0000000
- exit()
-
diff --git a/macros.kmp b/macros.kmp
index d46aa04..78c2a57 100644
index d46aa04..8440e26 100644
--- a/macros.kmp
+++ b/macros.kmp
@@ -1,22 +1,63 @@

View File

@ -3,7 +3,7 @@
Name: %{vendor}-rpm-config
Version: 30
Release: 35
Release: 36
License: GPL+
Summary: specific rpm configuration files
URL: https://gitee.com/openeuler/openEuler-rpm-config
@ -135,6 +135,9 @@ sed -i "s/__vendor/%{vendor}/g" `grep "__vendor" -rl %{buildroot}%{_rpmconfigdir
%{rpmvdir}/find-requires.ksyms
%changelog
* Fri Mar 17 2023 Xinliang Liu <xinliang.liu@linaro.org> - 30-36
- Fix kmod rpm install failed.
* Sat Jan 14 2023 luhuaxin <luhuaxin1@huawei.com> - 30-35
- support EBS sign