> On Apr 12, 2019, at 11:12 PM, Gordon Messmer <gordon.messmer@xxxxxxxxx> 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@xxxxxxxxxx > https://lists.centos.org/mailman/listinfo/centos _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx https://lists.centos.org/mailman/listinfo/centos