source: rtems/make/custom/mpc8260ads.cfg @ 8e42d3b

4.104.114.84.95
Last change on this file since 8e42d3b was 8e42d3b, checked in by Joel Sherrill <joel.sherrill@…>, on 10/22/01 at 13:47:30

2001-10-22 Andy Dachs <a.dachs@…>

  • custom/mpc8260ads.cfg: New file.
  • Property mode set to 100644
File size: 4.0 KB
RevLine 
[8e42d3b]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#
34#  PPC_USE_SPRG (RTEMS PowerPC port)
35#     If defined (=1), then the PowerPC specific code in RTEMS will use some
36#     of the special purpose registers to slightly optimize interrupt
37#     response time.  The use of these registers can conflict with
38#     other tools like debuggers.
39
40define make-target-options
41        @echo "#ifdef mpc$(CPU_TYPE)"                       >>$@
42        @echo "#undef mpc$(CPU_TYPE)"                       >>$@
43        @echo "#endif"                                      >>$@
44        @echo "#define mpc$(CPU_TYPE) 1"                    >>$@
45        @echo                                               >>$@
46        @echo "#define NVRAM_CONFIGURE 0"                   >>$@
47        @echo "#define UARTS_USE_TERMIOS 0"                 >>$@
48        @echo "#define CONSOLE_MINOR SCC2_MINOR"            >>$@
49        @echo "#define UARTS_IO_MODE 0"                     >>$@
50        @echo "#define PRINTK_MINOR SCC2_MINOR"             >>$@
51        @echo "#define PRINTK_IO_MODE 0"                    >>$@
52        @echo                                               >>$@
53        @echo "#define PPC_VECTOR_FILE_BASE 0x0000"         >>$@
54        @echo "#define PPC_ABI PPC_ABI_EABI"                >>$@
55        @echo "#define PPC_ASM PPC_ASM_ELF"                 >>$@
56        @echo "#define INSTRUCTION_CACHE_ENABLE 0"          >>$@
57        @echo "#define DATA_CACHE_ENABLE 0"                 >>$@
58        @echo "#define PPC_USE_SPRG 1"                      >>$@
59endef
60
61#  This section makes the target dependent options file.
62
63#  NDEBUG (C library)
64#     if defined asserts do not generate code.  This is commonly used
65#     as a command line option.
66#
67#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
68#     do not pause between screens of output in the rtems tests
69#
70#  RTEMS_DEBUG (RTEMS)
71#     If defined, debug checks in RTEMS and support library code are enabled.
72
73#define make-target-options
74#       @echo "/* #define NDEBUG 1 */ "                     >>$@
75#       @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
76#       @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
77#endef
78
79#  This contains the compiler options necessary to select the CPU model
80#  and (hopefully) optimize for it.
81#
82CPU_CFLAGS = -mcpu=$(CPU_TYPE) -mstrict-align
83
84# optimize flag: typically -0, could use -O4 or -fast
85# -O4 is ok for RTEMS
86# NOTE: some level of -O may be actually required by inline assembler
87CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
88
89# The following are definitions of make-exe which will work using ld as
90# is currently required.  It is expected that as of gcc 2.8, the end user
91# will be able to override parts of the compilers specs and link using gcc.
92
93ifeq ($(RTEMS_USE_GCC272),yes)
94# The --defsym arguments define arguments which are required by the linkcmds
95# file which is designed for gcc 2.8
96define make-exe
97        $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
98            --defsym __fini=0 --defsym __init=0 \
99            -o $@ -u atexit -u __vectors -u download_entry \
100            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
101        $(NM) -g -n $@ > $(basename $@).num
102        $(SIZE) $@
103endef
104else
105define make-exe
106        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
107            $(LINK_OBJS) $(LINK_LIBS)
108        $(NM) -g -n $@ > $(basename $@).num
109        $(SIZE) $@
110endef
111endif
112
113# Miscellaneous additions go here
114
115
Note: See TracBrowser for help on using the repository browser.