From 290861e7bc398eb437d72d3f456e7f0b2fea5bfc Mon Sep 17 00:00:00 2001 From: Xinliang Liu Date: Fri, 17 Mar 2023 02:19:38 +0000 Subject: [PATCH] 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 --- backport-kmp-feature.patch | 27 ++++++++++++--------------- openEuler-rpm-config.spec | 5 ++++- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/backport-kmp-feature.patch b/backport-kmp-feature.patch index 1f4625c..a80029d 100644 --- a/backport-kmp-feature.patch +++ b/backport-kmp-feature.patch @@ -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 -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 +Signed-off-by: Xinliang Liu --- - 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 < - 30-36 +- Fix kmod rpm install failed. + * Sat Jan 14 2023 luhuaxin - 30-35 - support EBS sign -- Gitee