[CentOS] rpmbuild how to know we are building kernel module package

Sat Apr 13 01:55:59 UTC 2019
wuzhouhui <wuzhouhui14 at mails.ucas.ac.cn>

> On Apr 12, 2019, at 11:12 PM, Gordon Messmer <gordon.messmer at gmail.com> wrote:
> 
> On 4/12/19 7:04 AM, wuzhouhui wrote:
>> So my question is rpmbuild how to know he is building kernel module package?
>> Based on which condition?
> 
> 
> I believe the %kernel_module_package macro defined in /usr/lib/rpm/redhat/macros is used to invoke /usr/lib/rpm/redhat/kmodtool, which provides some overrides.

I checked these macros and files, and I think you are right, although I haven't verify it.

Thanks.
> 
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos