Skip to content
Snippets Groups Projects
Commit 30d0a1bd authored by Yang Sheng's avatar Yang Sheng
Browse files

Branch b1_6

b=16220
i=yibin.wang, sheng.yang

Fixed for OFED-1.3.1 build on LBATS doesn't get right path.
parent c21ba6e1
No related branches found
No related tags found
No related merge requests found
...@@ -1276,10 +1276,15 @@ build_kernel_ib() ...@@ -1276,10 +1276,15 @@ build_kernel_ib()
configure_options="--with-ipath_inf-mod --with-ehca-mod" configure_options="--with-ipath_inf-mod --with-ehca-mod"
;; ;;
esac esac
local K_SRC="K_SRC"
# ofed 1.3 had a bug in the rpm spec
if [ "$OFED_VERSION" = "1.3" ]; then
K_SRC="KSRC"
fi
$RPMBUILD --rebuild --define 'build_kernel_ib 1' --define 'build_kernel_ib_devel 1' \ $RPMBUILD --rebuild --define 'build_kernel_ib 1' --define 'build_kernel_ib_devel 1' \
--define "_topdir ${TOPDIR}" --target ${TARGET_ARCH} \ --define "_topdir ${TOPDIR}" --target ${TARGET_ARCH} \
--define "KVERSION ${LINUXRELEASE}" \ --define "KVERSION ${LINUXRELEASE}" \
--define "KSRC ${LINUXOBJ:-${LINUX}}" \ --define "$K_SRC ${LINUXOBJ:-${LINUX}}" \
--define "LIB_MOD_DIR /lib/modules/${LINUXRELEASE}/updates" \ --define "LIB_MOD_DIR /lib/modules/${LINUXRELEASE}/updates" \
--define "configure_options --without-quilt --with-core-mod --with-user_mad-mod --with-user_access-mod --with-addr_trans-mod --with-srp-target-mod --with-core-mod --with-mthca-mod --with-mlx4-mod --with-cxgb3-mod --with-nes-mod --with-ipoib-mod --with-sdp-mod --with-srp-mod --without-srp-target-mod --with-rds-mod --with-iser-mod --with-qlgc_vnic-mod --with-madeye-mod $configure_options" ${TOPDIR}/OFED/SRPMS/ofa_kernel-${OFED_VERSION}-ofed${OFED_VERSION}.src.rpm --define "configure_options --without-quilt --with-core-mod --with-user_mad-mod --with-user_access-mod --with-addr_trans-mod --with-srp-target-mod --with-core-mod --with-mthca-mod --with-mlx4-mod --with-cxgb3-mod --with-nes-mod --with-ipoib-mod --with-sdp-mod --with-srp-mod --without-srp-target-mod --with-rds-mod --with-iser-mod --with-qlgc_vnic-mod --with-madeye-mod $configure_options" ${TOPDIR}/OFED/SRPMS/ofa_kernel-${OFED_VERSION}-ofed${OFED_VERSION}.src.rpm
......
...@@ -511,10 +511,15 @@ build_kernel_ib() ...@@ -511,10 +511,15 @@ build_kernel_ib()
configure_options="--with-ipath_inf-mod --with-ehca-mod" configure_options="--with-ipath_inf-mod --with-ehca-mod"
;; ;;
esac esac
local K_SRC="K_SRC"
# ofed 1.3 had a bug in the rpm spec
if [ "$OFED_VERSION" = "1.3" ]; then
K_SRC="KSRC"
fi
$RPMBUILD --rebuild --define 'build_kernel_ib 1' --define 'build_kernel_ib_devel 1' \ $RPMBUILD --rebuild --define 'build_kernel_ib 1' --define 'build_kernel_ib_devel 1' \
--define "_topdir $(lbuild_topdir)" --target ${TARGET_ARCH} \ --define "_topdir $(lbuild_topdir)" --target ${TARGET_ARCH} \
--define "KVERSION ${FULL_VERSION}" \ --define "KVERSION ${FULL_VERSION}" \
--define "KSRC $PWD/linux" \ --define "$K_SRC ${LINUXOBJ:-${LINUX}}" \
--define "LIB_MOD_DIR /lib/modules/${FULL_VERSION}" \ --define "LIB_MOD_DIR /lib/modules/${FULL_VERSION}" \
--define "configure_options --without-quilt --with-core-mod --with-user_mad-mod --with-user_access-mod --with-addr_trans-mod --with-srp-target-mod --with-core-mod --with-mthca-mod --with-mlx4-mod --with-cxgb3-mod --with-nes-mod --with-ipoib-mod --with-sdp-mod --with-srp-mod --without-srp-target-mod --with-rds-mod --with-iser-mod --with-qlgc_vnic-mod --with-madeye-mod $configure_options" $(lbuild_topdir)/OFED/SRPMS/ofa_kernel-${OFED_VERSION}-ofed${OFED_VERSION}.src.rpm --define "configure_options --without-quilt --with-core-mod --with-user_mad-mod --with-user_access-mod --with-addr_trans-mod --with-srp-target-mod --with-core-mod --with-mthca-mod --with-mlx4-mod --with-cxgb3-mod --with-nes-mod --with-ipoib-mod --with-sdp-mod --with-srp-mod --without-srp-target-mod --with-rds-mod --with-iser-mod --with-qlgc_vnic-mod --with-madeye-mod $configure_options" $(lbuild_topdir)/OFED/SRPMS/ofa_kernel-${OFED_VERSION}-ofed${OFED_VERSION}.src.rpm
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment