X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=contrib%2Flbuild%2Flbuild-sles10;h=2d3a04ff0fa01e85158e6c696d499c8558d932b3;hb=eac0b9c27f79d0b4d52a282e9613e9e7fd6cff21;hp=aeaa948a4cd2615b7efcbbff3b7d11917eb37afe;hpb=25c93758d6b1136d268fe3fcc1c4979c17463c0b;p=fs%2Flustre-release.git diff --git a/contrib/lbuild/lbuild-sles10 b/contrib/lbuild/lbuild-sles10 index aeaa948..2d3a04f 100644 --- a/contrib/lbuild/lbuild-sles10 +++ b/contrib/lbuild/lbuild-sles10 @@ -7,6 +7,13 @@ BUILD_GEN+=".0" 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-..rpm OFED_DEVEL_LOCATION="$KERNELTREE" @@ -169,11 +176,11 @@ EOF 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 $targets \ + --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