Changes

Jump to navigation Jump to search
753 bytes added ,  13:17, 12 July 2017
no edit summary
Line 1: Line 1:  +
== Install the toolchain ==
 +
 
If you are cross compiling for ARM, use distribution packages or download prebuilt toolchains from Linaro.
 
If you are cross compiling for ARM, use distribution packages or download prebuilt toolchains from Linaro.
   Line 10: Line 12:  
  tar --strip=1 -C `uname -m`-linux-gnu -xf gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux.tar.xz
 
  tar --strip=1 -C `uname -m`-linux-gnu -xf gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux.tar.xz
 
  cd ..
 
  cd ..
 +
</pre>
 +
 +
== Build ==
 +
 +
=== ARMv7 ===
 +
<pre>
 +
cd deps
 +
rsync -a --exclude=.git --exclude=deps .. criu-arm
 +
cd criu-arm
 +
make \
 +
  ARCH=arm \
 +
  CROSS_COMPILE=`pwd`/../`uname -m`-linux-gnu/bin/arm-linux-gnueabihf- \
 +
  USERCFLAGS="-I`pwd`/../arm-linux-gnueabihf/include -L`pwd`/../arm-linux-gnueabihf/lib" \
 +
  PATH="`pwd`/../`uname -m`-linux-gnu/bin:$PATH"
 +
cd ../..
 +
</pre>
 +
 +
=== ARMv8 ===
 +
<pre>
 +
  cd deps
 +
  rsync -a --exclude=.git --exclude=deps .. criu-aarch64
 +
  cd criu-aarch64
 +
  make \
 +
  ARCH=aarch64 \
 +
  CROSS_COMPILE=`pwd`/../`uname -m`-linux-gnu/bin/aarch64-linux-gnu- \
 +
  USERCFLAGS="-I`pwd`/../aarch64-linux-gnu/include -L`pwd`/../aarch64-linux-gnu/lib" \
 +
  PATH="`pwd`/../`uname -m`-linux-gnu/bin:$PATH"
 +
  cd ../..
 
</pre>
 
</pre>
    
[[Category: Building]]
 
[[Category: Building]]

Navigation menu