我正在尝试为 openSUSE Leap 15.2 构建 RPM 包,因为我需要一些特殊的驱动程序,这些驱动程序未实现(或未向后移植)到 Kernel v5.3
。克隆了Linus Torvalds 的 GitHub 内核存储库。导入的openSUSE配置没有太多错误v5.17
。一些不需要的驱动程序和不支持的模块支持。我修复了这个问题并且内核源代码的编译工作成功了。
但是当我尝试使用已编译的内核模块构建 RPM 包时...
$ make binrpm-pkg
...我遇到很多这样的错误...
error: cannot determine ksym provides of /home/krj/rpmbuild/BUILDROOT/kernel-5.17.0_150300.59.54_preempt-1.x86_64/lib/modules/5.17.0-150300.59.54-preempt/kernel/drivers/hid/hid-u2fzero.ko - missing ksym-provides tool.
error: cannot determine ksym provides of /home/krj/rpmbuild/BUILDROOT/kernel-5.17.0_150300.59.54_preempt-1.x86_64/lib/modules/5.17.0-150300.59.54-preempt/kernel/drivers/hid/hid-uclogic.ko - missing ksym-provides tool.
error: cannot determine ksym provides of /home/krj/rpmbuild/BUILDROOT/kernel-5.17.0_150300.59.54_preempt-1.x86_64/lib/modules/5.17.0-150300.59.54-preempt/kernel/drivers/hid/hid-udraw-ps3.ko - missing ksym-provides tool.
error: cannot determine ksym provides of /home/krj/rpmbuild/BUILDROOT/kernel-5.17.0_150300.59.54_preempt-1.x86_64/lib/modules/5.17.0-150300.59.54-preempt/kernel/drivers/hid/hid-viewsonic.ko - missing ksym-provides tool.
error: cannot determine ksym provides of /home/krj/rpmbuild/BUILDROOT/kernel-5.17.0_150300.59.54_preempt-1.x86_64/lib/modules/5.17.0-150300.59.54-preempt/kernel/drivers/hid/hid-waltop.ko - missing ksym-provides tool.
error: cannot determine ksym provides of /home/krj/rpmbuild/BUILDROOT/kernel-5.17.0_150300.59.54_preempt-1.x86_64/lib/modules/5.17.0-150300.59.54-preempt/kernel/drivers/hid/hid-wiimote.ko - missing ksym-provides tool.
error: cannot determine ksym provides of /home/krj/rpmbuild/BUILDROOT/kernel-5.17.0_150300.59.54_preempt-1.x86_64/lib/modules/5.17.0-150300.59.54-preempt/kernel/drivers/hid/hid-xinmo.ko - missing ksym-provides tool.
error: cannot determine ksym provides of /home/krj/rpmbuild/BUILDROOT/kernel-5.17.0_150300.59.54_preempt-1.x86_64/lib/modules/5.17.0-150300.59.54-preempt/kernel/drivers/hid/hid-zpff.ko - missing ksym-provides tool.
我在 openSUSE 包管理器中搜索该工具ksym-provides
,但没有找到。 openSUSE 是否需要此步骤,或者我可以忽略这些错误吗?
答案1
前段时间我也遇到过同样的问题,但最近我发现该命令可以工作并生成一个可以工作的 rpm 包。到目前为止,我使用的是 openSUSE Leap 15.3。测试的Linux版本是5.19的drm-tip分支。