source: rtems/bsps/powerpc/motorola_powerpc/config/qemuprep.cfg @ 499385e

5
Last change on this file since 499385e was adb85dd, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 21, 2018 at 8:22:08 AM

bsps: Move make/custom/* files to bsps

Adjust various build files. Remove automatic generation of the
c/src/lib/libbsp/*/acinclude.m4 files from bootstrap script.

This patch is a part of the BSP source reorganization.

Update #3285.

  • 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
8
9#  This contains the compiler options necessary to select the CPU model
10#  and (hopefully) optimize for it.
11#
12CPU_CFLAGS = -mcpu=powerpc -mmultiple -mstring -mstrict-align -D__ppc_generic
13
14# optimize flag: typically -O2
15CFLAGS_OPTIMIZE_V = -O2 -g
16CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
17
18LDFLAGS = -Wl,--gc-sections
19
20ifdef PURE_BINARY
21define bsp-post-link
22        $(default-bsp-post-link)
23        $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
24endef
25else
26define bsp-post-link
27        $(default-bsp-post-link)
28        $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) rtems
29        gzip -vf9 rtems
30        $(LD) -o $(basename $@)$(DOWNEXT)  $(PROJECT_RELEASE)/lib/bootloader.o \
31            --just-symbols=$(basename $@)$(EXEEXT) \
32            --no-warn-mismatch \
33            -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \
34            -Map $(basename $@).map && chmod 755 $@
35        rm -f rtems.gz
36endef
37endif
Note: See TracBrowser for help on using the repository browser.