summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-10-13 15:37:26 +0800
committerGitHub <[email protected]>2021-10-13 15:37:26 +0800
commit98404184b1d84da5464f00c04d1ca92fe2216261 (patch)
treed2e2dee37a62b9018e412cb3a182a214cb639fc8 /bsp
parent0211f2fcc191f37a7a3eb54aadfbbc9d226d15f0 (diff)
parent791ec329261bc544694f116f947cd1e0b21aef48 (diff)
Merge pull request #5128 from liukangcc/action
[update] add riscv toolchain for ci.
Diffstat (limited to 'bsp')
-rw-r--r--bsp/bluetrum/ab32vg1-ab-prougen/rtconfig.py8
-rw-r--r--bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/SConscript4
-rw-r--r--bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/libhal.abin0 -> 37598 bytes
3 files changed, 8 insertions, 4 deletions
diff --git a/bsp/bluetrum/ab32vg1-ab-prougen/rtconfig.py b/bsp/bluetrum/ab32vg1-ab-prougen/rtconfig.py
index 394d5dcace..960df9ffea 100644
--- a/bsp/bluetrum/ab32vg1-ab-prougen/rtconfig.py
+++ b/bsp/bluetrum/ab32vg1-ab-prougen/rtconfig.py
@@ -1,4 +1,6 @@
import os
+import platform
+
# toolchains options
ARCH ='risc-v'
@@ -55,8 +57,10 @@ if PLATFORM == 'gcc':
DUMP_ACTION = OBJDUMP + ' -D -S $TARGET > rtt.asm\n'
POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
-POST_ACTION += './riscv32-elf-xmaker -b rtthread.xm\n'
-POST_ACTION += './riscv32-elf-xmaker -b download.xm\n'
+
+if "Windows" in platform.platform():
+ POST_ACTION += './riscv32-elf-xmaker -b rtthread.xm\n'
+ POST_ACTION += './riscv32-elf-xmaker -b download.xm\n'
def dist_handle(BSP_ROOT, dist_dir):
import sys
diff --git a/bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/SConscript b/bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/SConscript
index 3321a76d91..e30f216093 100644
--- a/bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/SConscript
+++ b/bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/SConscript
@@ -48,8 +48,8 @@ ASFLAGS = ""
CPPDEFINES = []
LOCAL_CPPDEFINES = []
-LIBS = []
-LIBPATH = []
+LIBS = ['hal']
+LIBPATH = [CWD]
LINKFLAGS = ""
diff --git a/bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/libhal.a b/bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/libhal.a
new file mode 100644
index 0000000000..fbd9652b21
--- /dev/null
+++ b/bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/libhal.a
Binary files differ