Displaying 1 result from an estimated 1 matches for "this_weakupd".
2019 Apr 12
2
rpmbuild how to know we are building kernel module package
...t INSTALL_MOD_DIR=extra/%{name}
for flavor in %flavors_to_build ; do
make -C %{kernel_source $flavor} modules_install \
M=$PWD/obj/$flavor
# Cleanup unnecessary kernel-generated module dependency files.
find $INSTALL_MOD_PATH/lib/modules -iname 'modules.*' -exec rm {} \;
done
sed -e s/this_weakupdate/`uname -r | cut -f1 -d-`/ \
../../SOURCES/mpt3sas.conf > \
../../SOURCES/mpt3sas.a
mv ../../SOURCES/mpt3sas.a ../../SOURCES/mpt3sas.conf
install -m 644 -D %{SOURCE2} $RPM_BUILD_ROOT/etc/depmod.d/%{name}.conf
install -m 644 -D %{SOURCE2} $RPM_BUILD_ROOT/etc/modules-load.d/%{name}.conf
%clean...