mirror of
				https://github.com/nyanmisaka/mpp.git
				synced 2025-10-31 20:42:53 +08:00 
			
		
		
		
	 1766466864
			
		
	
	1766466864
	
	
	
		
			
			Change-Id: I73b2d2e9ed11c5aef8c773323b2ab8c5f08b0dc3 Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
		
			
				
	
	
		
			31 lines
		
	
	
		
			582 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			582 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
 | |
| }
 | |
| 
 | |
| source ../opt_proc.sh
 | |
| 
 | |
| 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 \
 | |
|       -DHAVE_DRM=ON \
 | |
|       -G "Unix Makefiles" \
 | |
|       ${MPP_TOP}
 |