[bffb938] | 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 |
---|
[588b689] | 10 | RTEMS_CPU_MODEL=mcpu32 |
---|
[bffb938] | 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 | # |
---|
| 18 | # XXX JRS - my gas does not grok -m68332 |
---|
| 19 | #CPU_CFLAGS = -m68332 |
---|
| 20 | CPU_CFLAGS = -m68020 |
---|
| 21 | |
---|
| 22 | # optimize flag: typically -0, could use -O4 or -fast, -O4 is ok for RTEMS |
---|
| 23 | CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
---|
| 24 | |
---|
[0280cb6] | 25 | # This target does NOT support the TCP/IP stack so ignore requests |
---|
| 26 | # to enable it. |
---|
| 27 | HAS_NETWORKING=no |
---|
| 28 | |
---|
[bffb938] | 29 | # Override default start file |
---|
| 30 | START_BASE=start332 |
---|
| 31 | |
---|
| 32 | # This section makes the target dependent options file. |
---|
| 33 | # NDEBUG (C library) |
---|
| 34 | # if defined asserts do not generate code. This is commonly used |
---|
| 35 | # as a command line option. |
---|
| 36 | # |
---|
| 37 | # RTEMS_TEST_NO_PAUSE (RTEMS tests) |
---|
| 38 | # do not pause between screens of output in the rtems tests |
---|
| 39 | # |
---|
| 40 | # RTEMS_DEBUG (RTEMS) |
---|
| 41 | # If defined, debug checks in RTEMS and support library code are enabled. |
---|
| 42 | |
---|
| 43 | define make-target-options |
---|
| 44 | @echo "/* #define NDEBUG 1 */ " >>$@ |
---|
| 45 | @echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
---|
| 46 | @echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
---|
| 47 | endef |
---|
| 48 | |
---|
| 49 | # The following are definitions of make-exe which will work using ld as |
---|
| 50 | # is currently required. It is expected that as of gcc 2.8, the end user |
---|
| 51 | # will be able to override parts of the compilers specs and link using gcc. |
---|
| 52 | |
---|
| 53 | ifeq ($(RTEMS_USE_GCC272),yes) |
---|
| 54 | define make-exe |
---|
| 55 | $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).nxe \ |
---|
| 56 | $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group |
---|
| 57 | $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i |
---|
| 58 | $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \ |
---|
| 59 | $(PROJECT_TOOLS)/packhex > $(basename $@).exe |
---|
| 60 | $(NM) -g -n $(basename $@).nxe > $(basename $@).num |
---|
| 61 | $(SIZE) $(basename $@).nxe |
---|
| 62 | endef |
---|
| 63 | else |
---|
| 64 | define make-exe |
---|
[98100d2] | 65 | $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \ |
---|
| 66 | $(LINK_OBJS) $(LINK_LIBS) |
---|
[bffb938] | 67 | $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i |
---|
| 68 | $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \ |
---|
| 69 | $(PROJECT_TOOLS)/packhex > $(basename $@).exe |
---|
| 70 | $(NM) -g -n $(basename $@).nxe > $(basename $@).num |
---|
| 71 | $(SIZE) $(basename $@).nxe |
---|
| 72 | endef |
---|
| 73 | endif |
---|
| 74 | |
---|
| 75 | |
---|
| 76 | # Miscellaneous additions go here |
---|