source: rtems/c/src/lib/libbsp/powerpc/motorola_powerpc/make/custom/mtx603e.cfg @ 7203b70

5
Last change on this file since 7203b70 was 7203b70, checked in by Sebastian Huber <sebastian.huber@…>, on 06/01/17 at 17:04:05

bsp/motorola_powerpc: Fix for Binutils 2.28+

There are mismatched sections in the bootloader input:

ld: Warning: ticker.exe uses hard float, ticker.ralf uses soft float
ld: ticker.exe: compiled normally and linked with modules compiled with -mrelocatable
ld: failed to merge target specific data of file ticker.exe

Suppress this error explicitly.

  • Property mode set to 100644
File size: 942 bytes
Line 
1#
2#  Config file for Motorola MTX603e -- a MPC603e ATX form factor board
3#
4
5include $(RTEMS_ROOT)/make/custom/default.cfg
6
7RTEMS_CPU=powerpc
8RTEMS_CPU_MODEL=mpc6xx
9
10#  This contains the compiler options necessary to select the CPU model
11#  and (hopefully) optimize for it.
12CPU_CFLAGS = -mcpu=603e -Dppc603e
13
14# optimize flag: typically -O2
15CFLAGS_OPTIMIZE_V = -O2 -g -mmultiple -mstring -mstrict-align
16CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
17
18LDFLAGS = -Wl,--gc-sections
19
20define bsp-post-link
21        $(default-bsp-post-link)
22        $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) rtems
23        gzip -vf9 rtems
24        $(LD) -o $(basename $@)$(DOWNEXT) \
25           $(PROJECT_RELEASE)/lib/bootloader.o \
26            --just-symbols=$(basename $@)$(EXEEXT) \
27            --no-warn-mismatch \
28            -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \
29            -Map $(basename $@).map && chmod 755 $@
30        rm -f rtems.gz
31endef
32
33# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.