source: rtems/make/custom/c4xsim.cfg @ 61ba9763

4.104.114.84.95
Last change on this file since 61ba9763 was 61ba9763, checked in by Joel Sherrill <joel.sherrill@…>, on Feb 22, 2000 at 6:39:52 PM

New port of RTEMS to TI C3x and C4x.

  • Property mode set to 100644
File size: 1.6 KB
Line 
1#
2#  Config file for the "bare" BSP
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9ifeq ($(RTEMS_CPU_MODEL),)
10RTEMS_BSP=c4xsim
11RTEMS_CPU_MODEL=c40
12CPU_CFLAGS=-mcpu=40 #-msmall
13endif
14
15# XXX add this temporarily until c4x-rtems target defines this.
16CPU_CFLAGS += -D__rtems__
17
18# This is the actual bsp directory used during the build process.
19RTEMS_BSP_FAMILY=c4xsim
20
21# optimize flag: typically -0, could use -O4 or -fast
22# -O4 is ok for RTEMS
23# -O4 is broken for the moment on the C4x gcc
24#CFLAGS_OPTIMIZE_V=-O4
25CFLAGS_OPTIMIZE_V=-O1
26
27#  This section makes the target dependent options file.
28#  NDEBUG (C library)
29#     if defined asserts do not generate code.  This is commonly used
30#     as a command line option.
31#
32#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
33#     do not pause between screens of output in the rtems tests
34#
35#  RTEMS_DEBUG (RTEMS)
36#     If defined, debug checks in RTEMS and support library code are enabled.
37#
38
39define make-target-options
40        @echo "/* #define NDEBUG 1 */ "                     >>$@
41        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
42        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
43endef
44
45# this target has no start file
46START_BASE=
47
48# The following are definitions of make-exe which will work using ld as
49# is currently required.  It is expected that as of gcc 2.8, the end user
50# will be able to override parts of the compilers specs and link using gcc.
51
52define make-exe
53        $(CC) $(CPPFLAGS) $(CFLAGS) -o $(basename $@).exe \
54            $(LINK_OBJS) $(LINK_LIBS)
55        $(NM) -g -n $@ > $(basename $@).num
56        $(SIZE) $@
57endef
58
59# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.