summaryrefslogtreecommitdiff
path: root/bsp/gd32350r-eval/Libraries/SConscript
diff options
context:
space:
mode:
authorsszlbg <[email protected]>2021-07-25 17:00:00 +0800
committersszlbg <[email protected]>2021-07-25 17:00:00 +0800
commitbf88963a3ec85ce6da013e4cd1c59ec5041d29e1 (patch)
treed4cd7d4fa3ff6e7b0c859a7660209787f47d168b /bsp/gd32350r-eval/Libraries/SConscript
parent88d4faf68735948d6310e2d2271d576c5de254a0 (diff)
parent2b201cbb00c512def085332d7fb09194656418b9 (diff)
Merge branch 'master' into at_client-rt_realloc_iss
# Conflicts: # components/net/at/src/at_client.c
Diffstat (limited to 'bsp/gd32350r-eval/Libraries/SConscript')
-rw-r--r--bsp/gd32350r-eval/Libraries/SConscript33
1 files changed, 33 insertions, 0 deletions
diff --git a/bsp/gd32350r-eval/Libraries/SConscript b/bsp/gd32350r-eval/Libraries/SConscript
new file mode 100644
index 0000000000..dad0c6c89e
--- /dev/null
+++ b/bsp/gd32350r-eval/Libraries/SConscript
@@ -0,0 +1,33 @@
+import rtconfig
+from building import *
+
+# get current directory
+cwd = GetCurrentDir()
+
+# The set of source files associated with this SConscript file.
+
+src = Glob('GD32F3x0_standard_peripheral/Source/*.c')
+src += [cwd + '/CMSIS/GD/GD32F3x0/Source/system_gd32f3x0.c']
+
+#add for startup script
+if rtconfig.CROSS_TOOL == 'gcc':
+ src += [cwd + '/CMSIS/GD/GD32F3x0/Source/GCC/startup_gd32f3x0.S']
+elif rtconfig.CROSS_TOOL == 'keil':
+ src += [cwd + '/CMSIS/GD/GD32F3x0/Source/ARM/startup_gd32f3x0.s']
+elif rtconfig.CROSS_TOOL == 'iar':
+ src += [cwd + '/CMSIS/GD/GD32F3x0/Source/IAR/startup_gd32f3x0.s']
+
+path = [
+ cwd + '/CMSIS/GD/GD32F3x0/Include',
+ cwd + '/CMSIS',
+ cwd + '/GD32F3x0_standard_peripheral/Include',]
+
+if GetDepend(['RT_USING_BSP_USB']):
+ path += [cwd + '/GD32F4xx_usb_driver/Include']
+ src += [cwd + '/GD32F4xx_usb_driver/Source']
+
+CPPDEFINES = ['USE_STDPERIPH_DRIVER', 'GD32F350']
+
+group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
+
+Return('group')