Files
mpp/build/linux/aarch64/make-Makefiles.bash
sliver.chen 552e2db07f [cmake]: linux aarch should define HAVE_DRM ON by default.
Just like in the android arm/aarch directory.

Change-Id: I27fd97835c92e23e0422cfdcd381c540b9af8fd9
Signed-off-by: sliver.chen <sliver.chen@rock-chips.com>
2018-02-08 09:20:09 +08:00

30 lines
557 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 aarch64-linux-gnu-gcc -v
}
check_system_arm_linux_gcc
if [ $? -eq 127 ];then
MPP_TOOLCHAIN=/usr/bin
export PATH=$PATH:${MPP_TOOLCHAIN}
fi
# generate Makefile
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_TOOLCHAIN_FILE=./arm.linux.cross.cmake \
-DRKPLATFORM=ON \
-DHAVE_DRM=ON \
-G "Unix Makefiles" \
${MPP_TOP}