OpenCores
URL https://opencores.org/ocsvn/openmsp430/openmsp430/trunk

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [core/] [sim/] [rtl_sim/] [src-c/] [coremark_v1.0/] [msp430/] [core_portme.mak] - Diff between revs 200 and 211

Only display areas with differences | Details | Blame | View Log

Rev 200 Rev 211
#File: core_portme.mak
#File: core_portme.mak
ITERATIONS  = 1
ITERATIONS  = 1
PORT_CFLAGS = -O2
PORT_CFLAGS = -O2
# Choose GCC toolchain prefix ('msp430' for MSPGCC / 'msp430-elf' for GCC RedHat/TI)
# Choose GCC toolchain prefix ('msp430' for MSPGCC / 'msp430-elf' for GCC RedHat/TI)
ifndef MSPGCC_PFX
ifndef MSPGCC_PFX
MSPGCC_PFX      = msp430-elf
MSPGCC_PFX      = msp430-elf
endif
endif
# Flag: OUTFLAG
# Flag: OUTFLAG
#       Use this flag to define how to to get an executable (e.g -o)
#       Use this flag to define how to to get an executable (e.g -o)
OUTFLAG= -o
OUTFLAG= -o
# Flag: CC
# Flag: CC
#       Use this flag to define compiler to use
#       Use this flag to define compiler to use
CC = ${MSPGCC_PFX}-gcc
CC = ${MSPGCC_PFX}-gcc
# Flag: CFLAGS
# Flag: CFLAGS
#       Use this flag to define compiler options. Note, you can add compiler options from the command line using XCFLAGS="other flags"
#       Use this flag to define compiler options. Note, you can add compiler options from the command line using XCFLAGS="other flags"
FLAGS_STR = "$(PORT_CFLAGS) $(XCFLAGS) $(XLFLAGS) $(LFLAGS_END)"
FLAGS_STR = "$(PORT_CFLAGS) $(XCFLAGS) $(XLFLAGS) $(LFLAGS_END)"
ifeq ($(MSPGCC_PFX),msp430-elf)
ifeq ($(MSPGCC_PFX),msp430-elf)
CFLAGS  = -D PFX_MSP430_ELF $(PORT_CFLAGS) -mcpu=msp430 -mhwmult=16bit            -I$(PORT_DIR) -I. -DFLAGS_STR=\"$(FLAGS_STR)\"
CFLAGS  = -D PFX_MSP430_ELF $(PORT_CFLAGS) -mcpu=msp430 -mhwmult=16bit            -I$(PORT_DIR) -I. -DFLAGS_STR=\"$(FLAGS_STR)\"
else
else
CFLAGS  = -D PFX_MSP430     $(PORT_CFLAGS) -mcpu=430    -mmpy=16      -mivcnt=16  -I$(PORT_DIR) -I. -DFLAGS_STR=\"$(FLAGS_STR)\"
CFLAGS  = -D PFX_MSP430     $(PORT_CFLAGS) -mcpu=430    -mmpy=16      -mivcnt=16  -I$(PORT_DIR) -I. -DFLAGS_STR=\"$(FLAGS_STR)\"
endif
endif
#Flag: LFLAGS_END
#Flag: LFLAGS_END
#       Define any libraries needed for linking or other flags that should come at the end of the link line (e.g. linker scripts).
#       Define any libraries needed for linking or other flags that should come at the end of the link line (e.g. linker scripts).
#       Note : On certain platforms, the default clock_gettime implementation is supported but requires linking of librt.
#       Note : On certain platforms, the default clock_gettime implementation is supported but requires linking of librt.
LFLAGS_END += -T$(PORT_DIR)/linker.${MSPGCC_PFX}.x
LFLAGS_END += -T$(PORT_DIR)/linker.${MSPGCC_PFX}.x
# Flag : PORT_SRCS
# Flag : PORT_SRCS
#       Port specific source files can be added here
#       Port specific source files can be added here
PORT_SRCS = $(PORT_DIR)/core_portme.c $(PORT_DIR)/omsp_func.c $(PORT_DIR)/copydata.c
PORT_SRCS = $(PORT_DIR)/core_portme.c $(PORT_DIR)/omsp_func.c $(PORT_DIR)/mylib/copydata.c $(PORT_DIR)/mylib/cprintf.c
 
 
# Flag : LOAD
# Flag : LOAD
#       For a simple port, we assume self hosted compile and run, no load needed.
#       For a simple port, we assume self hosted compile and run, no load needed.
# Flag : RUN
# Flag : RUN
#       For a simple port, we assume self hosted compile and run, simple invocation of the executable
#       For a simple port, we assume self hosted compile and run, simple invocation of the executable
#For native compilation and execution
#For native compilation and execution
LOAD = echo Loading done
LOAD = echo Loading done
RUN = echo
RUN = echo
OEXT = .o
OEXT = .o
EXE = .elf
EXE = .elf
# Target : port_pre% and port_post%
# Target : port_pre% and port_post%
# For the purpose of this simple port, no pre or post steps needed.
# For the purpose of this simple port, no pre or post steps needed.
.PHONY : port_prebuild port_postbuild port_prerun port_postrun port_preload port_postload
.PHONY : port_prebuild port_postbuild port_prerun port_postrun port_preload port_postload
port_pre% port_post% :
port_pre% port_post% :
# FLAG : OPATH
# FLAG : OPATH
# Path to the output folder. Default - current folder.
# Path to the output folder. Default - current folder.
OPATH = ./
OPATH = ./
MKDIR = mkdir -p
MKDIR = mkdir -p
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.