X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=build%2Flbuild-sles10;h=9ca55fe5f46fcf36e9f2d76f1a7c0a30a5487c1d;hb=fd0bd149e66cbc06a17c372e159f9bfba024cc97;hp=6330d1cf32133b58516d99736e770a9ea9cd7946;hpb=e14d4dd61348297f1627c65073a2d908e54977a3;p=fs%2Flustre-release.git diff --git a/build/lbuild-sles10 b/build/lbuild-sles10 index 6330d1c..9ca55fe 100644 --- a/build/lbuild-sles10 +++ b/build/lbuild-sles10 @@ -1,10 +1,9 @@ # vim:expandtab:shiftwidth=4:softtabstop=4:tabstop=4: # increment this if you have made a change that should force a new kernel -# to build built -#BUILD_GEN=1 -#BUILD_GEN=2 # bz19952: remove -lustre tag from kernel RPM names -BUILD_GEN=3 # bz19975 enable the building of src.rpms by default +# to build built for 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" source ${0%/*}/lbuild-sles @@ -227,11 +226,11 @@ build_ofed-sles10() { # temporary hack until we get a base O/S intalled ofed-devel local arch=$TARGET_ARCH if [ -n "$OFED_VERSION" -a "$OFED_VERSION" = "inkernel" ]; then - local ofed_devel="${OFED_DEVEL_LOCATION}/ofed-devel-${OFED_DEVEL_VERSION}.$(resolve_arch $TARGET_ARCH $PATCHLESS).rpm" + local ofed_devel="${OFED_DEVEL_LOCATION}/ofed-devel-${OFED_DEVEL_VERSION}.$(resolve_arch $TARGET_ARCH "$PATCHLESS || ! $REBUILD_OFED_DEVEL_RPM").rpm" if ! rpm2cpio < $ofed_devel | cpio -id; then fatal 1 "could not unpack the ofed-devel rpm." fi - echo "$(pwd)/usr/src/kernel-modules-ofed/$(resolve_arch $TARGET_ARCH $PATCHLESS)/$RPMSMPTYPE" + echo "$(pwd)/usr/src/kernel-modules-ofed/$(resolve_arch $TARGET_ARCH "$PATCHLESS || ! $REBUILD_OFED_DEVEL_RPM")/$RPMSMPTYPE" fi return 0