summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriysheng <[email protected]>2021-03-19 09:54:10 +0800
committeriysheng <[email protected]>2021-03-23 09:53:54 +0800
commit074ca904a428f29e3dd5dd032b2056f5e2e97766 (patch)
tree39ee5b8921dea4cbdec02ee5e322f402e54eb211
parent7e275bdc109577055a65f35d1d23a65c2741e37b (diff)
[bsp][ab32vg1] Fix sizeof(time_t) no match with this chip
-rw-r--r--bsp/bluetrum/ab32vg1-ab-prougen/rtconfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsp/bluetrum/ab32vg1-ab-prougen/rtconfig.py b/bsp/bluetrum/ab32vg1-ab-prougen/rtconfig.py
index b70a0dc654..0642f6429a 100644
--- a/bsp/bluetrum/ab32vg1-ab-prougen/rtconfig.py
+++ b/bsp/bluetrum/ab32vg1-ab-prougen/rtconfig.py
@@ -41,7 +41,7 @@ if PLATFORM == 'gcc':
# DEVICE = ' -mcmodel=medany -march=rv32imc -mabi=ilp32 -fsingle-precision-constant'
DEVICE = ' -mcmodel=medany -march=rv32imc -mabi=ilp32'
# CFLAGS = DEVICE + ' -fno-common -ffunction-sections -fdata-sections -fstrict-volatile-bitfields'
- CFLAGS = DEVICE
+ CFLAGS = DEVICE + ' -D_USE_LONG_TIME_T'
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
LFLAGS = DEVICE + ' -nostartfiles -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,_start -T link.lds'
CPATH = ''