Files
mpp/build/linux/arm/make-Makefiles.bash
Herman Chen d3ccbde5b1 [cmake]: add toolchain detection for rk1108
Also add codec options

Change-Id: I14b159f6deedb3e325f9500d0c3060fac321e31a
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2016-09-13 15:10:31 +08:00

29 lines
574 B
Bash
Executable File

#!/bin/bash
# Run this from within a bash shell
set +e
MPP_PWD=`pwd`
MPP_TOP=${MPP_PWD}/../../..
# toolchain detection
check_cmd(){
"$@" >> /dev/null 2>&1
}
check_system_arm_linux_gcc(){
check_cmd arm-linux-gcc -v
}
check_system_arm_linux_gcc
if [ $? -eq 127 ];then
MPP_TOOLCHAIN=${MPP_TOP}/../prebuilts/toolschain/usr/bin
export PATH=$PATH:${MPP_TOOLCHAIN}
fi
# generate Makefile
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_TOOLCHAIN_FILE=./arm.linux.cross.cmake \
-DCMAKE_RKPLATFORM_ENABLE=ON \
-G "Unix Makefiles" \
${MPP_TOP}