Jump to: navigation, search


558 bytes added, 12:10, 26 July 2014
Building CRIU From Source
== Building CRIU From Source ==
=== Native Compilation ===
With the CRIU source obtained in the first step and dependencies satisfied in the second step, we are now compile CRIU. For native compilation with the dependencies met using distribution packages, simply run <code>make</code> in the CRIU source directory.
Here is an example of building natively specifying manually built dependencies.
make \ USERCFLAGS="-I`pwd`/deps/`uname -m`-linux-gnu/include -L`pwd`/deps/`uname -m`-linux-gnu/lib" \ PATH="`pwd`/deps/`uname -m`-linux-gnu/bin:$PATH"
Here is an example of cross compiling === Cross Compilation for armv7.ARMv7 ===
make \ ARCH=arm \ CROSS_COMPILE=`pwd`/deps/bin/arm-linux-gnueabihf- \ USERCFLAGS="-I`pwd`/deps/arm-linux-gnueabihf/include -L`pwd`/deps/arm-linux-gnueabihf/lib" \ PATH="`pwd`/deps/`uname -m`-linux-gnu/bin:$PATH" === Cross Compilation for ARMv8 ===  make \ ARCH=aarch64 \ CROSS_COMPILE=`pwd`/deps/bin/aarch64-linux-gnu- \ USERCFLAGS="-I`pwd`/deps/aarch64-linux-gnu/include -L`pwd`/deps/aarch64-linux-gnu/lib" \ PATH="`pwd`/deps/`uname -m`-linux-gnu/bin:$PATH"
=== Linux Kernel ===

Navigation menu