[bffb938] | 1 | # |
---|
| 2 | # Config file for a "ODS 68302" BSP |
---|
| 3 | # |
---|
| 4 | # Differs from the gen68302 by providing most of the boot code as C |
---|
| 5 | # code. This allows separate board definitions to be based on C |
---|
| 6 | # header files. The file is based on the VARIANT defined. |
---|
| 7 | # |
---|
| 8 | # $Id$ |
---|
| 9 | # |
---|
| 10 | |
---|
| 11 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
| 12 | |
---|
| 13 | RTEMS_CPU=m68k |
---|
| 14 | RTEMS_CPU_MODEL=m68302 |
---|
| 15 | |
---|
| 16 | # This is the actual bsp directory used during the build process. |
---|
| 17 | RTEMS_BSP_FAMILY=ods68302 |
---|
| 18 | |
---|
| 19 | # |
---|
| 20 | # This contains the compiler options necessary to select the CPU model |
---|
| 21 | # and (hopefully) optimize for it. |
---|
| 22 | # |
---|
[df49c60] | 23 | # 68000+softfloat results in gcc 2.95.2 giving default libraries. |
---|
| 24 | # CPU_CFLAGS = -m68302 -msoft-float |
---|
| 25 | CPU_CFLAGS = -m68302 |
---|
[bffb938] | 26 | |
---|
| 27 | # optimize flag: typically -0, could use -O4 or -fast |
---|
| 28 | # -O4 is ok for RTEMS |
---|
| 29 | CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
---|
| 30 | |
---|
| 31 | # debugging please |
---|
[d6c83529] | 32 | CFLAGS_DEBUG_V = |
---|
[bffb938] | 33 | |
---|
| 34 | # The following are definitions of make-exe which will work using ld as |
---|
| 35 | # is currently required. It is expected that as of gcc 2.8, the end user |
---|
| 36 | # will be able to override parts of the compilers specs and link using gcc. |
---|
| 37 | |
---|
| 38 | ifeq ($(RTEMS_USE_GCC272),yes) |
---|
| 39 | |
---|
| 40 | # override default location of Standard C Library |
---|
[2094513] | 41 | # LIBC_LIBC=$(RTEMS_LIBC_DIR)/lib/m68000/libc.a |
---|
| 42 | # LIBC_LIBM=$(RTEMS_LIBC_DIR)/lib/m68000/libm.a |
---|
[bffb938] | 43 | |
---|
| 44 | define make-exe |
---|
[dda8f5dc] | 45 | $(LD) $(LDFLAGS) -N \ |
---|
[bffb938] | 46 | -T $(LINKCMDS) -o $(basename $@).exe \ |
---|
| 47 | $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group |
---|
| 48 | $(NM) -g -n $(basename $@).exe > $(basename $@).num |
---|
| 49 | $(SIZE) $(basename $@).exe |
---|
| 50 | endef |
---|
| 51 | else |
---|
[dda8f5dc] | 52 | |
---|
[bffb938] | 53 | define make-exe |
---|
[df49c60] | 54 | $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ |
---|
[a463a2f] | 55 | -o $@ \ |
---|
| 56 | $(LINK_OBJS) $(LINK_LIBS) |
---|
| 57 | $(NM) -g -n $@ > $(basename $@).num |
---|
| 58 | $(SIZE) $@ |
---|
| 59 | endef |
---|
[bffb938] | 60 | endif |
---|
| 61 | # Miscellaneous additions go here |
---|
| 62 | |
---|
| 63 | ifeq ($(RTEMS_DEBUGGER),yes) |
---|
| 64 | LINKCMDS=$(PROJECT_RELEASE)/lib/debugrom |
---|
| 65 | else |
---|
| 66 | LINKCMDS=$(PROJECT_RELEASE)/lib/rom |
---|
| 67 | endif |
---|
| 68 | |
---|