MOFED assume that kernel-source is in the
standard place /usr/src but lbuild is using
different directory
Change-Id: I236659baf344cb3b3dcb62840c576c55febc1523
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/26045
Tested-by: Jenkins
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
# increment this if you have made a change that should force a new kernel
# to build built
# increment this if you have made a change that should force a new kernel
# to build built
-BUILD_GEN+=".1" #LU-3337 add missing build files for sles11sp2 server
+BUILD_GEN+=".2" #LU-3337 add missing build files for sles11sp2 server
DEVEL_KERNEL_TYPE="default-devel"
RPM_HELPERS_DIR="/usr/lib/rpm"
DEVEL_KERNEL_TYPE="default-devel"
RPM_HELPERS_DIR="/usr/lib/rpm"
# symlink the linux-obj to linux-version-obj
ln -s $linuxobjpath $LINUXOBJ
# symlink the linux-obj to linux-version-obj
ln -s $linuxobjpath $LINUXOBJ
+ # We need to copy the headers from the source to the object tree for
+ # MOFED to be able to compile (a bug in ofed?)
+ if [ -e ${LINUX}/include ] && [ -e ${LINUXOBJ}/include ]; then
+ cp -rf ${LINUX}/include ${LINUXOBJ}
+ fi
# We modify %kernel_module_package macro to use the linux obj
# that lbuild install, not the OS installed /usr/src
sed -i -e "/^%kernel_module_package/,/^)}$/d" \
# We modify %kernel_module_package macro to use the linux obj
# that lbuild install, not the OS installed /usr/src
sed -i -e "/^%kernel_module_package/,/^)}$/d" \