-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompile_armv7a.sh
executable file
·24 lines (19 loc) · 1.04 KB
/
compile_armv7a.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# Crosscompilation for ARM
# TN, 2015
# Jump to the script's dir
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
cd ${DIR}
# Source toolchain for cross compilation
if [ -f "/usr/local/beeeon-i686/environment-setup-armv7a-vfp-neon-oe-linux-gnueabi" ]; then
. /usr/local/beeeon-i686/environment-setup-armv7a-vfp-neon-oe-linux-gnueabi
elif [ -f "/usr/beeeon-i686-armv7a-vfp-neon-toolchain-0.9.3+99rc1/environment-setup-armv7a-vfp-neon-oe-linux-gnueabi" ]; then
. /usr/beeeon-i686-armv7a-vfp-neon-toolchain-0.9.3+99rc1/environment-setup-armv7a-vfp-neon-oe-linux-gnueabi
elif [ -f "/usr/local/beeeon-i686-armv7a-vfp-neon-toolchain-0.9.3+99rc1/environment-setup-armv7a-vfp-neon-oe-linux-gnueabi" ]; then
. /usr/local/beeeon-i686-armv7a-vfp-neon-toolchain-0.9.3+99rc1/environment-setup-armv7a-vfp-neon-oe-linux-gnueabi
fi
# -D LEDS_ENABLED
export BUILD_DIR=build_armv7a
export INSTALL_DIR=install_armv7a
export CMAKE_ARGS="-DCMAKE_TOOLCHAIN_FILE=$OECORE_NATIVE_SYSROOT/usr/share/cmake/OEToolchainConfig.cmake"
/bin/bash compile_common.sh.inc $@