summaryrefslogtreecommitdiff
path: root/bsp/hifive1/rtconfig.py
diff options
context:
space:
mode:
authorguozhanxin <[email protected]>2018-09-30 18:07:02 +0800
committerguozhanxin <[email protected]>2018-09-30 18:07:07 +0800
commit23e92786f3f5a2757da9f45fc479d96351baa18f (patch)
tree7fa6315c72420cce39b949ac3db5ea7191fe62d0 /bsp/hifive1/rtconfig.py
parentbce268c8cec8ccb037a9a5f31a783aea9cde0443 (diff)
[bsp] hifive1 update: default select debug mode and update debug flags
Diffstat (limited to 'bsp/hifive1/rtconfig.py')
-rw-r--r--bsp/hifive1/rtconfig.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/bsp/hifive1/rtconfig.py b/bsp/hifive1/rtconfig.py
index 231a1ef858..a339f34064 100644
--- a/bsp/hifive1/rtconfig.py
+++ b/bsp/hifive1/rtconfig.py
@@ -16,8 +16,8 @@ if CROSS_TOOL == 'gcc':
if os.getenv('RTT_EXEC_PATH'):
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
-#BUILD = 'debug'
-BUILD = 'release'
+BUILD = 'debug'
+#BUILD = 'release'
CORE = 'risc-v'
MAP_FILE = 'rtthread.map'
@@ -37,7 +37,7 @@ if PLATFORM == 'gcc':
OBJDUMP = PREFIX + 'objdump'
OBJCPY = PREFIX + 'objcopy'
- DEVICE = ' -march=rv32imac -mabi=ilp32 -DUSE_PLIC -DUSE_M_TIME -DNO_INIT -mcmodel=medany -msmall-data-limit=8 -g -L. -nostartfiles -lc '
+ DEVICE = ' -march=rv32imac -mabi=ilp32 -DUSE_PLIC -DUSE_M_TIME -DNO_INIT -mcmodel=medany -msmall-data-limit=8 -L. -nostartfiles -lc '
CFLAGS = DEVICE
CFLAGS += ' -save-temps=obj'
AFLAGS = '-c'+ DEVICE + ' -x assembler-with-cpp'
@@ -51,8 +51,8 @@ if PLATFORM == 'gcc':
LPATH = ''
if BUILD == 'debug':
- CFLAGS += ' -O0 -gdwarf-2'
- AFLAGS += ' -gdwarf-2'
+ CFLAGS += ' -O0 -g3'
+ AFLAGS += ' -g3'
else:
CFLAGS += ' -O2'