This section describes additional details of the SCons build script used to compile the AP Bridge software.
TODO: describe that this is only necessary if you have custom paths
...
The get_TARGET_platform function specializes the configuration for a particular target platform. This may involve changing the compiler path and updating the compiler flags. The RPi 2 platform function contains several target-specific names that may need to be updated if you use a different cross-compiler.
Code Block |
---|
def get_raspi2_platform(env): 'Set architecture-specific flags for raspberry pi 2' # compiler location env['TOOLCHAIN_DIRCXX'] = "/tools/armpi-linux/arm-bcm2708'$toolchain_dir/gcc-linaro-arm-linux-gnueabihf-raspbian" env['CXX'] = '$TOOLCHAIN_DIR/bin/arm-linux-gnueabihf-g++' env['LINK'] = '$TOOLCHAIN_DIR$toolchain_dir/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++' ... # other variables are defined in this function to customize the build process for this target env['PLATFORM'] = 'armpi-linux' |
Note |
While the paths to the compiler or directories containing headers and libraries may need to be changed, there are other variable definitions that are required by the build steps. |
Manually overriding SConstruct variables
...