source: rtems/make/custom/mvme2307.cfg @ 7409426

4.104.114.84.95
Last change on this file since 7409426 was 7409426, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 14, 2001 at 6:43:32 PM

2001-11-10 Ralf Corsepius <corsepiu@…>

  • custom/shsim.cfg: Remove HZ, BSP_CPPFLAGS, make-target-options.
  • custom/mvme2307.cfg: Fix PPC_USE_SPRG in make-target-options, re-adopt mcp750.cfg's make-exe.
  • Property mode set to 100644
File size: 2.8 KB
Line 
1#
2#  Config file for the PowerPC 604 based mvme2307
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9RTEMS_CPU=powerpc
10RTEMS_CPU_MODEL=mpc604
11RTEMS_PPC_EXCEPTION_PROCESSING_MODEL=new
12
13# This is the actual bsp directory used during the build process.
14RTEMS_BSP_FAMILY=motorola_powerpc
15
16#  This section makes the target dependent options file.
17
18#  PPC_VECTOR_FILE_BASE (PowerPC)
19#     This defines the base address of the exception table.
20#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
21#
22#  PPC_USE_SPRG (RTEMS PowerPC port)
23#     If defined, then the PowerPC specific code in RTEMS will use some
24#     of the special purpose registers to slightly optimize interrupt
25#     response time.  The use of these registers can conflict with
26#     other tools like debuggers.
27#
28
29define make-target-options
30        @echo "#define PPCN_60X_USE_DINK 0"                   >>$@
31        @echo "#define PPCN_60X_USE_NONE 1"                   >>$@
32        @echo "#define PPC_USE_DATA_CACHE 1"                   >>$@
33        @echo "#define PPC_VECTOR_FILE_BASE 0x0100"            >>$@
34        @echo "#define PPC_USE_SPRG  1"                         >>$@
35endef
36
37#  This contains the compiler options necessary to select the CPU model
38#  and (hopefully) optimize for it.
39#
40CPU_CFLAGS = -mcpu=604 -mmultiple -mstring -mstrict-align
41
42# optimize flag: typically -0, could use -O4 or -fast
43# -O4 is ok for RTEMS
44# NOTE: some level of -O may be actually required by inline assembler
45#CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
46CFLAGS_OPTIMIZE_V = -O4
47
48# debug flags: typically none, but at least -O1 is required due to this
49# BSP using inlined code
50CFLAGS_DEBUG_V = -O1
51
52# profile flags: typically none, but at least -O1 is required due to this
53# BSP using inlined code
54CFLAGS_PROFILE_V = -O1   
55
56# The following is a linkcmds file which will work without using the
57# -specs system in gcc 2.8.
58#       $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
59#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
60#       $(LD) $(XLDFLAGS) -Ttext 0x20000 \
61#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
62
63#       $(CC) -mmvme -mrtems -nostartfiles -mcpu=603 \
64#           -o $(basename $@).exe -L $(PROJECT_RELEASE)/lib \
65#            $(START_FILE) $(LINK_OBJS) \
66#            $(LD_LIBS) \
67#           -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
68define make-exe
69        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
70           -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
71        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
72        $(SIZE) $(basename $@).nxe
73        $(OBJCOPY) $(basename $@).nxe rtems -O binary -R .comment -S
74        gzip -vf9 rtems
75        $(LD) -o $@ $(PROJECT_RELEASE)/lib/bootloader.o --just-symbols=$(basename $@).nxe \
76        -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \
77        -Map $(basename $@).map && chmod 755 $@
78        rm -f rtems.gz
79endef
80
81# Miscellaneous additions go here
82
83# No start file
84START_BASE=
Note: See TracBrowser for help on using the repository browser.