source: rtems/make/custom/mpc8260ads.cfg @ 1614be8

4.104.114.84.95
Last change on this file since 1614be8 was 1614be8, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 14, 2001 at 8:44:46 PM

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

  • custom/eth_comm.cfg, custom/mbx860_005b.cfg, custom/mbx8xx.cfg, custom/mcp750.cfg, custom/mpc8260ads.cfg, custom/mvme2307.cfg: These are new exception processing model BSPs and thus do not need to define PPC_USE_SPRG.
  • Property mode set to 100644
File size: 3.7 KB
Line 
1#
2#  Config file for MPC8260 based Motorola ADS board
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9RTEMS_CPU=powerpc
10RTEMS_CPU_MODEL=mpc8260
11CPU_TYPE=8260
12
13# This is the actual bsp directory used during the build process.
14RTEMS_BSP_FAMILY=mpc8260ads
15
16#CPU_DEFINES=-DPPC_VECTOR_FILE_BASE=0x00000000
17CPU_DEFINES=
18
19#  This section makes the target dependent options file.
20
21#  PPC_VECTOR_FILE_BASE (PowerPC)
22#     This defines the base address of the exception table.
23#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
24#       
25#  PPC_ABI (PowerPC)
26#     This defines the calling convention (Application Binary Interface)
27#     used in this configuration.  EABI is the only one supported.
28#     This BSP was initially developed using the PowerOpen ABI.
29#
30#  PPC_ASM (PowerPC)
31#     This defines the assembly language format used in this configuration.
32#     ELF is the only one supported.
33
34define make-target-options
35        @echo "#ifdef mpc$(CPU_TYPE)"                       >>$@
36        @echo "#undef mpc$(CPU_TYPE)"                       >>$@
37        @echo "#endif"                                      >>$@
38        @echo "#define mpc$(CPU_TYPE) 1"                    >>$@
39        @echo                                               >>$@
40        @echo "#define NVRAM_CONFIGURE 0"                   >>$@
41        @echo "#define UARTS_USE_TERMIOS 0"                 >>$@
42        @echo "#define CONSOLE_MINOR SCC2_MINOR"            >>$@
43        @echo "#define UARTS_IO_MODE 0"                     >>$@
44        @echo "#define PRINTK_MINOR SCC2_MINOR"             >>$@
45        @echo "#define PRINTK_IO_MODE 0"                    >>$@
46        @echo                                               >>$@
47        @echo "#define PPC_VECTOR_FILE_BASE 0x0000"         >>$@
48        @echo "#define PPC_ABI PPC_ABI_EABI"                >>$@
49        @echo "#define PPC_ASM PPC_ASM_ELF"                 >>$@
50        @echo "#define INSTRUCTION_CACHE_ENABLE 0"          >>$@
51        @echo "#define DATA_CACHE_ENABLE 0"                 >>$@
52endef
53
54#  This section makes the target dependent options file.
55
56#  NDEBUG (C library)
57#     if defined asserts do not generate code.  This is commonly used
58#     as a command line option.
59#
60#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
61#     do not pause between screens of output in the rtems tests
62#
63#  RTEMS_DEBUG (RTEMS)
64#     If defined, debug checks in RTEMS and support library code are enabled.
65
66#define make-target-options
67#       @echo "/* #define NDEBUG 1 */ "                     >>$@
68#       @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
69#       @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
70#endef
71
72#  This contains the compiler options necessary to select the CPU model
73#  and (hopefully) optimize for it.
74#
75CPU_CFLAGS = -mcpu=$(CPU_TYPE) -mstrict-align
76
77# optimize flag: typically -0, could use -O4 or -fast
78# -O4 is ok for RTEMS
79# NOTE: some level of -O may be actually required by inline assembler
80CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
81
82# The following are definitions of make-exe which will work using ld as
83# is currently required.  It is expected that as of gcc 2.8, the end user
84# will be able to override parts of the compilers specs and link using gcc.
85
86ifeq ($(RTEMS_USE_GCC272),yes)
87# The --defsym arguments define arguments which are required by the linkcmds
88# file which is designed for gcc 2.8
89define make-exe
90        $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
91            --defsym __fini=0 --defsym __init=0 \
92            -o $@ -u atexit -u __vectors -u download_entry \
93            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
94        $(NM) -g -n $@ > $(basename $@).num
95        $(SIZE) $@
96endef
97else
98define make-exe
99        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
100            $(LINK_OBJS) $(LINK_LIBS)
101        $(NM) -g -n $@ > $(basename $@).num
102        $(SIZE) $@
103endef
104endif
105
106# Miscellaneous additions go here
107
108
Note: See TracBrowser for help on using the repository browser.