Whamcloud - gitweb
LU-12561 ldiskfs: Remove unused 2.6.x patches
[fs/lustre-release.git] / contrib / lbuild / lbuild-sles10
index aeaa948..003ec28 100644 (file)
@@ -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-<version>.<arch>.rpm
 OFED_DEVEL_LOCATION="$KERNELTREE"
 
@@ -165,15 +172,11 @@ EOF
         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