Make depmod call fatal if it errors or warns
This commit is contained in:
parent
94ce4eca27
commit
069d85652e
14
kernel.spec
14
kernel.spec
@ -34,7 +34,7 @@ Summary: The Linux kernel
|
||||
# For non-released -rc kernels, this will be appended after the rcX and
|
||||
# gitX tags, so a 3 here would become part of release "0.rcX.gitX.3"
|
||||
#
|
||||
%global baserelease 9
|
||||
%global baserelease 10
|
||||
%global fedora_build %{baserelease}
|
||||
|
||||
# base_sublevel is the kernel version we're starting with and patching
|
||||
@ -1650,7 +1650,14 @@ BuildKernel() {
|
||||
rm filter-*.sh
|
||||
|
||||
# Run depmod on the resulting module tree and make sure it isn't broken
|
||||
depmod -b . -aeF ./System.map $KernelVer
|
||||
depmod -b . -aeF ./System.map $KernelVer &> depmod.out
|
||||
if [ -s depmod.out ]; then
|
||||
echo "Depmod failure"
|
||||
cat depmod.out
|
||||
exit 1
|
||||
else
|
||||
rm depmod.out
|
||||
fi
|
||||
# remove files that will be auto generated by depmod at rpm -i time
|
||||
pushd $RPM_BUILD_ROOT/lib/modules/$KernelVer/
|
||||
rm -f modules.{alias*,builtin.bin,dep*,*map,symbols*,devname,softdep}
|
||||
@ -2180,6 +2187,9 @@ fi
|
||||
# ||----w |
|
||||
# || ||
|
||||
%changelog
|
||||
* Tue Apr 29 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc3.git1.10
|
||||
- Make depmod call fatal if it errors or warns
|
||||
|
||||
* Tue Apr 29 2014 Josh Boyer <jwboyer@fedoraproject.org>
|
||||
- Introduce kernel-core/kernel-drivers split for F21 Feature work
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user