Displaying 1 result from an estimated 1 matches for "flavors_to_build".
2019 Apr 12
2
rpmbuild how to know we are building kernel module package
...on}-%{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/$flavor
make -C %{kernel_source $flavor} M=$PWD/obj/$flavor
done
%install
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
export INSTALL_MOD_DIR=extra/%{name}
for flavor in %flavors_to_build ; do
make -C %{kernel_source $flavor} modules_install \
M=$PWD/obj/$f...