[ee733965] | 1 | # |
---|
| 2 | # Config file for MPC860 based Ethernet Comm Board |
---|
| 3 | # |
---|
| 4 | # $Id$ |
---|
| 5 | # |
---|
| 6 | |
---|
| 7 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
| 8 | |
---|
| 9 | RTEMS_CPU=powerpc |
---|
| 10 | RTEMS_CPU_MODEL=mpc860 |
---|
| 11 | |
---|
| 12 | # This is the actual bsp directory used during the build process. |
---|
| 13 | RTEMS_BSP_FAMILY=eth_comm |
---|
| 14 | |
---|
| 15 | CPU_DEFINES=-DPPC_ABI=PPC_ABI_EABI \ |
---|
| 16 | -DPPC_ASM=PPC_ASM_ELF -DPPC_VECTOR_FILE_BASE=0x00000000 |
---|
| 17 | |
---|
| 18 | # This section makes the target dependent options file. |
---|
| 19 | |
---|
| 20 | # NDEBUG (C library) |
---|
| 21 | # if defined asserts do not generate code. This is commonly used |
---|
| 22 | # as a command line option. |
---|
| 23 | # |
---|
| 24 | # RTEMS_TEST_NO_PAUSE (RTEMS tests) |
---|
| 25 | # do not pause between screens of output in the rtems tests |
---|
| 26 | # |
---|
| 27 | # RTEMS_DEBUG (RTEMS) |
---|
| 28 | # If defined, debug checks in RTEMS and support library code are enabled. |
---|
| 29 | |
---|
| 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 | # This contains the compiler options necessary to select the CPU model |
---|
| 37 | # and (hopefully) optimize for it. |
---|
| 38 | # |
---|
| 39 | CPU_CFLAGS = -mcpu=860 |
---|
| 40 | |
---|
| 41 | # optimize flag: typically -0, could use -O4 or -fast |
---|
| 42 | # -O4 is ok for RTEMS |
---|
| 43 | # NOTE: some level of -O may be actually required by inline assembler |
---|
| 44 | CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions |
---|
| 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 | # The --defsym arguments define arguments which are required by the linkcmds |
---|
| 52 | # file which is designed for gcc 2.8 |
---|
| 53 | define make-exe |
---|
| 54 | $(LD) $(XLDFLAGS) -T $(LINKCMDS) \ |
---|
| 55 | --defsym __fini=0 --defsym __init=0 \ |
---|
| 56 | -o $@ -u atexit -u __vectors -u download_entry \ |
---|
| 57 | $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group |
---|
| 58 | $(NM) -g -n $@ > $(basename $@).num |
---|
| 59 | $(SIZE) $@ |
---|
| 60 | endef |
---|
| 61 | else |
---|
| 62 | define make-exe |
---|
[effc2c4] | 63 | $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \ |
---|
[ee733965] | 64 | $(LINK_OBJS) $(LINK_LIBS) |
---|
| 65 | $(NM) -g -n $@ > $(basename $@).num |
---|
| 66 | $(SIZE) $@ |
---|
| 67 | endef |
---|
| 68 | endif |
---|
| 69 | |
---|
| 70 | # Miscellaneous additions go here |
---|
| 71 | |
---|
| 72 | |
---|