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
|
Rev | Line | |
---|
[f616734f] | 1 | # |
---|
| 2 | # Config file for the PowerPC 604 based mvme2307 |
---|
| 3 | # |
---|
| 4 | |
---|
| 5 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
| 6 | |
---|
| 7 | RTEMS_CPU=powerpc |
---|
| 8 | RTEMS_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 | # |
---|
| 13 | CPU_CFLAGS = -mcpu=powerpc -mmultiple -mstring -mstrict-align -D__ppc_generic |
---|
| 14 | |
---|
| 15 | # optimize flag: typically -O2 |
---|
| 16 | CFLAGS_OPTIMIZE_V = -O2 -g |
---|
[45e5623] | 17 | CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections |
---|
| 18 | |
---|
| 19 | LDFLAGS = -Wl,--gc-sections |
---|
[f616734f] | 20 | |
---|
| 21 | ifdef PURE_BINARY |
---|
| 22 | define bsp-post-link |
---|
| 23 | $(default-bsp-post-link) |
---|
[efdda565] | 24 | $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) |
---|
[f616734f] | 25 | endef |
---|
| 26 | else |
---|
| 27 | define 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 |
---|
| 37 | endef |
---|
| 38 | endif |
---|
Note: See
TracBrowser
for help on using the repository browser.