# to build built for all releases of this distribution (only -- if you want
# to force a kernel build on all distributions, update the BUILD_GEN variable
# in build/lbuild)
-#BUILD_GEN+=".0"
-#BUILD_GEN+=".1" # refactor both rhel5 and rhel6
-#BUILD_GEN+=".0" # TT-107: don't cache the BUILD dir (reset major to 5)
-BUILD_GEN+=".2" # LU-9850
+BUILD_GEN+=".2"
DEVEL_KERNEL_TYPE="devel"
RPM_HELPERS_DIR="/usr/lib/rpm/redhat"
return 1
fi
- # for informative purposes, display a diff between the .config that
- # was actually built and what we proposed as a .config
- echo "Diffs between $(basename $CONFIG_FILE) and the built kernel's .config:"
- local rpmname="$TOPDIR/RPMS/${TARGET_ARCH}/kernel-${lnxmaj}-${lnxrel}${buildid}.${TARGET_ARCH}.rpm"
- rpmcfg=$(rpm -qpl $rpmname | grep '/boot/config-')
- rpm2cpio $rpmname | cpio -id .$rpmcfg
- diff -u $CONFIG_FILE .$rpmcfg
- rm -rf .$rpmcfg
+ # for informative purposes, display a diff between the .config that
+ # was actually built and what we proposed as a .config
+ echo "Diffs between $(basename $CONFIG_FILE) and the built kernel's .config:"
+ local rpmname="$TOPDIR/RPMS/${TARGET_ARCH}/kernel-${lnxmaj}-${lnxrel//_*}${buildid}.${TARGET_ARCH}.rpm"
+ local srcrpmname="$TOPDIR/SRPMS/kernel-${lnxmaj}-${lnxrel//_*}${buildid}.src.rpm"
+ rpmcfg=$(rpm -qpl $rpmname | grep '/boot/config-')
- return 0
+ rpm2cpio $rpmname | cpio -id .$rpmcfg
+ diff -u $CONFIG_FILE .$rpmcfg
+ rm -rf .$rpmcfg
+
+ # now build kernel-abi-stablelists
+ if ! eval rpmbuild --rebuild --target noarch --without doc \
+ --define \"_topdir $TOPDIR\" \
+ ${buildid:+--define \"buildid $buildid\"} \
+ --define \"_tmppath $TMPDIR\" \
+ $srcrpmname 2>&1; then
+ return 1
+ fi
+
+ return 0
}