summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Mohr <manuel.mohr@kit.edu>2013-11-19 16:17:55 +0100
committerManuel Mohr <manuel.mohr@kit.edu>2013-11-19 16:17:55 +0100
commitaaf0fa97c55f2357838655afd2295c9ac89491a6 (patch)
treed8771469caa5d8eeba3e169c8647d8060fb6635a
parentc22f7a636a1c4bf09e560ddf8cb702090ba75c1c (diff)
Add support for *-invasic-irtss target.
-rw-r--r--Makefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 76ab0d0..cd9e7f6 100644
--- a/Makefile
+++ b/Makefile
@@ -65,7 +65,7 @@ ifeq ($(findstring linux, $(TARGET)), linux)
CPPFLAGS += -DGC_LINUX_THREADS -DPARALLEL_MARK -DTHREAD_LOCAL_ALLOC
EXTRA_OBJECTS = libatomic_ops/libatomic_ops.a
endif
-ifeq ($(findstring octopos, $(TARGET)), octopos)
+ifeq ($(findstring invasic, $(TARGET)), invasic)
SOURCES = $(COMMON_SOURCES) $(OCTOPOS_SOURCES)
endif
ifeq ($(findstring darwin, $(TARGET)), darwin)
@@ -75,23 +75,27 @@ endif
# Platform-specific stuff
OCTOPOS_RELEASE = current
-ifeq ($(TARGET), i686-invasic-octopos)
+ifeq ($(findstring invasic, $(TARGET)), invasic)
+ CFLAGS += -fno-stack-protector
+ CPPFLAGS += -nostdinc -Ulinux -U__linux -U__linux__ -U__gnu_linux__ -Uunix -U__unix -U__unix__ -D__OCTOPOS__
+endif
+
+ifeq ($(findstring i686-invasic, $(TARGET)), i686-invasic)
OCTOPOS_ARCH = x86guest
OCTOPOS_VARIANT = multitile
OCTOPOS_BASE = ../octopos-app/releases/$(OCTOPOS_RELEASE)/$(OCTOPOS_ARCH)/$(OCTOPOS_VARIANT)
GCC_INCLUDE = $(shell $(CC) --print-file-name=include)
- CFLAGS += -fno-stack-protector -mfpmath=sse -msse2 -m32
- CPPFLAGS += -nostdinc -Ulinux -U__linux -U__linux__ -U__gnu_linux__ -Uunix -U__unix -U__unix__ -I$(OCTOPOS_BASE)/include -D__OCTOPOS__ -isystem $(GCC_INCLUDE)
+ CFLAGS += -mfpmath=sse -msse2 -m32
+ CPPFLAGS += -I$(OCTOPOS_BASE)/include -isystem $(GCC_INCLUDE)
endif
-ifeq ($(TARGET), sparc-invasic-octopos)
+ifeq ($(findstring sparc-invasic, $(TARGET)), sparc-invasic)
OCTOPOS_ARCH = leon
- OCTOPOS_VARIANT = 4t-ml605
+ OCTOPOS_VARIANT = 4t-sf-chipit-w-iotile
OCTOPOS_BASE = ../octopos-app/releases/$(OCTOPOS_RELEASE)/$(OCTOPOS_ARCH)/$(OCTOPOS_VARIANT)
GCC_INCLUDE = $(shell $(CC) --print-file-name=include)
- CFLAGS += -fno-stack-protector
- CPPFLAGS += -nostdinc -D__leon__ -D__OCTOPOS__ -I $(OCTOPOS_BASE)/include -isystem $(GCC_INCLUDE)
+ CPPFLAGS += -D__leon__ -I $(OCTOPOS_BASE)/include -isystem $(GCC_INCLUDE)
EXTRA_OBJECTS = src/sparc_mach_dep.o
endif