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] - Blame information for rev 211

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 145 olivier.gi
#File: core_portme.mak
2
 
3
ITERATIONS  = 1
4
PORT_CFLAGS = -O2
5
 
6 200 olivier.gi
# Choose GCC toolchain prefix ('msp430' for MSPGCC / 'msp430-elf' for GCC RedHat/TI)
7
ifndef MSPGCC_PFX
8
MSPGCC_PFX      = msp430-elf
9
endif
10
 
11 145 olivier.gi
# Flag: OUTFLAG
12
#       Use this flag to define how to to get an executable (e.g -o)
13
OUTFLAG= -o
14 200 olivier.gi
 
15 145 olivier.gi
# Flag: CC
16
#       Use this flag to define compiler to use
17 200 olivier.gi
CC = ${MSPGCC_PFX}-gcc
18
 
19 145 olivier.gi
# Flag: CFLAGS
20
#       Use this flag to define compiler options. Note, you can add compiler options from the command line using XCFLAGS="other flags"
21
FLAGS_STR = "$(PORT_CFLAGS) $(XCFLAGS) $(XLFLAGS) $(LFLAGS_END)"
22 200 olivier.gi
 
23
ifeq ($(MSPGCC_PFX),msp430-elf)
24
CFLAGS  = -D PFX_MSP430_ELF $(PORT_CFLAGS) -mcpu=msp430 -mhwmult=16bit            -I$(PORT_DIR) -I. -DFLAGS_STR=\"$(FLAGS_STR)\"
25
else
26
CFLAGS  = -D PFX_MSP430     $(PORT_CFLAGS) -mcpu=430    -mmpy=16      -mivcnt=16  -I$(PORT_DIR) -I. -DFLAGS_STR=\"$(FLAGS_STR)\"
27
endif
28
 
29 145 olivier.gi
#Flag: LFLAGS_END
30 200 olivier.gi
#       Define any libraries needed for linking or other flags that should come at the end of the link line (e.g. linker scripts).
31 145 olivier.gi
#       Note : On certain platforms, the default clock_gettime implementation is supported but requires linking of librt.
32 200 olivier.gi
LFLAGS_END += -T$(PORT_DIR)/linker.${MSPGCC_PFX}.x
33
 
34 145 olivier.gi
# Flag : PORT_SRCS
35
#       Port specific source files can be added here
36 211 olivier.gi
PORT_SRCS = $(PORT_DIR)/core_portme.c $(PORT_DIR)/omsp_func.c $(PORT_DIR)/mylib/copydata.c $(PORT_DIR)/mylib/cprintf.c
37 200 olivier.gi
 
38 145 olivier.gi
# Flag : LOAD
39
#       For a simple port, we assume self hosted compile and run, no load needed.
40
 
41
# Flag : RUN
42
#       For a simple port, we assume self hosted compile and run, simple invocation of the executable
43
 
44
#For native compilation and execution
45
LOAD = echo Loading done
46
RUN = echo
47
 
48
OEXT = .o
49
EXE = .elf
50
 
51
 
52
# Target : port_pre% and port_post%
53
# For the purpose of this simple port, no pre or post steps needed.
54
 
55
.PHONY : port_prebuild port_postbuild port_prerun port_postrun port_preload port_postload
56 200 olivier.gi
port_pre% port_post% :
57 145 olivier.gi
 
58
# FLAG : OPATH
59
# Path to the output folder. Default - current folder.
60
OPATH = ./
61
MKDIR = mkdir -p

powered by: WebSVN 2.1.0

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