git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11123 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
Giovanni Di Sirio 2017-12-06 19:06:49 +00:00
parent 87099d56d4
commit 3a3232c736
2 changed files with 70 additions and 82 deletions

View File

@ -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,34 +107,46 @@ 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

View File

@ -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