Fix kmod rpm install failed
Fix kmod rpm install failed which built via macro kernel_module_package. Remove "%global _use_internal_dependency_generator 0" to workaround below install dependency error, because current kernel rpm doesn't provide kernel symbols. "nothing provides kernel(xx) .. needed by kmod-.." See issue: https://gitee.com/src-openeuler/openEuler-rpm-config/issues/I6NR1U Use path "/usr/sbin/depmod" instead of "/sbin/depmod" to fix install error: "nothing provides /sbin/depmod needed by kmod-xx". Remove "echo "/lib/firmware/"" to fix below build error: "error: Directory not found: /xx/BUILDROOT/xxx/lib/firmware" Signed-off-by: Xinliang Liu <xinliang.liu@linaro.org>
This commit is contained in:
parent
c068c88fee
commit
290861e7bc
@ -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>
|
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
|
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 ---------------
|
kmodtool.py | 83 ---------------
|
||||||
macros.kmp | 85 +++++++++++----
|
macros.kmp | 85 ++++++++++++----
|
||||||
3 files changed, 355 insertions(+), 105 deletions(-)
|
3 files changed, 350 insertions(+), 105 deletions(-)
|
||||||
create mode 100644 kmodtool
|
create mode 100644 kmodtool
|
||||||
delete mode 100644 kmodtool.py
|
delete mode 100644 kmodtool.py
|
||||||
|
|
||||||
diff --git a/kmodtool b/kmodtool
|
diff --git a/kmodtool b/kmodtool
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000..c3217e6
|
index 0000000..427d1df
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/kmodtool
|
+++ b/kmodtool
|
||||||
@@ -0,0 +1,292 @@
|
@@ -0,0 +1,287 @@
|
||||||
+#!/usr/bin/bash
|
+#!/usr/bin/bash
|
||||||
+
|
+
|
||||||
+# kmodtool - Helper script for building kernel module RPMs
|
+# kmodtool - Helper script for building kernel module RPMs
|
||||||
@ -133,10 +135,6 @@ index 0000000..c3217e6
|
|||||||
+ echo "Release: %{kmp_release}"
|
+ echo "Release: %{kmp_release}"
|
||||||
+ fi
|
+ fi
|
||||||
+
|
+
|
||||||
+ if [ ! -z "$kmp" ]; then
|
|
||||||
+ echo "%global _use_internal_dependency_generator 0"
|
|
||||||
+ fi
|
|
||||||
+
|
|
||||||
+ cat <<EOF
|
+ cat <<EOF
|
||||||
+Provides: kernel-modules = ${verrel}${variant}
|
+Provides: kernel-modules = ${verrel}${variant}
|
||||||
+Provides: ${kmod_name}-kmod = %{?epoch:%{epoch}:}%{version}-%{release}
|
+Provides: ${kmod_name}-kmod = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
@ -152,8 +150,8 @@ index 0000000..c3217e6
|
|||||||
+#
|
+#
|
||||||
+
|
+
|
||||||
+ cat <<EOF
|
+ cat <<EOF
|
||||||
+Requires(post): /sbin/depmod
|
+Requires(post): /usr/sbin/depmod
|
||||||
+Requires(postun): /sbin/depmod
|
+Requires(postun): /usr/sbin/depmod
|
||||||
+EOF
|
+EOF
|
||||||
+
|
+
|
||||||
+#if [ "no" != "$kmp_nobuildreqs" ]
|
+#if [ "no" != "$kmp_nobuildreqs" ]
|
||||||
@ -212,7 +210,6 @@ index 0000000..c3217e6
|
|||||||
+then
|
+then
|
||||||
+ echo "%defattr(644,root,root,755)"
|
+ echo "%defattr(644,root,root,755)"
|
||||||
+ echo "/lib/modules/${verrel}${variant}/"
|
+ echo "/lib/modules/${verrel}${variant}/"
|
||||||
+ echo "/lib/firmware/"
|
|
||||||
+else
|
+else
|
||||||
+ cat "$kmp_override_filelist" | get_filelist
|
+ cat "$kmp_override_filelist" | get_filelist
|
||||||
+fi
|
+fi
|
||||||
@ -399,7 +396,7 @@ index 75492b9..0000000
|
|||||||
- exit()
|
- exit()
|
||||||
-
|
-
|
||||||
diff --git a/macros.kmp b/macros.kmp
|
diff --git a/macros.kmp b/macros.kmp
|
||||||
index d46aa04..78c2a57 100644
|
index d46aa04..8440e26 100644
|
||||||
--- a/macros.kmp
|
--- a/macros.kmp
|
||||||
+++ b/macros.kmp
|
+++ b/macros.kmp
|
||||||
@@ -1,22 +1,63 @@
|
@@ -1,22 +1,63 @@
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: %{vendor}-rpm-config
|
Name: %{vendor}-rpm-config
|
||||||
Version: 30
|
Version: 30
|
||||||
Release: 35
|
Release: 36
|
||||||
License: GPL+
|
License: GPL+
|
||||||
Summary: specific rpm configuration files
|
Summary: specific rpm configuration files
|
||||||
URL: https://gitee.com/openeuler/openEuler-rpm-config
|
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
|
%{rpmvdir}/find-requires.ksyms
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sat Jan 14 2023 luhuaxin <luhuaxin1@huawei.com> - 30-35
|
||||||
- support EBS sign
|
- support EBS sign
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user