aboutsummaryrefslogtreecommitdiffstats
path: root/demos/SPC5
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-12-06 19:06:49 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-12-06 19:06:49 +0000
commit3a3232c736c3da06ccea9ca7a78fbece93974f9b (patch)
tree025578113c9ef1953111c3bda1fc1947ceb74ed6 /demos/SPC5
parent87099d56d43af7d756a3e77c229c9dc13a65d291 (diff)
downloadChibiOS-3a3232c736c3da06ccea9ca7a78fbece93974f9b.tar.gz
ChibiOS-3a3232c736c3da06ccea9ca7a78fbece93974f9b.tar.bz2
ChibiOS-3a3232c736c3da06ccea9ca7a78fbece93974f9b.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11123 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/SPC5')
-rw-r--r--demos/SPC5/RT-SPC56EC-EVB/Makefile_ghs71
-rw-r--r--demos/SPC5/RT-SPC56EC-EVB/Makefile_ht (renamed from demos/SPC5/RT-SPC56EC-EVB/Makefile)81
2 files changed, 70 insertions, 82 deletions
diff --git a/demos/SPC5/RT-SPC56EC-EVB/Makefile_ghs b/demos/SPC5/RT-SPC56EC-EVB/Makefile_ghs
index b1e3197e4..25c3fe317 100644
--- a/demos/SPC5/RT-SPC56EC-EVB/Makefile_ghs
+++ b/demos/SPC5/RT-SPC56EC-EVB/Makefile_ghs
@@ -82,6 +82,10 @@ PROJECT = ch
# Imported source files and paths
CHIBIOS = ../../..
+CONFDIR := .
+BUILDDIR := ./build-ghs
+DEPDIR := ./.dep-ghs
+
# Startup files.
include $(CHIBIOS)/os/common/startup/e200/compilers/GHS/mk/startup_spc56ecxx.mk
# HAL-OSAL files (optional).
@@ -103,35 +107,47 @@ include $(CHIBIOS)/os/various/shell/shell.mk
LDSCRIPT= $(STARTUPLD)/SPC56EC74.ld
# C sources here.
-CSRC = $(STARTUPSRC) \
- $(KERNSRC) \
- $(PORTSRC) \
- $(OSALSRC) \
- $(HALSRC) \
- $(PLATFORMSRC) \
- $(BOARDSRC) \
+CSRC = $(ALLCSRC) \
$(TESTSRC) \
- $(STREAMSSRC) \
- $(SHELLSRC) \
main.c
# C++ sources here.
-CPPSRC =
+CPPSRC = $(AllCPPSRC)
# List ASM source files here
-ASMSRC = $(STARTUPASM) $(PORTASM) $(OSALASM)
-ASMXSRC =
+ASMSRC = $(ALLASMSRC)
+ASMXSRC = $(ALLXASMSRC)
-INCDIR = $(CHIBIOS)/os/license \
- $(STARTUPINC) $(KERNINC) $(PORTINC) $(OSALINC) \
- $(HALINC) $(PLATFORMINC) $(BOARDINC) $(TESTINC) \
- $(STREAMSINC) $(SHELLINC)
+INCDIR = $(ALLINC) $(TESTINC) $(CONFDIR)
#
# Project, sources and paths
##############################################################################
##############################################################################
+# Start of user section
+#
+
+# List all user C define here, like -D_DEBUG=1
+UDEFS = -DSPC56ECXX_FMPLL_CLOCK_ERRATA_WORKAROUND=0
+
+# Define ASM defines here
+UADEFS =
+
+# List all user directories here
+UINCDIR =
+
+# List the user directory to look for the libraries here
+ULIBDIR =
+
+# List all user libraries here
+ULIBS =
+
+#
+# End of user defines
+##############################################################################
+
+##############################################################################
# Compiler settings
#
@@ -159,28 +175,5 @@ CPPWARN = -Wunknown-pragmas -Wimplicit-int -Wshadow -Wtrigraphs -Wundef
# Compiler settings
##############################################################################
-##############################################################################
-# Start of user section
-#
-
-# List all user C define here, like -D_DEBUG=1
-UDEFS = -DSPC56ECXX_FMPLL_CLOCK_ERRATA_WORKAROUND=0
-
-# Define ASM defines here
-UADEFS =
-
-# List all user directories here
-UINCDIR =
-
-# List the user directory to look for the libraries here
-ULIBDIR =
-
-# List all user libraries here
-ULIBS =
-
-#
-# End of user defines
-##############################################################################
-
RULESPATH = $(CHIBIOS)/os/common/startup/e200/compilers/GHS
include $(RULESPATH)/rules.mk
diff --git a/demos/SPC5/RT-SPC56EC-EVB/Makefile b/demos/SPC5/RT-SPC56EC-EVB/Makefile_ht
index 073423cd7..283ef153f 100644
--- a/demos/SPC5/RT-SPC56EC-EVB/Makefile
+++ b/demos/SPC5/RT-SPC56EC-EVB/Makefile_ht
@@ -82,6 +82,12 @@ PROJECT = ch
# Imported source files and paths
CHIBIOS = ../../..
+CONFDIR := .
+BUILDDIR := ./build-ht
+DEPDIR := ./.dep-ht
+
+# Licensing files.
+include $(CHIBIOS)/os/license/license.mk
# Startup files.
include $(CHIBIOS)/os/common/startup/e200/compilers/GCC/mk/startup_spc56ecxx.mk
# HAL-OSAL files (optional).
@@ -103,44 +109,56 @@ include $(CHIBIOS)/os/various/shell/shell.mk
LDSCRIPT= $(STARTUPLD)/SPC56EC74.ld
# C sources here.
-CSRC = $(STARTUPSRC) \
- $(KERNSRC) \
- $(PORTSRC) \
- $(OSALSRC) \
- $(HALSRC) \
- $(PLATFORMSRC) \
- $(BOARDSRC) \
+CSRC = $(ALLCSRC) \
$(TESTSRC) \
- $(STREAMSSRC) \
- $(SHELLSRC) \
main.c
# C++ sources here.
-CPPSRC =
+CPPSRC = $(AllCPPSRC)
# List ASM source files here
-ASMSRC =
-ASMXSRC = $(STARTUPASM) $(PORTASM) $(OSALASM)
+ASMSRC = $(ALLASMSRC)
+ASMXSRC = $(ALLXASMSRC)
-INCDIR = $(CHIBIOS)/os/license \
- $(STARTUPINC) $(KERNINC) $(PORTINC) $(OSALINC) \
- $(HALINC) $(PLATFORMINC) $(BOARDINC) $(TESTINC) \
- $(STREAMSINC) $(SHELLINC)
+INCDIR = $(ALLINC) $(TESTINC) $(CONFDIR)
#
# Project, sources and paths
##############################################################################
##############################################################################
+# Start of user section
+#
+
+# List all user C define here, like -D_DEBUG=1
+UDEFS = -DSPC56ECXX_FMPLL_CLOCK_ERRATA_WORKAROUND=0
+
+# Define ASM defines here
+UADEFS =
+
+# List all user directories here
+UINCDIR =
+
+# List the user directory to look for the libraries here
+ULIBDIR =
+
+# List all user libraries here
+ULIBS =
+
+#
+# End of user defines
+##############################################################################
+
+##############################################################################
# Compiler settings
#
-#MCU = e200zx -meabi -msdata=none -mnew-mnemonics -mregnames # HighTec
-MCU = e200z4 -meabi -msdata=none -mregnames # Free GCC
+MCU = e200zx -meabi -msdata=none -mnew-mnemonics -mregnames # HighTec
+#MCU = e200z4 -meabi -msdata=none -mregnames # Free GCC
-#TRGT = ppc-vle-
+TRGT = ppc-vle-
#TRGT = powerpc-eabivle-
-TRGT = ppc-freevle-eabi-
+#TRGT = ppc-freevle-eabi-
CC = $(TRGT)gcc
CPPC = $(TRGT)g++
# Enable loading with g++ only if you need C++ runtime support.
@@ -167,28 +185,5 @@ CPPWARN = -Wall -Wextra -Wundef
# Compiler settings
##############################################################################
-##############################################################################
-# Start of user section
-#
-
-# List all user C define here, like -D_DEBUG=1
-UDEFS = -DSPC56ECXX_FMPLL_CLOCK_ERRATA_WORKAROUND=0
-
-# Define ASM defines here
-UADEFS =
-
-# List all user directories here
-UINCDIR =
-
-# List the user directory to look for the libraries here
-ULIBDIR =
-
-# List all user libraries here
-ULIBS =
-
-#
-# End of user defines
-##############################################################################
-
RULESPATH = $(CHIBIOS)/os/common/startup/e200/compilers/GCC
include $(RULESPATH)/rules.mk