1 | # |
---|
2 | # Config file for MPC860 based Ethernet Comm Board |
---|
3 | # |
---|
4 | # $Id$ |
---|
5 | # |
---|
6 | |
---|
7 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
8 | |
---|
9 | RTEMS_CPU=powerpc |
---|
10 | RTEMS_CPU_MODEL=mpc860 |
---|
11 | |
---|
12 | # This is the actual bsp directory used during the build process. |
---|
13 | RTEMS_BSP_FAMILY=eth_comm |
---|
14 | |
---|
15 | CPU_DEFINES=-DPPC_ABI=PPC_ABI_EABI \ |
---|
16 | -DPPC_ASM=PPC_ASM_ELF -DPPC_VECTOR_FILE_BASE=0x00000000 |
---|
17 | |
---|
18 | # This section makes the target dependent options file. |
---|
19 | |
---|
20 | # NDEBUG (C library) |
---|
21 | # if defined asserts do not generate code. This is commonly used |
---|
22 | # as a command line option. |
---|
23 | # |
---|
24 | # RTEMS_TEST_NO_PAUSE (RTEMS tests) |
---|
25 | # do not pause between screens of output in the rtems tests |
---|
26 | # |
---|
27 | # STACK_CHECKER_ON (RTEMS support code) |
---|
28 | # If defined, stack bounds checking is enabled. |
---|
29 | # |
---|
30 | # STACK_CHECKER_REPORT_USAGE (RTEMS support code) |
---|
31 | # If this and STACK_CHECKER_ON are defined, then a report on stack usage |
---|
32 | # per task is printed when the program exits. |
---|
33 | # |
---|
34 | # RTEMS_DEBUG (RTEMS) |
---|
35 | # If defined, debug checks in RTEMS and support library code are enabled. |
---|
36 | |
---|
37 | define make-target-options |
---|
38 | @echo "/* #define NDEBUG 1 */ " >>$@ |
---|
39 | @echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
---|
40 | @echo "/* #define STACK_CHECKER_ON 1 */" >>$@ |
---|
41 | @echo "/* #define STACK_CHECKER_REPORT_USAGE 1 */" >>$@ |
---|
42 | @echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
---|
43 | endef |
---|
44 | |
---|
45 | # This contains the compiler options necessary to select the CPU model |
---|
46 | # and (hopefully) optimize for it. |
---|
47 | # |
---|
48 | CPU_CFLAGS = -mcpu=860 |
---|
49 | |
---|
50 | # optimize flag: typically -0, could use -O4 or -fast |
---|
51 | # -O4 is ok for RTEMS |
---|
52 | # NOTE: some level of -O may be actually required by inline assembler |
---|
53 | CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions |
---|
54 | |
---|
55 | # No start file |
---|
56 | START_BASE= |
---|
57 | |
---|
58 | # The following are definitions of make-exe which will work using ld as |
---|
59 | # is currently required. It is expected that as of gcc 2.8, the end user |
---|
60 | # will be able to override parts of the compilers specs and link using gcc. |
---|
61 | |
---|
62 | ifeq ($(RTEMS_USE_GCC272),yes) |
---|
63 | # The --defsym arguments define arguments which are required by the linkcmds |
---|
64 | # file which is designed for gcc 2.8 |
---|
65 | define make-exe |
---|
66 | $(LD) $(XLDFLAGS) -T $(LINKCMDS) \ |
---|
67 | --defsym __fini=0 --defsym __init=0 \ |
---|
68 | -o $@ -u atexit -u __vectors -u download_entry \ |
---|
69 | $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group |
---|
70 | $(NM) -g -n $@ > $(basename $@).num |
---|
71 | $(SIZE) $@ |
---|
72 | endef |
---|
73 | else |
---|
74 | define make-exe |
---|
75 | $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \ |
---|
76 | $(LINK_OBJS) $(LINK_LIBS) |
---|
77 | $(NM) -g -n $@ > $(basename $@).num |
---|
78 | $(SIZE) $@ |
---|
79 | endef |
---|
80 | endif |
---|
81 | |
---|
82 | # Miscellaneous additions go here |
---|
83 | |
---|
84 | |
---|