source: rtems/c/src/lib/libbsp/powerpc/motorola_powerpc/make/custom/qemuprep.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: 1.0 KB
RevLine 
[f616734f]1#
2#  Config file for the PowerPC 604 based mvme2307
3#
4
5include $(RTEMS_ROOT)/make/custom/default.cfg
6
7RTEMS_CPU=powerpc
8RTEMS_CPU_MODEL=mpc604
9
10#  This contains the compiler options necessary to select the CPU model
[45e5623]11#  and (hopefully) optimize for it.
[f616734f]12#
13CPU_CFLAGS = -mcpu=powerpc -mmultiple -mstring -mstrict-align -D__ppc_generic
14
15# optimize flag: typically -O2
16CFLAGS_OPTIMIZE_V = -O2 -g
[45e5623]17CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
18
19LDFLAGS = -Wl,--gc-sections
[f616734f]20
21ifdef PURE_BINARY
22define bsp-post-link
23        $(default-bsp-post-link)
[efdda565]24        $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
[f616734f]25endef
26else
27define bsp-post-link
28        $(default-bsp-post-link)
[efdda565]29        $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) rtems
[f616734f]30        gzip -vf9 rtems
31        $(LD) -o $(basename $@)$(DOWNEXT)  $(PROJECT_RELEASE)/lib/bootloader.o \
[efdda565]32            --just-symbols=$(basename $@)$(EXEEXT) \
[7203b70]33            --no-warn-mismatch \
[f616734f]34            -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \
35            -Map $(basename $@).map && chmod 755 $@
36        rm -f rtems.gz
37endef
38endif
Note: See TracBrowser for help on using the repository browser.