You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
464 B
25 lines
464 B
#!/bin/bash |
|
set -e |
|
|
|
TARGET_SOC="rk356x" |
|
|
|
# for aarch64 |
|
GCC_COMPILER=aarch64-linux-gnu |
|
|
|
ROOT_PWD=$( cd "$( dirname $0 )" && cd -P "$( dirname "$SOURCE" )" && pwd ) |
|
|
|
# build |
|
BUILD_DIR=${ROOT_PWD}/build/build_linux_aarch64 |
|
|
|
if [[ ! -d "${BUILD_DIR}" ]]; then |
|
mkdir -p ${BUILD_DIR} |
|
fi |
|
|
|
cd ${BUILD_DIR} |
|
cmake ../.. \ |
|
-DTARGET_SOC=${TARGET_SOC} \ |
|
-DCMAKE_C_COMPILER=${GCC_COMPILER}-gcc \ |
|
-DCMAKE_CXX_COMPILER=${GCC_COMPILER}-g++ |
|
make -j4 |
|
make install |
|
cd -
|
|
|