summaryrefslogtreecommitdiff
path: root/bsp/synopsys/embarc/SConscript
diff options
context:
space:
mode:
authorWayne Ren <[email protected]>2019-01-23 17:29:54 +0800
committerWayne Ren <[email protected]>2019-01-25 10:29:34 +0800
commitd8aa99a29c47da520986dcd79fff9861d97ca6ed (patch)
tree95eecc243f5e9cab42869e33501643783ed69ba6 /bsp/synopsys/embarc/SConscript
parent99bef01983d9e74e6a261df0ff0feadc41e8e8ad (diff)
[bsp][synopsys] add the support of synopsys arc emsk
* the initial support of synopsys designware arc processor * the initial support of synospsy ARC EM Starter Kit * the bsp code is based on embarc which is a common SDK for all synopsys ARC-based boards * use "scons --gdb" to debug emsk with em9d configuration * for detailed board information, pls go embarc.org Signed-off-by: Wayne Ren <[email protected]>
Diffstat (limited to 'bsp/synopsys/embarc/SConscript')
-rw-r--r--bsp/synopsys/embarc/SConscript28
1 files changed, 28 insertions, 0 deletions
diff --git a/bsp/synopsys/embarc/SConscript b/bsp/synopsys/embarc/SConscript
new file mode 100644
index 0000000000..9e086739af
--- /dev/null
+++ b/bsp/synopsys/embarc/SConscript
@@ -0,0 +1,28 @@
+from building import *
+
+cwd = GetCurrentDir()
+
+embarc_arc_hal_SRCS = Split("""
+arc/arc_cache.c
+arc/arc_exc_asm.S
+arc/arc_exception.c
+arc/arc_timer.c
+arc/startup/arc_cxx_support.c
+arc/startup/arc_startup.S
+device/designware/uart/dw_uart.c
+device/designware/gpio/dw_gpio.c
+""")
+
+
+ASFLAGS = ' -I' + cwd
+
+src = embarc_arc_hal_SRCS
+
+path = [cwd,
+ cwd + '/arc',
+ cwd + '/arc/startup'
+ ]
+
+group = DefineGroup('embarc', src, depend = [], CPPPATH = path, ASFLAGS = ASFLAGS)
+
+Return('group')