[bsp][ck802] clean up
This commit is contained in:
parent
cd5ccea44c
commit
08a2e7629a
|
@ -2,13 +2,11 @@ import os
|
|||
import sys
|
||||
import rtconfig
|
||||
|
||||
# if os.getenv('RTT_ROOT'):
|
||||
# RTT_ROOT = os.getenv('RTT_ROOT')
|
||||
# else:
|
||||
if os.getenv('RTT_ROOT'):
|
||||
RTT_ROOT = os.getenv('RTT_ROOT')
|
||||
else:
|
||||
RTT_ROOT = os.path.normpath(os.getcwd() + '/../..')
|
||||
|
||||
print RTT_ROOT
|
||||
|
||||
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
|
||||
from building import *
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ if PLATFORM == 'gcc':
|
|||
DEVICE = ' -mcpu=ck802'
|
||||
|
||||
CFLAGS = DEVICE + ' -DCONFIG_CPU_CK802 -c -g -ffunction-sections -Wall -mistack -mlittle-endian'
|
||||
AFLAGS = ' -c' + DEVICE + ' -EL -x assembler-with-cpp -save-temps=ojb'
|
||||
AFLAGS = ' -c' + DEVICE + ' -EL -x assembler-with-cpp'
|
||||
LFLAGS = DEVICE + ' -EL -Wl,--gc-sections,-Map=rtthread_ck802.map,-cref,-u,Reset_Handler -T gcc_csky.ld'
|
||||
CPATH = ''
|
||||
LPATH = ''
|
||||
|
|
Loading…
Reference in New Issue