-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the cross-compiler-collection wiki!
Every time you need the toolchain, you enable it by running the follwing command:
$ cd (toolchain root dir) $ ./config
By running this script, the PATH variable will be modified, so that the compilers you need will be in the environment variable you need. If you may see, there may be two same named compilers, that's because with this SDK, you get a toolchain for x86_64 and arm64 host arch. So the script search automaticly, which compilers are available for your arch, and settes so the PATH variable.
Every time you open a new shell session, you must execute this step. For automate this step, you can just create a script like this above, set it executable and move it in /bin:
#/bin/bash -e
export WDIR=$(pwd) export TOOLCHAIN_DIR=/home/user/toolchain/cross-compiler-collection
cd $TOOLCHAIN_DIR ./config cd $WDIR
But note that the scipt MUST be executed in the repository directory, else it will not find the compilers!