git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10665 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
45a033e24e
commit
c64ca6b98f
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# Compiler options here.
|
# Compiler options here.
|
||||||
ifeq ($(USE_OPT),)
|
ifeq ($(USE_OPT),)
|
||||||
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16
|
USE_OPT = -c99 -Ospeed -Onounroll
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# C specific options here (added to USE_OPT).
|
# C specific options here (added to USE_OPT).
|
||||||
|
@ -133,33 +133,25 @@ INCDIR = $(CHIBIOS)/os/license \
|
||||||
# Compiler settings
|
# Compiler settings
|
||||||
#
|
#
|
||||||
|
|
||||||
#MCU = e200zx -meabi -msdata=none -mnew-mnemonics -mregnames # HighTec
|
MCU = ppc564xcz0
|
||||||
MCU = e200z4 -meabi -msdata=none -mregnames # Free GCC
|
|
||||||
|
|
||||||
#TRGT = ppc-vle-
|
TRGT =
|
||||||
#TRGT = powerpc-eabivle-
|
CC = $(TRGT)ccppc
|
||||||
TRGT = ppc-freevle-eabi-
|
CPPC = $(TRGT)cxppc
|
||||||
CC = $(TRGT)gcc
|
LD = $(TRGT)cxppc
|
||||||
CPPC = $(TRGT)g++
|
AS = $(TRGT)ccppc
|
||||||
# Enable loading with g++ only if you need C++ runtime support.
|
AR = $(TRGT)ax
|
||||||
# NOTE: You can use C++ even without C++ support if you are careful. C++
|
OD = $(TRGT)gdump
|
||||||
# runtime support makes code size explode.
|
SZ = $(TRGT)gfunsize
|
||||||
LD = $(TRGT)gcc
|
HEX = gsrec -hex386
|
||||||
#LD = $(TRGT)g++
|
MOT = gsrec
|
||||||
CP = $(TRGT)objcopy
|
BIN = gmemfile
|
||||||
AS = $(TRGT)gcc -x assembler-with-cpp
|
|
||||||
AR = $(TRGT)ar
|
|
||||||
OD = $(TRGT)objdump
|
|
||||||
SZ = $(TRGT)size
|
|
||||||
HEX = $(CP) -O ihex
|
|
||||||
MOT = $(CP) -O srec
|
|
||||||
BIN = $(CP) -O binary
|
|
||||||
|
|
||||||
# Define C warning options here
|
# Define C warning options here
|
||||||
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes
|
CWARN = --ghstd=last
|
||||||
|
|
||||||
# Define C++ warning options here
|
# Define C++ warning options here
|
||||||
CPPWARN = -Wall -Wextra -Wundef
|
CPPWARN = --ghstd=last
|
||||||
|
|
||||||
#
|
#
|
||||||
# Compiler settings
|
# Compiler settings
|
||||||
|
@ -188,5 +180,5 @@ ULIBS =
|
||||||
# End of user defines
|
# End of user defines
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
RULESPATH = $(CHIBIOS)/os/common/startup/e200/compilers/GCC
|
RULESPATH = $(CHIBIOS)/os/common/startup/e200/compilers/GHS
|
||||||
include $(RULESPATH)/rules.mk
|
include $(RULESPATH)/rules.mk
|
||||||
|
|
|
@ -71,7 +71,7 @@ OUTFILES = $(BUILDDIR)/$(PROJECT).elf $(BUILDDIR)/$(PROJECT).hex \
|
||||||
$(BUILDDIR)/$(PROJECT).dmp
|
$(BUILDDIR)/$(PROJECT).dmp
|
||||||
|
|
||||||
# Source files groups and paths
|
# Source files groups and paths
|
||||||
SRC = $(CSRC)$(CPPSRC)
|
SRC = $(CSRC)$(CPPSRC)
|
||||||
SRCPATHS = $(sort $(dir $(ASMXSRC)) $(dir $(ASMSRC)) $(dir $(SRC)))
|
SRCPATHS = $(sort $(dir $(ASMXSRC)) $(dir $(ASMSRC)) $(dir $(SRC)))
|
||||||
|
|
||||||
# Various directories
|
# Various directories
|
||||||
|
@ -83,7 +83,7 @@ COBJS = $(addprefix $(OBJDIR)/, $(notdir $(CSRC:.c=.o)))
|
||||||
CPPOBJS = $(addprefix $(OBJDIR)/, $(notdir $(CPPSRC:.cpp=.o)))
|
CPPOBJS = $(addprefix $(OBJDIR)/, $(notdir $(CPPSRC:.cpp=.o)))
|
||||||
ASMOBJS = $(addprefix $(OBJDIR)/, $(notdir $(ASMSRC:.s=.o)))
|
ASMOBJS = $(addprefix $(OBJDIR)/, $(notdir $(ASMSRC:.s=.o)))
|
||||||
ASMXOBJS = $(addprefix $(OBJDIR)/, $(notdir $(ASMXSRC:.S=.o)))
|
ASMXOBJS = $(addprefix $(OBJDIR)/, $(notdir $(ASMXSRC:.S=.o)))
|
||||||
OBJS = $(ASMXOBJS) $(ASMOBJS) $(COBJS) $(CPPOBJS)
|
OBJS = $(ASMXOBJS) $(ASMOBJS) $(COBJS) $(CPPOBJS)
|
||||||
|
|
||||||
# Paths
|
# Paths
|
||||||
IINCDIR = $(patsubst %,-I%,$(INCDIR) $(DINCDIR) $(UINCDIR))
|
IINCDIR = $(patsubst %,-I%,$(INCDIR) $(DINCDIR) $(UINCDIR))
|
||||||
|
@ -91,7 +91,7 @@ LLIBDIR = $(patsubst %,-L%,$(DLIBDIR) $(ULIBDIR))
|
||||||
|
|
||||||
# Macros
|
# Macros
|
||||||
DEFS = $(DDEFS) $(UDEFS)
|
DEFS = $(DDEFS) $(UDEFS)
|
||||||
ADEFS = $(DADEFS) $(UADEFS)
|
ADEFS = $(DADEFS) $(UADEFS)
|
||||||
|
|
||||||
# Libs
|
# Libs
|
||||||
LIBS = $(DLIBS) $(ULIBS)
|
LIBS = $(DLIBS) $(ULIBS)
|
||||||
|
@ -102,7 +102,7 @@ LIST = -list -tmp=$(OBJDIR)
|
||||||
|
|
||||||
MCFLAGS = -cpu=$(MCU)
|
MCFLAGS = -cpu=$(MCU)
|
||||||
|
|
||||||
ODFLAGS = -ysec -full
|
ODFLAGS = -ysec -full
|
||||||
|
|
||||||
ASFLAGS = $(MCFLAGS) $(OPT) $(LIST) -list=$(LSTDIR)/$(notdir $(<:.s=.lst)) $(ADEFS) $(WARN) -preprocess_assembly_files
|
ASFLAGS = $(MCFLAGS) $(OPT) $(LIST) -list=$(LSTDIR)/$(notdir $(<:.s=.lst)) $(ADEFS) $(WARN) -preprocess_assembly_files
|
||||||
ASXFLAGS = $(MCFLAGS) $(OPT) $(LIST) -list=$(LSTDIR)/$(notdir $(<:.S=.lst)) $(ADEFS) $(WARN) -preprocess_assembly_files
|
ASXFLAGS = $(MCFLAGS) $(OPT) $(LIST) -list=$(LSTDIR)/$(notdir $(<:.S=.lst)) $(ADEFS) $(WARN) -preprocess_assembly_files
|
||||||
|
|
Loading…
Reference in New Issue