source: rtems/c/src/lib/libbsp/powerpc/motorola_powerpc/make/custom/qemuprep.cfg @ 2d33672a

5
Last change on this file since 2d33672a was 7203b70, checked in by Sebastian Huber <sebastian.huber@…>, on Jun 1, 2017 at 5:04:05 PM

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
Line 
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
11#  and (hopefully) optimize for it.
12#
13CPU_CFLAGS = -mcpu=powerpc -mmultiple -mstring -mstrict-align -D__ppc_generic
14
15# optimize flag: typically -O2
16CFLAGS_OPTIMIZE_V = -O2 -g
17CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
18
19LDFLAGS = -Wl,--gc-sections
20
21ifdef PURE_BINARY
22define bsp-post-link
23        $(default-bsp-post-link)
24        $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
25endef
26else
27define bsp-post-link
28        $(default-bsp-post-link)
29        $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) rtems
30        gzip -vf9 rtems
31        $(LD) -o $(basename $@)$(DOWNEXT)  $(PROJECT_RELEASE)/lib/bootloader.o \
32            --just-symbols=$(basename $@)$(EXEEXT) \
33            --no-warn-mismatch \
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.