summaryrefslogtreecommitdiff
path: root/bsp/rockchip/common/HalSConscript
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/rockchip/common/HalSConscript')
-rw-r--r--bsp/rockchip/common/HalSConscript24
1 files changed, 24 insertions, 0 deletions
diff --git a/bsp/rockchip/common/HalSConscript b/bsp/rockchip/common/HalSConscript
new file mode 100644
index 0000000000..c49baa1dbf
--- /dev/null
+++ b/bsp/rockchip/common/HalSConscript
@@ -0,0 +1,24 @@
+import rtconfig
+Import('RTT_ROOT')
+Import('SOC')
+from building import *
+
+# get current directory
+cwd = GetCurrentDir()
+hal_lib = cwd + '/rk_hal/lib'
+
+# The set of source files associated with this SConscript file.
+src = Glob(hal_lib + '/CMSIS/Device/' + SOC + '/Source/*.c')
+src += Glob(hal_lib + '/hal/src/*.c')
+src += Glob(hal_lib + '/hal/src/*/*.c')
+src += Glob(hal_lib + '/bsp/' + SOC + '/*.c')
+
+#add include path
+path = [hal_lib + '/hal/inc',
+ hal_lib + '/bsp/' + SOC,
+ hal_lib + '/CMSIS/Device/' + SOC + '/Include',
+ hal_lib + '/CMSIS/Core/Include']
+
+group = DefineGroup(SOC + '_StdPeriph', src, depend = [''], CPPPATH = path)
+
+Return('group')