summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2010-08-16 18:15:33 -0700
committerRoland McGrath <roland@redhat.com>2010-08-16 18:15:33 -0700
commit9b36e5826d93168b49603eebe9bec690634c589a (patch)
treefdad4c779cc1f27611d54e4db1088c43cb118a53
parent996221cf499a99bfe772d44dc073198c2aa925ca (diff)
downloadkernel-9b36e5826d93168b49603eebe9bec690634c589a.tar.gz
kernel-9b36e5826d93168b49603eebe9bec690634c589a.tar.xz
kernel-9b36e5826d93168b49603eebe9bec690634c589a.zip
Make build ID lossage break the build.
-rw-r--r--kernel.spec5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel.spec b/kernel.spec
index fbf839f3a..b76873e4d 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -1477,11 +1477,14 @@ BuildKernel() {
# Copy .config to include/config/auto.conf so "make prepare" is unnecessary.
cp $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/.config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include/config/auto.conf
+%if %{fancy_debuginfo}
if test -s vmlinux.id; then
cp vmlinux.id $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/vmlinux.id
else
- echo >&2 "*** WARNING *** no vmlinux build ID! ***"
+ echo >&2 "*** ERROR *** no vmlinux build ID! ***"
+ exit 1
fi
+%endif
#
# save the vmlinux file for kernel debugging into the kernel-debuginfo rpm