1 | # |
---|
2 | # Configuration file for the GDB C4x simulator |
---|
3 | # |
---|
4 | # $Id$ |
---|
5 | # |
---|
6 | |
---|
7 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
8 | |
---|
9 | ifeq ($(RTEMS_CPU_MODEL),) |
---|
10 | RTEMS_BSP=c4xsim |
---|
11 | RTEMS_CPU_MODEL=c40 |
---|
12 | CPU_CFLAGS=-mcpu=40 #-msmall |
---|
13 | endif |
---|
14 | |
---|
15 | # XXX add this temporarily until c4x-rtems target defines this. |
---|
16 | CPU_CFLAGS += -D__rtems__ |
---|
17 | |
---|
18 | # This is the actual bsp directory used during the build process. |
---|
19 | RTEMS_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 |
---|
25 | CFLAGS_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 | |
---|
39 | define make-target-options |
---|
40 | @echo "/* #define NDEBUG 1 */ " >>$@ |
---|
41 | @echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
---|
42 | @echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
---|
43 | endef |
---|
44 | |
---|
45 | # this target has no start file |
---|
46 | START_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 | |
---|
52 | define make-exe |
---|
53 | $(CC) $(CPPFLAGS) $(CFLAGS) -o $(basename $@).exe \ |
---|
54 | $(LINK_OBJS) $(LINK_LIBS) |
---|
55 | $(NM) -g -n $@ > $(basename $@).num |
---|
56 | $(SIZE) $@ |
---|
57 | endef |
---|
58 | |
---|
59 | # Miscellaneous additions go here |
---|