mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 02:58:26 +08:00
improve for raspberrypi
This commit is contained in:
parent
9b165b0d52
commit
f81bb0dddc
@ -2,8 +2,15 @@ import os
|
||||
import os.path
|
||||
import platform
|
||||
import shutil
|
||||
|
||||
from shutil import copyfile
|
||||
|
||||
import subprocess
|
||||
|
||||
def is_raspberrypi():
|
||||
result = str(subprocess.check_output(["uname", "-a"]))
|
||||
return result.find('Linux raspberrypi') >= 0
|
||||
|
||||
#######################################################
|
||||
# XXX: This file can be edited only in tkc project
|
||||
#######################################################
|
||||
@ -110,6 +117,10 @@ elif OS_NAME == 'Linux':
|
||||
OS_FLAGS = OS_FLAGS + ' -DWITH_64BIT_CPU '
|
||||
|
||||
OS_LINKFLAGS = ' -Wl,-rpath=./bin -Wl,-rpath=./ '
|
||||
if is_raspberrypi():
|
||||
OS_FLAGS = OS_FLAGS + ' -DRASPBERRYPI '
|
||||
os.environ['RASPBERRYPI'] = 'true'
|
||||
|
||||
|
||||
elif OS_NAME == 'Windows':
|
||||
if not os.path.exists(os.path.abspath(TK_BIN_DIR)):
|
||||
|
Loading…
Reference in New Issue
Block a user