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.