[19ca797] | 1 | # |
---|
[d273d78a] | 2 | # Config file for the PowerPC 604 based mvme2307 |
---|
[19ca797] | 3 | # |
---|
| 4 | # $Id$ |
---|
| 5 | # |
---|
| 6 | |
---|
| 7 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
| 8 | |
---|
| 9 | RTEMS_CPU=powerpc |
---|
[acc25ee] | 10 | RTEMS_CPU_MODEL=mpc604 |
---|
[df49c60] | 11 | RTEMS_PPC_EXCEPTION_PROCESSING_MODEL=new |
---|
[19ca797] | 12 | |
---|
| 13 | # This is the actual bsp directory used during the build process. |
---|
[d273d78a] | 14 | RTEMS_BSP_FAMILY=motorola_powerpc |
---|
[19ca797] | 15 | |
---|
| 16 | # This section makes the target dependent options file. |
---|
| 17 | |
---|
| 18 | # PPC_VECTOR_FILE_BASE (PowerPC) |
---|
| 19 | # This defines the base address of the exception table. |
---|
| 20 | # NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100 |
---|
| 21 | |
---|
| 22 | define make-target-options |
---|
[df49c60] | 23 | @echo "#define PPCN_60X_USE_DINK 0" >>$@ |
---|
| 24 | @echo "#define PPCN_60X_USE_NONE 1" >>$@ |
---|
| 25 | @echo "#define PPC_USE_DATA_CACHE 1" >>$@ |
---|
| 26 | @echo "#define PPC_VECTOR_FILE_BASE 0x0100" >>$@ |
---|
[19ca797] | 27 | endef |
---|
| 28 | |
---|
| 29 | # This contains the compiler options necessary to select the CPU model |
---|
| 30 | # and (hopefully) optimize for it. |
---|
| 31 | # |
---|
[df49c60] | 32 | CPU_CFLAGS = -mcpu=604 -mmultiple -mstring -mstrict-align |
---|
[19ca797] | 33 | |
---|
| 34 | # optimize flag: typically -0, could use -O4 or -fast |
---|
| 35 | # -O4 is ok for RTEMS |
---|
| 36 | # NOTE: some level of -O may be actually required by inline assembler |
---|
[df49c60] | 37 | #CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions |
---|
| 38 | CFLAGS_OPTIMIZE_V = -O4 |
---|
| 39 | |
---|
| 40 | # debug flags: typically none, but at least -O1 is required due to this |
---|
| 41 | # BSP using inlined code |
---|
| 42 | CFLAGS_DEBUG_V = -O1 |
---|
| 43 | |
---|
| 44 | # profile flags: typically none, but at least -O1 is required due to this |
---|
| 45 | # BSP using inlined code |
---|
| 46 | CFLAGS_PROFILE_V = -O1 |
---|
[19ca797] | 47 | |
---|
| 48 | # The following is a linkcmds file which will work without using the |
---|
| 49 | # -specs system in gcc 2.8. |
---|
| 50 | # $(LD) $(XLDFLAGS) -T $(LINKCMDS) \ |
---|
| 51 | # -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES) |
---|
| 52 | # $(LD) $(XLDFLAGS) -Ttext 0x20000 \ |
---|
| 53 | # -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES) |
---|
| 54 | |
---|
| 55 | # $(CC) -mmvme -mrtems -nostartfiles -mcpu=603 \ |
---|
| 56 | # -o $(basename $@).exe -L $(PROJECT_RELEASE)/lib \ |
---|
| 57 | # $(START_FILE) $(LINK_OBJS) \ |
---|
| 58 | # $(LD_LIBS) \ |
---|
| 59 | # -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\) |
---|
| 60 | define make-exe |
---|
[7409426] | 61 | $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ |
---|
| 62 | -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS) |
---|
| 63 | $(NM) -g -n $(basename $@).nxe > $(basename $@).num |
---|
| 64 | $(SIZE) $(basename $@).nxe |
---|
| 65 | $(OBJCOPY) $(basename $@).nxe rtems -O binary -R .comment -S |
---|
| 66 | gzip -vf9 rtems |
---|
| 67 | $(LD) -o $@ $(PROJECT_RELEASE)/lib/bootloader.o --just-symbols=$(basename $@).nxe \ |
---|
| 68 | -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \ |
---|
| 69 | -Map $(basename $@).map && chmod 755 $@ |
---|
| 70 | rm -f rtems.gz |
---|
[19ca797] | 71 | endef |
---|
[df49c60] | 72 | |
---|
[19ca797] | 73 | # Miscellaneous additions go here |
---|
| 74 | |
---|
| 75 | # No start file |
---|
| 76 | START_BASE= |
---|