summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliang yongxiang <[email protected]>2018-07-23 10:33:09 +0800
committerliang yongxiang <[email protected]>2018-07-23 10:33:09 +0800
commit08a2e7629adab2a28547e7bd101149412f46f879 (patch)
treea5b8a73b9dff97371a634b43682fe9f704bcea11
parentcd5ccea44caad1fdf0e09559874655c27ee93d87 (diff)
[bsp][ck802] clean up
-rw-r--r--bsp/ck802/SConstruct10
-rw-r--r--bsp/ck802/rtconfig.py2
2 files changed, 5 insertions, 7 deletions
diff --git a/bsp/ck802/SConstruct b/bsp/ck802/SConstruct
index 1a9f0b7616..6c54a5b595 100644
--- a/bsp/ck802/SConstruct
+++ b/bsp/ck802/SConstruct
@@ -2,12 +2,10 @@ import os
import sys
import rtconfig
-# if os.getenv('RTT_ROOT'):
- # RTT_ROOT = os.getenv('RTT_ROOT')
-# else:
-RTT_ROOT = os.path.normpath(os.getcwd() + '/../..')
-
-print RTT_ROOT
+if os.getenv('RTT_ROOT'):
+ RTT_ROOT = os.getenv('RTT_ROOT')
+else:
+ RTT_ROOT = os.path.normpath(os.getcwd() + '/../..')
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
from building import *
diff --git a/bsp/ck802/rtconfig.py b/bsp/ck802/rtconfig.py
index 2c46a92894..2332c3c315 100644
--- a/bsp/ck802/rtconfig.py
+++ b/bsp/ck802/rtconfig.py
@@ -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 = ''