On Thu, Jan 17, 2019 at 8:23 AM Akemi Yagi <amyagi at gmail.com> wrote: > > On Tue, Jan 15, 2019 at 12:22 AM Zamir SUN <sztsian at gmail.com> wrote: > > > > 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 > > You should be able to edit the wiki page requested. Please let us know > if you find any issue. > > Thanks for your contribution. > Thanks for the help. I just added the note for CentOS 7 there. And also fixed the dead reference link on that page. https://wiki.centos.org/HowTos/BuildingKernelModules?action=diff > Akemi > _______________________________________________ > CentOS-docs mailing list > CentOS-docs at centos.org > https://lists.centos.org/mailman/listinfo/centos-docs