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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [make/] [custom/] [gen405.cfg] - Blame information for rev 1778

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
#
2
#  Config file for a generic PowerPC 405 based card
3
#
4
#  gen405.cfg,v 1.6 2002/04/18 13:07:35 joel Exp
5
#
6
#  this is derived from:
7
#
8
#  Config file for a PowerPC 403 based helas403 card
9
#
10
#  Id: helas403.cfg,v 1.8 2000/07/13 15:05:38 joel Exp
11
#
12
#
13
 
14
include $(RTEMS_ROOT)/make/custom/default.cfg
15
 
16
RTEMS_CPU=powerpc
17
RTEMS_CPU_MODEL=ppc405
18
 
19
# This is the actual bsp directory used during the build process.
20
RTEMS_BSP_FAMILY=gen405
21
 
22
#  This contains the compiler options necessary to select the CPU model
23
#  and (hopefully) optimize for it.
24
#
25
CPU_CFLAGS = -mcpu=403 -D_OLD_EXCEPTIONS -Dppc405
26
 
27
# optimize flag: typically -0, could use -O4 or -fast
28
# -O4 is ok for RTEMS
29
# NOTE: some level of -O may be actually required by inline assembler
30
CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions -g
31
 
32
 
33
# No start file
34
START_BASE=
35
 
36
# The following are definitions of make-exe which will work using ld as
37
# is currently required.  It is expected that as of gcc 2.8, the end user
38
# will be able to override parts of the compilers specs and link using gcc.
39
 
40
define make-exe
41
        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
42
        $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec
43
        $(NM) -g -n $@ > $(basename $@).num
44
        $(SIZE) $@
45
endef
46
 
47
#       $(OBJCOPY) -O srec --srec-len 120 $(basename $@).exe $(basename $@).srec
48
define make-cxx-exe
49
        $(LINK.c) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
50
        $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec
51
        $(NM) -g -n $@ > $(basename $@).num
52
        $(SIZE) $@
53
endef
54
 
55
# Miscellaneous additions go here
56
 

powered by: WebSVN 2.1.0

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