source ${LBUILD_DIR}/lbuild-sles
+kernel_srpm_location() {
+
+ local PLEV=$(sed -n -e 's/^PATCHLEVEL = //p' /etc/SuSE-release)
+ echo "https://nu.novell.com/repo/\$RCE/SLES11-SP${PLEV}-Updates/sle-11-$(resolve_arch $TARGET_ARCH)/rpm/src/"
+
+}
+
# the location of the ofed-devel-<version>.<arch>.rpm
OFED_DEVEL_LOCATION="$KERNELTREE"
echo "%description -n %{-n*}%{!-n:%name}-kmp-_dummy_" \
)}
EOF
- local targets
- for arch in $BUILD_ARCHS; do
- targets="--target $(resolve_arch $arch $PATCHLESS) $targets"
- done
- if ! $RPMBUILD --rebuild --nodeps $targets \
- --define "symsetsdir ${TOPDIR}/reused/boot" \
- --define "kobjdir ${LINUXOBJ%/*/*}" \
- --define "_tmppath /var/tmp" \
- --define "_topdir ${TOPDIR}" \
+ if ! rpmbuild --rebuild --nodeps --target ${TARGET_ARCH} \
+ --define "symsetsdir ${TOPDIR}/reused/boot" \
+ --define "kobjdir ${LINUXOBJ%/*/*}" \
+ --define "_tmppath /var/tmp" \
+ --define "_topdir ${TOPDIR}" \
${SOURCE} 2>&1; then
rm ~/.rpmmacros
if [ -n "$tmpfile" ]; then