1 | # |
---|
2 | # Config file for the "bare" BSP |
---|
3 | # |
---|
4 | # $Id$ |
---|
5 | # |
---|
6 | |
---|
7 | # This is the actual bsp directory used during the build process. |
---|
8 | RTEMS_BSP_FAMILY=bare |
---|
9 | |
---|
10 | RTEMS_BSP=bare |
---|
11 | |
---|
12 | RTEMS_CPU_MODEL=$(BARE_CPU_MODEL) |
---|
13 | |
---|
14 | TARGET_ARCH=o-$(RTEMS_BSP_FAMILY)-$(BARE_CPU_MODEL) |
---|
15 | |
---|
16 | CPU_CFLAGS=$(BARE_CPU_CFLAGS) |
---|
17 | |
---|
18 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
19 | |
---|
20 | # optimize flag: typically -0, could use -O4 or -fast |
---|
21 | # -O4 is ok for RTEMS |
---|
22 | CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
---|
23 | |
---|
24 | # This section makes the target dependent options file. |
---|
25 | # NDEBUG (C library) |
---|
26 | # if defined asserts do not generate code. This is commonly used |
---|
27 | # as a command line option. |
---|
28 | # |
---|
29 | # RTEMS_TEST_NO_PAUSE (RTEMS tests) |
---|
30 | # do not pause between screens of output in the rtems tests |
---|
31 | # |
---|
32 | # RTEMS_DEBUG (RTEMS) |
---|
33 | # If defined, debug checks in RTEMS and support library code are enabled. |
---|
34 | # |
---|
35 | |
---|
36 | define make-target-options |
---|
37 | @echo "/* #define NDEBUG 1 */ " >>$@ |
---|
38 | @echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
---|
39 | @echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
---|
40 | endef |
---|
41 | |
---|
42 | # this target has no start file |
---|
43 | START_BASE= |
---|
44 | |
---|
45 | # The following are definitions of make-exe which will work using ld as |
---|
46 | # is currently required. It is expected that as of gcc 2.8, the end user |
---|
47 | # will be able to override parts of the compilers specs and link using gcc. |
---|
48 | |
---|
49 | define make-exe |
---|
50 | echo "Cannot do a link with the bare bsp." |
---|
51 | echo "#!/bin/sh" > $(basename $@).exe |
---|
52 | echo "echo \"Cannot do a link with the bare bsp.\"" >> $(basename $@).exe |
---|
53 | endef |
---|
54 | |
---|
55 | # Miscellaneous additions go here |
---|