X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=build%2Flbuild;h=0c05cfdddb5b966aac90482ed8c163c29763f8ea;hp=20ed08bb677f16fc161a9096a563226014abb333;hb=c66d8316766c3b35032d6bee7113a74cd690105c;hpb=8fd9914d125989b924fc6c0e1d50dfd193a73438 diff --git a/build/lbuild b/build/lbuild index 20ed08b..0c05cfd 100755 --- a/build/lbuild +++ b/build/lbuild @@ -27,7 +27,8 @@ push_exit_trap "kill -INT -$$ || true" kill_children #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 -BUILD_GEN=4 # bz22281: use the git hash in the kernel extra version +#BUILD_GEN=4 # bz22281: use the git hash in the kernel extra version +BUILD_GEN=5 # TT-107: don't cache the BUILD dir TOPDIR=$PWD @@ -75,6 +76,8 @@ DISTRO= KERNELTREE= # default to not adding -lustre- into the kernel RPM package names KERNEL_LUSTRE_NAMING=false +# default not use kabi check. +USE_KABI=false # patchless build KERNELRPMSBASE= @@ -528,7 +531,12 @@ download_ofed() { return 0 fi - local location="http://www.openfabrics.org/downloads/OFED/ofed-${OFED_VERSION}/" + local OFED_BASE_VERSION=$OFED_VERSION + if [[ $OFED_VERSION = *.*.*.* ]]; then + OFED_BASE_VERSION=${OFED_VERSION%.*} + fi + + local location="http://www.openfabrics.org/downloads/OFED/ofed-${OFED_BASE_VERSION}/" if [[ $OFED_VERSION = daily-* ]]; then local Mmv daily @@ -1231,7 +1239,7 @@ build_kernel_with_srpm() { "$REUSE_SIGNATURE"; then # nothing cached, build from scratch if [ ! -r "$KERNELDIR/$KERNEL_SRPM" ]; then - echo "Downloading kernel SRPM" + echo "Downloading kernel SRPM" >&${outfd} download_srpm "$CANONICAL_TARGET" "$KERNEL_SRPM" >&${outfd} fi @@ -1252,11 +1260,11 @@ build_kernel_with_srpm() { else # store the resulting kernel RPM build tree for future use echo "Storing the built kernel for future reuse" >&${outfd} - if ! store_for_reuse "$TOPDIR/{SPECS,SOURCES,BUILD,SRPMS,RPMS}" \ + if ! store_for_reuse "$TOPDIR/{SPECS,SOURCES,SRPMS,RPMS}" \ "kernel" "$REUSEBUILD" "$REUSE_SIGNATURE" \ "$CAN_LINK_FOR_REUSE"; then error "Failed to store kernel RPMS for reuse" - echo "unknown" + echo "unknown" >&${outfd} return 1 fi fi