From 52ee6089f53b93f5e699a21657613982a31a88b4 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 18 Jul 2020 23:59:34 +0000 Subject: [PATCH] Document how to cross-compile SCST git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9051 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- README.cross-compilation | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 README.cross-compilation diff --git a/README.cross-compilation b/README.cross-compilation new file mode 100644 index 000000000..9e6e4ca0f --- /dev/null +++ b/README.cross-compilation @@ -0,0 +1,24 @@ +Cross-compilation is the process of compiling code for one architecture (often +called the target) on a different system, usually called the host. +Cross-compilation of SCST is possible as follows: +1. Download the Linux kernel source code and also the SCST source code. +2. Install the appropriate cross-compiler, e.g. as follows: + + zypper install cross-arm-gcc9 + +3. Store the cross-compilation prefix and architecture names in the + CROSS_COMPILE and ARCH environment variables, e.g. as follows: + + export CROSS_COMPILE=/usr/bin/arm-suse-linux-gnueabi- + export ARCH=arm + +4. Build the Linux kernel. + + cd $HOME/software/linux-kernel + make + +5. Cross-compile SCST using any of the supported build methods. An example: + + export KDIR=$HOME/software/linux-kernel + cd scst.git + make rpm