Whamcloud - gitweb
LU-2752 build: Enhance build for cross compilation for MIC
authorDmitry Eremin <dmitry.eremin@intel.com>
Wed, 13 Mar 2013 13:40:47 +0000 (17:40 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 7 May 2013 16:57:02 +0000 (12:57 -0400)
commita0a72a9f47f85250cdbfdf4ef2e760425bd013ac
tree8188c3bc770540f24e634bf0602c890ce679cb47
parent79dc75a42bfee3cfd7e9fca080a1d605001f432a
LU-2752 build: Enhance build for cross compilation for MIC

Enhance lustre build for cross compilation for the Intel(R) Xeon
Phi(TM) card. In addition to standard build the GNU cross
toolchain for the Intel(R) Xeon Phi(TM) can be used to produce
client binaries for the Intel(R) Xeon Phi(TM) card. To enable
this just specify appropriate --host and --build option for
./configure.

For example, to produce Lustre client binaries for Intel(R) Xeon
Phi(TM) card just execute the following commands:

NOTE: You should have "intel-mic-gpl-<version>.x86_64" package
installed and MIC GPL sources unpacked in /opt/intel/mic/src.

export PATH=/usr/linux-k1om-4.7/bin:$PATH

sh ./autogen.sh

./configure --with-linux=/opt/intel/mic/src/card/kernel \
    --disable-server --without-o2ib \
    --host=x86_64-k1om-linux --build=x86_64-pc-linux

make

Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Change-Id: I4347c65f67bd836116532989c2132457f5eee934
Reviewed-on: http://review.whamcloud.com/5273
Tested-by: Hudson
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
autoMakefile.am
config/lustre-build-linux.m4
config/lustre-build.m4
libcfs/libcfs/autoMakefile.am
libcfs/libcfs/linux/linux-crypto.c
libcfs/libcfs/user-crypto.c
libsysio/configure.in
lnet/utils/Makefile.am
lnet/utils/genlib.sh
lustre/liblustre/Makefile.am
lustre/liblustre/genlib.sh