summaryrefslogtreecommitdiff
path: root/py/waf/defaults/bsp/sparc64.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/waf/defaults/bsp/sparc64.py')
-rw-r--r--py/waf/defaults/bsp/sparc64.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/py/waf/defaults/bsp/sparc64.py b/py/waf/defaults/bsp/sparc64.py
new file mode 100644
index 0000000000..73003200fb
--- /dev/null
+++ b/py/waf/defaults/bsp/sparc64.py
@@ -0,0 +1,27 @@
+from rtems_waf.config import Default, Config
+
+class Base(Config):
+ arch = name = "sparc64"
+ conflicts=("clang",)
+
+ def build(self, c):
+ c.LINKCMDS = ['src/lib/libbsp/sparc64/shared/startup/linkcmds']
+ c.LINK_START = ['${RTEMS}/start.o', 'crtbegin.o', '-e', '_start']
+ c.LINK_END = ['crtend.o']
+
+
+class niagara(Base):
+ name = "sparc64/niagara"
+
+ def build(self, c):
+ c.CFLAGS = ['-mcpu=niagara', '-DSUN4V']
+
+
+class usiii(Base):
+ name = "sparc64/usiii"
+
+ def build(self, c):
+ c.CFLAGS = ['-mcpu=ultrasparc3', '-DUS3', '-DSUN4U']
+
+ def header(self, c):
+ c.SIMSPARC_FAST_IDLE = Default