[CentOS-docs] Request for edit permission on HowTos/BuildingKernelModules

Zamir SUN

sztsian at gmail.com
Tue Jan 15 08:22:04 UTC 2019


Hi CentOS Docs team,

I am writing to request for updating the wiki page
HowTos/BuildingKernelModules[1]

Basically, the page need some love for more recent CentOS releases -
in CentOS 7 if people use the in-distro /usr/lib/rpm/redhat/kmodtool
the following command won't work

rpmbuild -bb --target=`uname -m` --define 'kversion 3.10.0-862.el7'
testkmod.spec

Instead, people should use something like

rpmbuild -bb --target=`uname -m` --define 'kernel_version
3.10.0-862.el7' testkmod.spec

In my case

# rpmspec --define "kernel_version 3.10.0-957.el7" -P ~/testkmod.spec
| grep "BuildRequire"
warning: Macro %kmp_release defined but not used within scope
warning: Macro %kmp_version defined but not used within scope
warning: Macro %latest_kernel defined but not used within scope
BuildRequires: kernel-devel
BuildRequires: kernel-devel-x86_64 = 3.10.0-957.el7

So I want to get this mentioned in case of confusion, either by myself
or some maintainer of the page.

My wiki username is ZamirSUN. And my email address for the wiki is
just this one.

Thanks.
[1] https://wiki.centos.org/HowTos/BuildingKernelModules

--
Zamir SUN
GPG : 1D86 6D4A 49CE 4BBD 72CF FCF5 D856 6E11 F2A0 525E


More information about the CentOS-docs mailing list