source:
rtems/make/custom/ppcn_60x.cfg
@
4d20133
Last change on this file since 4d20133 was 0c04c377, checked in by Joel Sherrill <joel.sherrill@…>, on 02/18/99 at 16:48:14 | |
---|---|
|
|
File size: 4.0 KB |
Line | |
---|---|
1 | # |
2 | # Config file for a Radstone Technology Plc. PowerPC 60x based VME board |
3 | # |
4 | # $Id: ppcn_60x.cfg |
5 | # |
6 | |
7 | include $(RTEMS_ROOT)/make/custom/default.cfg |
8 | |
9 | RTEMS_CPU=powerpc |
10 | RTEMS_CPU_MODEL=ppc603e |
11 | |
12 | # This is the actual bsp directory used during the build process. |
13 | |
14 | RTEMS_BSP_FAMILY=ppcn_60x |
15 | |
16 | RTEMS_BSP=ppcn_60x |
17 | |
18 | # This contains the compiler options necessary to select the CPU model |
19 | # This section makes the target dependent options file. |
20 | |
21 | # NDEBUG (C library) |
22 | # if defined asserts do not generate code. This is commonly used |
23 | # as a command line option. |
24 | # |
25 | # RTEMS_TEST_NO_PAUSE (RTEMS tests) |
26 | # do not pause between screens of output in the rtems tests |
27 | # |
28 | # RTEMS_DEBUG (RTEMS) |
29 | # If defined, debug checks in RTEMS and support library code are enabled. |
30 | # |
31 | # PPCN_60X_USE_DINK (ppcn_60x_bsp) |
32 | # PPCN_60X_USE_NONE (ppcn_60x_bsp) |
33 | # The Score603e board can be configured with 3 ROM monitors. Only two |
34 | # are appropriate for use with RTEMS. Set exactly one of these to "1" |
35 | # to indicate which ROM monitor is on the board you are using. |
36 | # |
37 | # PPC_VECTOR_FILE_BASE (ppc) |
38 | # This defines the base address of the exception table. |
39 | # NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100 |
40 | # |
41 | # PPC_ABI (ppc) |
42 | # This defines the calling convention (Application Binary Interface) |
43 | # used in this configuration. EABI is the only one supported. |
44 | # |
45 | # PPC_ASM (ppc) |
46 | # This defines the assembly language format used in this configuration. |
47 | # ELF is the only one supported. |
48 | # |
49 | # PPC_USE_SPRG (RTEMS PowerPC port) |
50 | # If defined, then the PowerPC specific code in RTEMS will use some |
51 | # of the special purpose registers to slightly optimize interrupt |
52 | # response time. The use of these registers can conflict with |
53 | # other tools like debuggers. |
54 | # |
55 | # PPC_USE_DATA_CACHE (RTEMS PowerPC port) |
56 | # If defined, then the PowerPC specific code in RTEMS will use |
57 | # data cache instructions to optimize the context switch code. |
58 | # This code can conflict with debuggers or emulators. |
59 | # |
60 | |
61 | define make-target-options |
62 | @echo "/* #define NDEBUG 1 */ " >>$@ |
63 | @echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
64 | @echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
65 | @echo "#define PPCN_60X_USE_DINK 1" >>$@ |
66 | @echo "#define PPCN_60X_USE_NONE 0" >>$@ |
67 | @echo "#define PPC_USE_DATA_CACHE 1" >>$@ |
68 | @echo "#define PPC_VECTOR_FILE_BASE 0x0100" >>$@ |
69 | @echo "#define PPC_ABI PPC_ABI_EABI" >>$@ |
70 | @echo "#define PPC_ASM PPC_ASM_ELF" >>$@ |
71 | @echo "#define PPC_USE_SPRG 0" >>$@ |
72 | endef |
73 | |
74 | # This contains the compiler options necessary to select the CPU model |
75 | # and (hopefully) optimize for it. |
76 | # |
77 | CPU_CFLAGS = -mcpu=603 |
78 | |
79 | # Define this to yes if this target supports multiprocessor environments. |
80 | HAS_MP=no |
81 | |
82 | # optimize flag: typically -0, could use -O4 or -fast |
83 | # -O4 is ok for RTEMS |
84 | # NOTE: some level of -O may be actually required by inline assembler |
85 | CFLAGS_OPTIMIZE_V=-O0 -fno-keep-inline-functions -fvolatile-global -fvolatile |
86 | #CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions -fvolatile-global -fvolatile |
87 | |
88 | # The following is a linkcmds file which will work without using the |
89 | # -specs system in gcc 2.8. |
90 | # $(LD) $(XLDFLAGS) -T $(LINKCMDS) \ |
91 | # -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES) |
92 | # $(LD) $(XLDFLAGS) -Ttext 0x20000 \ |
93 | # -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES) |
94 | |
95 | # $(CC) -mmvme -mrtems -nostartfiles -mcpu=603 \ |
96 | # -o $(basename $@).exe -L $(PROJECT_RELEASE)/lib \ |
97 | # $(START_FILE) $(LINK_OBJS) \ |
98 | # $(LD_LIBS) \ |
99 | # -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\) |
100 | define make-exe |
101 | $(CC) $(CFLAGS) -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS) |
102 | $(NM) -g -n $(basename $@).exe > $(basename $@).num |
103 | $(SIZE) $(basename $@).exe |
104 | endef |
105 | |
106 | # Miscellaneous additions go here |
107 | |
108 | # No start file |
109 | START_BASE= |
110 | |
111 | DRIVER_ARCHITECTURE=vmebus |
Note: See TracBrowser
for help on using the repository browser.