source: rtems/make/custom/uC5282.cfg @ 362c2bc2

4.104.114.84.9
Last change on this file since 362c2bc2 was 362c2bc2, checked in by Eric Norum <WENorum@…>, on Jan 28, 2005 at 7:38:20 PM

New BSP.

  • Property mode set to 100644
File size: 2.4 KB
Line 
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
11RTEMS_CPU=m68k
12RTEMS_CPU_MODEL=mcf5282
13
14include $(RTEMS_ROOT)/make/custom/default.cfg
15
16# This is the actual bsp directory used during the build process.
17RTEMS_BSP_FAMILY=uC5282
18
19#  This contains the compiler options necessary to select the CPU model
20#  and (hopefully) optimize for it.
21CPU_CFLAGS = -m528x
22CPU_ASFLAGS = -m528x
23
24ASFLAGS = -m528x
25
26# optimize flag: typically -0, could use -O4 or -fast, -O4 is ok for RTEMS
27CFLAGS_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
54define 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 */"                >>$@
60endef
61
62
63ifndef MTARGET
64MTARGET=ram
65endif
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
73define 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
78endef
79define 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
84endef
85
86# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.