source: rtems/make/custom/gen405.cfg @ 7c67be4

4.104.114.84.95
Last change on this file since 7c67be4 was 7c67be4, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 13, 2001 at 11:21:34 PM

2001-11-13 Joel Sherrill <joel@…>

  • custom/helas403.cfg, custom/gen405.cfg: Removed dependency on the --srec-len argument to objcopy only supported in binutils 2.11 or newer.
  • Property mode set to 100644
File size: 2.7 KB
Line 
1#
2#  Config file for a generic PowerPC 405 based card
3#
4#  $Id$
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
14include $(RTEMS_ROOT)/make/custom/default.cfg
15
16RTEMS_CPU=powerpc
17RTEMS_CPU_MODEL=ppc405
18
19# This is the actual bsp directory used during the build process.
20RTEMS_BSP_FAMILY=gen405
21
22#  This section makes the target dependent options file.
23
24#  PPC_VECTOR_FILE_BASE (PowerPC)
25#     This defines the base address of the exception table.
26#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
27#       
28#  PPC_USE_SPRG (RTEMS PowerPC port)
29#     If defined, then the PowerPC specific code in RTEMS will use some
30#     of the special purpose registers to slightly optimize interrupt
31#     response time.  The use of these registers can conflict with
32#     other tools like debuggers.
33
34define make-target-options
35        @echo "#define PPC_VECTOR_FILE_BASE 0x0100"         >>$@
36        @echo "#define PPC_USE_SPRG 1"                      >>$@
37endef
38
39#  This contains the compiler options necessary to select the CPU model
40#  and (hopefully) optimize for it.
41#
42CPU_CFLAGS = -mcpu=403 -D__powerpc__
43
44# optimize flag: typically -0, could use -O4 or -fast
45# -O4 is ok for RTEMS
46# NOTE: some level of -O may be actually required by inline assembler
47CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions -g
48
49
50# No start file
51START_BASE=
52
53# The following are definitions of make-exe which will work using ld as
54# is currently required.  It is expected that as of gcc 2.8, the end user
55# will be able to override parts of the compilers specs and link using gcc.
56
57ifeq ($(RTEMS_USE_GCC272),yes)
58# The --defsym arguments define arguments which are required by the linkcmds
59# file which is designed for gcc 2.8
60define make-exe
61        $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
62            --defsym __fini=0 --defsym __init=0 \
63            -o $@ -u atexit -u __vectors -u download_entry \
64            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
65        $(NM) -g -n $@ > $(basename $@).num
66        $(SIZE) $@
67endef
68else
69#       $(OBJCOPY) -O srec --srec-len 120 $(basename $@).exe $(basename $@).srec
70define make-exe
71        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
72        $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec
73        $(NM) -g -n $@ > $(basename $@).num
74        $(SIZE) $@
75endef
76endif
77
78#       $(OBJCOPY) -O srec --srec-len 120 $(basename $@).exe $(basename $@).srec
79define make-cxx-exe
80        $(LINK.c) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
81        $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec
82        $(NM) -g -n $@ > $(basename $@).num
83        $(SIZE) $@
84endef
85
86# Miscellaneous additions go here
87
Note: See TracBrowser for help on using the repository browser.