[bffb938] | 1 | # |
---|
| 2 | # Custom file for "portsw" -- AMD 29205 based board |
---|
| 3 | # |
---|
| 4 | # $Id$ |
---|
| 5 | # |
---|
| 6 | |
---|
[3a8915e] | 7 | # Note: This file is broken for sure |
---|
| 8 | |
---|
| 9 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
[bffb938] | 10 | |
---|
| 11 | RTEMS_CPU=a29k |
---|
| 12 | RTEMS_CPU_MODEL=a29205 |
---|
| 13 | |
---|
| 14 | # This is the actual bsp directory used during the build process. |
---|
| 15 | RTEMS_BSP_FAMILY=portsw |
---|
| 16 | |
---|
[3a8915e] | 17 | # This section makes the target dependent options file. |
---|
| 18 | |
---|
| 19 | # NDEBUG (C library) |
---|
| 20 | # if defined asserts do not generate code. This is commonly used |
---|
| 21 | # as a command line option. |
---|
[bffb938] | 22 | # |
---|
[3a8915e] | 23 | # RTEMS_TEST_NO_PAUSE (RTEMS tests) |
---|
| 24 | # do not pause between screens of output in the rtems tests |
---|
| 25 | # |
---|
| 26 | # RTEMS_DEBUG (RTEMS) |
---|
| 27 | # If defined, debug checks in RTEMS and support library code are enabled. |
---|
[bffb938] | 28 | # |
---|
[0280cb6] | 29 | |
---|
[3a8915e] | 30 | define make-target-options |
---|
| 31 | @echo "/* #define NDEBUG 1 */ " >>$@ |
---|
| 32 | @echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
---|
| 33 | @echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
---|
| 34 | endef |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | ifeq ($(RTEMS_USE_GCC272),yes) |
---|
| 38 | define make-exe |
---|
| 39 | $(LD) $(LDFLAGS) -N -e _start \ |
---|
| 40 | -T$(PROJECT_RELEASE)/lib/linkcmds\ |
---|
| 41 | -o $(basename $@).exe \ |
---|
| 42 | $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group |
---|
| 43 | $(NM) -n $(basename $@).exe > $(basename $@).num |
---|
| 44 | $(SIZE) $(basename $@).exe |
---|
| 45 | endef |
---|
| 46 | else |
---|
| 47 | define make-exe |
---|
| 48 | $(CC) $(CPPFLAGS) -Wl,-Map,$(basename $@).map \ |
---|
| 49 | $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \ |
---|
| 50 | $(LINK_OBJS) $(LINK_LIBS) |
---|
| 51 | $(NM) -n $(basename $@).exe > $(basename $@).num |
---|
| 52 | $(SIZE) $(basename $@).exe |
---|
| 53 | endef |
---|
| 54 | endif |
---|
[bffb938] | 55 | |
---|
| 56 | # Miscellaneous additions go here |
---|