Contents |
Cross Compilation for SAFplus
Making your own tool chain
- Download a toolchain for target at http://www.mentor.com/embedded-software/codesourcery (prefer).
- Making your own toolchain by yourself with a tools to generate cross-compilation toolchain:
- Create toolchain configuration file config.mk.
- This file is included in the cross build makefile. If your toolchain tarball does not include this file, please create it manually. Basically, the file contains the following configuration variables:
::ARCH=i386 ::MACH=i686 ::TARGET=i686-unknown-linux-gnu ::TOOLCHAIN_VERSION=0.1 ::export ARCH MACH TARGET TOOLCHAIN_VERSION
Making prerequisite SAPlus 3rdparty libraries for your toolchain
- Export your configuration tool chain
- $source <location of toolchain>/config.mk
- Goto <SAFplus SDK dir>/src/SAFplus/3rdparty/base:
- $make PREFIX=<path to locate thirdparty libraries>
Prefer using the location of toolchain.