1 | # |
---|
2 | # Config file for the uC5282 BSP |
---|
3 | # |
---|
4 | #Based on: |
---|
5 | # $Id$ |
---|
6 | # |
---|
7 | # A0.01 Initial Version BDS 07/26/01 |
---|
8 | # |
---|
9 | |
---|
10 | |
---|
11 | RTEMS_CPU=m68k |
---|
12 | RTEMS_CPU_MODEL=mcf5282 |
---|
13 | |
---|
14 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
15 | |
---|
16 | # This is the actual bsp directory used during the build process. |
---|
17 | RTEMS_BSP_FAMILY=av5282 |
---|
18 | |
---|
19 | # This contains the compiler options necessary to select the CPU model |
---|
20 | # and (hopefully) optimize for it. |
---|
21 | CPU_CFLAGS = -m528x |
---|
22 | CPU_ASFLAGS = -m528x |
---|
23 | |
---|
24 | ASFLAGS = -m528x |
---|
25 | |
---|
26 | # optimize flag: typically -0, could use -O4 or -fast, -O4 is ok for RTEMS |
---|
27 | CFLAGS_OPTIMIZE_V= -O4 -fomit-frame-pointer |
---|
28 | |
---|
29 | # This target does NOT support the KA9Q TCP/IP stack so ignore requests |
---|
30 | # to enable it. |
---|
31 | #HAS_KA9Q=yes |
---|
32 | |
---|
33 | # Override default start file |
---|
34 | #START_BASE=start5206 |
---|
35 | |
---|
36 | # This section makes the target dependent options file. |
---|
37 | # NDEBUG (C library) |
---|
38 | # if defined asserts do not generate code. This is commonly used |
---|
39 | # as a command line option. |
---|
40 | # |
---|
41 | # RTEMS_TEST_NO_PAUSE (RTEMS tests) |
---|
42 | # do not pause between screens of output in the rtems tests |
---|
43 | # |
---|
44 | # STACK_CHECKER_ON (RTEMS support code) |
---|
45 | # If defined, stack bounds checking is enabled. |
---|
46 | # |
---|
47 | # STACK_CHECKER_REPORT_USAGE (RTEMS support code) |
---|
48 | # If this and STACK_CHECKER_ON are defined, then a report on stack usage |
---|
49 | # per task is printed when the program exits. |
---|
50 | # |
---|
51 | # RTEMS_DEBUG (RTEMS) |
---|
52 | # If defined, debug checks in RTEMS and support library code are enabled. |
---|
53 | |
---|
54 | define make-target-options |
---|
55 | @echo "/* #define NDEBUG 1 */ " >>$@ |
---|
56 | @echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
---|
57 | @echo "/* #define STACK_CHECKER_ON 1 */" >>$@ |
---|
58 | @echo "/* #define STACK_CHECKER_REPORT_USAGE 1 */" >>$@ |
---|
59 | @echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
---|
60 | endef |
---|
61 | |
---|
62 | |
---|
63 | ifndef MTARGET |
---|
64 | MTARGET=ram |
---|
65 | endif |
---|
66 | |
---|
67 | |
---|
68 | # The following are definitions of make-exe which will work using ld as |
---|
69 | # is currently required. It is expected that as of gcc 2.8, the end user |
---|
70 | # will be able to override parts of the compilers specs and link using gcc. |
---|
71 | |
---|
72 | |
---|
73 | define make-exe |
---|
74 | $(LINK.c) $(AM_CFLAGS) -m5200 $(AM_LDFLAGS) -qnolinkcmds -o $(basename $@).nxe \ |
---|
75 | $(LINK_OBJS) $(LINK_LIBS) -Wl,-Tlinkcmds |
---|
76 | $(OBJCOPY) -O binary --strip-all $(basename $@).nxe $@ |
---|
77 | $(SIZE) $(basename $@).nxe |
---|
78 | endef |
---|
79 | define make-cxx-exe |
---|
80 | $(LINK.cc) $(AM_CFLAGS) -m5200 $(AM_LDFLAGS) -qnolinkcmds -o $(basename $@).nxe \ |
---|
81 | $(LINK_OBJS) $(LINK_LIBS) -Wl,-Tlinkcmds |
---|
82 | $(OBJCOPY) -O binary --strip-all $(basename $@).nxe $@ |
---|
83 | $(SIZE) $(basename $@).nxe |
---|
84 | endef |
---|
85 | |
---|
86 | # Miscellaneous additions go here |
---|