1 | # |
---|
2 | # Config file for the efi332 BSP |
---|
3 | # |
---|
4 | # $Id$ |
---|
5 | # |
---|
6 | |
---|
7 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
8 | |
---|
9 | RTEMS_CPU=m68k |
---|
10 | RTEMS_CPU_MODEL=mcpu32 |
---|
11 | |
---|
12 | # This is the actual bsp directory used during the build process. |
---|
13 | RTEMS_BSP_FAMILY=efi332 |
---|
14 | |
---|
15 | # This contains the compiler options necessary to select the CPU model |
---|
16 | # and (hopefully) optimize for it. |
---|
17 | CPU_CFLAGS = -mcpu32 |
---|
18 | |
---|
19 | # optimize flag: typically -0, could use -O4 or -fast, -O4 is ok for RTEMS |
---|
20 | CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
---|
21 | |
---|
22 | # This target does NOT support the TCP/IP stack so ignore requests |
---|
23 | # to enable it. |
---|
24 | HAS_NETWORKING=no |
---|
25 | |
---|
26 | # Override default start file |
---|
27 | START_BASE=start332 |
---|
28 | |
---|
29 | # This section makes the target dependent options file. |
---|
30 | # NDEBUG (C library) |
---|
31 | # if defined asserts do not generate code. This is commonly used |
---|
32 | # as a command line option. |
---|
33 | # |
---|
34 | # RTEMS_TEST_NO_PAUSE (RTEMS tests) |
---|
35 | # do not pause between screens of output in the rtems tests |
---|
36 | # |
---|
37 | # RTEMS_DEBUG (RTEMS) |
---|
38 | # If defined, debug checks in RTEMS and support library code are enabled. |
---|
39 | |
---|
40 | define make-target-options |
---|
41 | @echo "/* #define NDEBUG 1 */ " >>$@ |
---|
42 | @echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
---|
43 | @echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
---|
44 | endef |
---|
45 | |
---|
46 | # The following are definitions of make-exe which will work using ld as |
---|
47 | # is currently required. It is expected that as of gcc 2.8, the end user |
---|
48 | # will be able to override parts of the compilers specs and link using gcc. |
---|
49 | |
---|
50 | ifeq ($(RTEMS_USE_GCC272),yes) |
---|
51 | define make-exe |
---|
52 | $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).nxe \ |
---|
53 | $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group |
---|
54 | $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i |
---|
55 | $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \ |
---|
56 | $(PACKHEX) > $(basename $@).exe |
---|
57 | $(NM) -g -n $(basename $@).nxe > $(basename $@).num |
---|
58 | $(SIZE) $(basename $@).nxe |
---|
59 | endef |
---|
60 | else |
---|
61 | define make-exe |
---|
62 | $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \ |
---|
63 | $(LINK_OBJS) $(LINK_LIBS) |
---|
64 | $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i |
---|
65 | $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \ |
---|
66 | $(PACKHEX) > $(basename $@).exe |
---|
67 | $(NM) -g -n $(basename $@).nxe > $(basename $@).num |
---|
68 | $(SIZE) $(basename $@).nxe |
---|
69 | endef |
---|
70 | endif |
---|
71 | |
---|
72 | |
---|
73 | # Miscellaneous additions go here |
---|