Displaying 2 results from an estimated 2 matches for "kernel_module_packag".
Did you mean:
kernel_module_package
2019 Apr 12
2
rpmbuild how to know we are building kernel module package
...river Update Program package
Group: System/Kernel
License: GPLv2
URL: http://www.lsilogic.com
Distribution: LSI Corporation
Source0: %{name}-%{version}.tar.bz2
Source1: %{name}.files
Source2: %{name}.conf
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: %kernel_module_package_buildreqs
%global kernel_version `uname -r`
%kernel_module_package -f %{SOURCE1} default
%description
LSI MPT Fusion HBA drivers (12gb SAS)
%prep
%setup
set -- *
mkdir source
mv "$@" source/
mkdir obj
%build
for flavor in %flavors_to_build; do
rm -rf obj/$flavor
cp -r source obj/...
2019 Apr 12
0
rpmbuild how to know we are building kernel module package
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.