Changes

325 bytes added ,  15:59, 10 October 2014
Line 92: Line 92:  
Here is an example of building natively specifying manually built dependencies.
 
Here is an example of building natively specifying manually built dependencies.
    +
cd deps
 +
rsync -a --exclude=.git --exclude=deps .. criu-`uname -m`
 +
cd criu-`uname -m`
 
  make \
 
  make \
   USERCFLAGS="-I`pwd`/deps/`uname -m`-linux-gnu/include -L`pwd`/deps/`uname -m`-linux-gnu/lib" \
+
   USERCFLAGS="-I`pwd`/../`uname -m`-linux-gnu/include -L`pwd`/../`uname -m`-linux-gnu/lib" \
   PATH="`pwd`/deps/`uname -m`-linux-gnu/bin:$PATH"
+
   PATH="`pwd`/../`uname -m`-linux-gnu/bin:$PATH"
 +
sudo LD_LIBRARY_PATH=`pwd`/../`uname -m`-linux-gnu/lib ./criu check
 +
cd ../..
    
=== Cross Compilation for ARMv7 ===
 
=== Cross Compilation for ARMv7 ===
    +
cd deps
 +
rsync -a --exclude=.git --exclude=deps .. criu-arm
 +
cd criu-arm
 
  make \
 
  make \
 
   ARCH=arm \
 
   ARCH=arm \
   CROSS_COMPILE=`pwd`/deps/bin/arm-linux-gnueabihf- \
+
   CROSS_COMPILE=`pwd`/../bin/arm-linux-gnueabihf- \
   USERCFLAGS="-I`pwd`/deps/arm-linux-gnueabihf/include -L`pwd`/deps/arm-linux-gnueabihf/lib" \
+
   USERCFLAGS="-I`pwd`/../arm-linux-gnueabihf/include -L`pwd`/../arm-linux-gnueabihf/lib" \
   PATH="`pwd`/deps/`uname -m`-linux-gnu/bin:$PATH"
+
   PATH="`pwd`/../`uname -m`-linux-gnu/bin:$PATH"
 +
cd ../..
    
=== Cross Compilation for ARMv8 ===
 
=== Cross Compilation for ARMv8 ===
    +
  cd deps
 +
  rsync -a --exclude=.git --exclude=deps .. criu-aarch64
 +
  cd criu-aarch64
 
   make \
 
   make \
 
   ARCH=aarch64 \
 
   ARCH=aarch64 \
   CROSS_COMPILE=`pwd`/deps/bin/aarch64-linux-gnu- \
+
   CROSS_COMPILE=`pwd`/../bin/aarch64-linux-gnu- \
   USERCFLAGS="-I`pwd`/deps/aarch64-linux-gnu/include -L`pwd`/deps/aarch64-linux-gnu/lib" \
+
   USERCFLAGS="-I`pwd`/../aarch64-linux-gnu/include -L`pwd`/../aarch64-linux-gnu/lib" \
   PATH="`pwd`/deps/`uname -m`-linux-gnu/bin:$PATH"
+
   PATH="`pwd`/../`uname -m`-linux-gnu/bin:$PATH"
 +
  cd ../..
    
=== Linux Kernel ===
 
=== Linux Kernel ===
50

edits