source: rtems/make/custom/dmv177.cfg @ 9c559acc

4.104.114.84.95
Last change on this file since 9c559acc was 9c559acc, checked in by Joel Sherrill <joel.sherrill@…>, on 05/30/98 at 10:17:57

New file -- from rtems-LM-980406 based on a 12/97 RTEMS snapshot.

  • Property mode set to 100644
File size: 3.7 KB
Line 
1#
2#  Config file for a PowerPC 603e based DY-4 VMEbus Single Board Computer.
3#  This BSP should work with the following models:
4#
5#     + SVME-171/DMV-171
6#     + SVME-176/DMV-176
7#
8#  $Id$
9#
10
11include $(PROJECT_ROOT)/make/custom/default.cfg
12
13RTEMS_CPU=ppc
14RTEMS_CPU_MODEL=ppc603e
15
16# This is the actual bsp directory used during the build process.
17
18RTEMS_BSP_FAMILY=dmv170
19
20RTEMS_BSP=dmv170
21
22#  This section makes the target dependent options file.
23
24#  NDEBUG (C library)
25#     if defined asserts do not generate code.  This is commonly used
26#     as a command line option.
27#
28#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
29#     do not pause between screens of output in the rtems tests
30#
31#  STACK_CHECKER_ON (RTEMS support code)
32#     If defined, stack bounds checking is enabled.
33#
34#  STACK_CHECKER_REPORT_USAGE (RTEMS support code)
35#     If this and STACK_CHECKER_ON are defined, then a report on stack usage
36#     per task is printed when the program exits.
37#
38#  RTEMS_DEBUG (RTEMS)
39#     If defined, debug checks in RTEMS and support library code are enabled.
40#
41#  CONSOLE_USE_POLLED     (psim_bsp)
42#  CONSOLE_USE_INTERRUPTS (psim_bsp)
43#     The psim console driver has the structure to operate in either
44#     polled or interrupt mode.  However both modes only trap to the
45#     monitor currently.
46#
47#  PPC_VECTOR_FILE_BASE (ppc)
48#     This defines the base address of the exception table.
49#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
50#
51#  PPC_ABI (ppc)
52#     This defines the calling convention (Application Binary Interface)
53#     used in this configuration.  EABI is the only one supported.
54#
55#  PPC_ASM (ppc)
56#     This defines the assembly language format used in this configuration.
57#     ELF is the only one supported.
58#
59
60
61
62define make-target-options
63        @echo "/* #define NDEBUG 1 */ "                            >>$@
64        @echo "#define RTEMS_TEST_NO_PAUSE 1"                      >>$@
65        @echo "/* #define STACK_CHECKER_ON  1 */"                  >>$@
66        @echo "/* #define STACK_CHECKER_REPORT_USAGE  1 */"        >>$@
67        @echo "/* #define RTEMS_DEBUG  1 */"                       >>$@
68        @echo "#define CONSOLE_USE_INTERRUPTS 0"                   >>$@
69        @echo "#define CONSOLE_USE_POLLED ~CONSOLE_USE_INTERRUPTS" >>$@
70        @echo "#define PPC_VECTOR_FILE_BASE 0x0100"                >>$@
71        @echo "#define PPC_ABI PPC_ABI_EABI"                       >>$@
72        @echo "#define PPC_ASM PPC_ASM_ELF"                        >>$@
73endef
74
75#  This contains the compiler options necessary to select the CPU model
76#  and (hopefully) optimize for it.
77#
78CPU_CFLAGS = -mcpu=603
79
80# optimize flag: typically -0, could use -O4 or -fast
81# -O4 is ok for RTEMS
82# NOTE: some level of -O may be actually required by inline assembler
83CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
84
85# The following is a linkcmds file which will work without using the
86# -specs system in gcc 2.8.
87#       $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
88#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
89#       $(LD) $(XLDFLAGS) -Ttext 0x20000 \
90#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
91
92#       $(CC) -mmvme -mrtems -nostartfiles -mcpu=603 \
93#           -o $(basename $@).exe -L $(PROJECT_RELEASE)/lib \
94#            $(START_FILE) $(LINK_OBJS) \
95#            $(LD_LIBS) \
96#           -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
97define make-exe
98        $(CC) $(CFLAGS) -o $(basename $@).nxe $(LINK_OBJS)
99        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
100        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
101            $(PROJECT_TOOLS)/packhex > $(basename $@).exe
102        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
103        $(SIZE) $(basename $@).nxe
104endef
105
106# Miscellaneous additions go here
107
108# No start file
109START_BASE=
110
111
112DRIVER_ARCHITECTURE=vmebus
Note: See TracBrowser for help on using the repository browser.