diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-04-21 10:22:08 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-04-23 15:18:42 +0200 |
commit | adb85dd473af5c9a72e9da9b7fe013d1b216abc3 (patch) | |
tree | ed54d2ce2354cf2b75995d1e1f2bc685436bc4ca /bsps/powerpc/motorola_powerpc | |
parent | bsps: Remove AC_CONFIG_SRCDIR() (diff) | |
download | rtems-adb85dd473af5c9a72e9da9b7fe013d1b216abc3.tar.bz2 |
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.
Diffstat (limited to 'bsps/powerpc/motorola_powerpc')
-rw-r--r-- | bsps/powerpc/motorola_powerpc/config/mcp750.cfg | 31 | ||||
-rw-r--r-- | bsps/powerpc/motorola_powerpc/config/mtx603e.cfg | 32 | ||||
-rw-r--r-- | bsps/powerpc/motorola_powerpc/config/mvme2100.cfg | 30 | ||||
-rw-r--r-- | bsps/powerpc/motorola_powerpc/config/mvme2307.cfg | 30 | ||||
-rw-r--r-- | bsps/powerpc/motorola_powerpc/config/qemuprep-altivec.cfg | 37 | ||||
-rw-r--r-- | bsps/powerpc/motorola_powerpc/config/qemuprep.cfg | 37 |
6 files changed, 197 insertions, 0 deletions
diff --git a/bsps/powerpc/motorola_powerpc/config/mcp750.cfg b/bsps/powerpc/motorola_powerpc/config/mcp750.cfg new file mode 100644 index 0000000000..691a76a65a --- /dev/null +++ b/bsps/powerpc/motorola_powerpc/config/mcp750.cfg @@ -0,0 +1,31 @@ +# +# Config file for Motorola MCP750 -- a MPC750 CompactPCI board +# + +include $(RTEMS_ROOT)/make/custom/default.cfg + +RTEMS_CPU=powerpc + +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. +# +CPU_CFLAGS = -mcpu=750 -Dmpc750 + +# optimize flag: typically -O2 +CFLAGS_OPTIMIZE_V = -O2 -g -mmultiple -mstring -mstrict-align +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections + +LDFLAGS = -Wl,--gc-sections + +define bsp-post-link + $(default-bsp-post-link) + $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) rtems + gzip -vf9 rtems + $(LD) -o $(basename $@)$(DOWNEXT) \ + $ $(PROJECT_RELEASE)/lib/bootloader.o \ + --just-symbols=$(basename $@)$(EXEEXT) \ + --no-warn-mismatch \ + -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \ + -Map $(basename $@).map && chmod 755 $@ + rm -f rtems.gz +endef diff --git a/bsps/powerpc/motorola_powerpc/config/mtx603e.cfg b/bsps/powerpc/motorola_powerpc/config/mtx603e.cfg new file mode 100644 index 0000000000..dd889b8e70 --- /dev/null +++ b/bsps/powerpc/motorola_powerpc/config/mtx603e.cfg @@ -0,0 +1,32 @@ +# +# Config file for Motorola MTX603e -- a MPC603e ATX form factor board +# + +include $(RTEMS_ROOT)/make/custom/default.cfg + +RTEMS_CPU=powerpc + +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. +CPU_CFLAGS = -mcpu=603e -Dppc603e + +# optimize flag: typically -O2 +CFLAGS_OPTIMIZE_V = -O2 -g -mmultiple -mstring -mstrict-align +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections + +LDFLAGS = -Wl,--gc-sections + +define bsp-post-link + $(default-bsp-post-link) + $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) rtems + gzip -vf9 rtems + $(LD) -o $(basename $@)$(DOWNEXT) \ + $(PROJECT_RELEASE)/lib/bootloader.o \ + --just-symbols=$(basename $@)$(EXEEXT) \ + --no-warn-mismatch \ + -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \ + -Map $(basename $@).map && chmod 755 $@ + rm -f rtems.gz +endef + +# Miscellaneous additions go here diff --git a/bsps/powerpc/motorola_powerpc/config/mvme2100.cfg b/bsps/powerpc/motorola_powerpc/config/mvme2100.cfg new file mode 100644 index 0000000000..e358c2d7af --- /dev/null +++ b/bsps/powerpc/motorola_powerpc/config/mvme2100.cfg @@ -0,0 +1,30 @@ +# +# Config file for Motorola MVME2100 -- a MPC8240 VMEBus board +# + +include $(RTEMS_ROOT)/make/custom/default.cfg + +RTEMS_CPU=powerpc + +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. +CPU_CFLAGS = -mcpu=603e -Dppc603e + +# optimize flag: typically -O2 +CFLAGS_OPTIMIZE_V = -O2 -g -mmultiple -mstring -mstrict-align +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections + +LDFLAGS = -Wl,--gc-sections + +define bsp-post-link + $(default-bsp-post-link) + $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) rtems + gzip -vf9 rtems + $(LD) -o $(basename $@)$(DOWNEXT) \ + $(PROJECT_RELEASE)/lib/bootloader.o \ + --just-symbols=$(basename $@)$(EXEEXT) \ + --no-warn-mismatch \ + -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \ + -Map $(basename $@).map && chmod 755 $@ + rm -f rtems.gz +endef diff --git a/bsps/powerpc/motorola_powerpc/config/mvme2307.cfg b/bsps/powerpc/motorola_powerpc/config/mvme2307.cfg new file mode 100644 index 0000000000..1a5115999b --- /dev/null +++ b/bsps/powerpc/motorola_powerpc/config/mvme2307.cfg @@ -0,0 +1,30 @@ +# +# Config file for the PowerPC 604 based mvme2307 +# + +include $(RTEMS_ROOT)/make/custom/default.cfg + +RTEMS_CPU=powerpc + +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. +# +CPU_CFLAGS = -mcpu=604 -mmultiple -mstring -mstrict-align -meabi + +# optimize flag: typically -O2 +CFLAGS_OPTIMIZE_V = -O2 -g +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections + +LDFLAGS = -Wl,--gc-sections + +define bsp-post-link + $(default-bsp-post-link) + $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) rtems + gzip -vf9 rtems + $(LD) -o $(basename $@)$(DOWNEXT) $(PROJECT_RELEASE)/lib/bootloader.o \ + --just-symbols=$(basename $@)$(EXEEXT) \ + --no-warn-mismatch \ + -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \ + -Map $(basename $@).map && chmod 755 $@ + rm -f rtems.gz +endef diff --git a/bsps/powerpc/motorola_powerpc/config/qemuprep-altivec.cfg b/bsps/powerpc/motorola_powerpc/config/qemuprep-altivec.cfg new file mode 100644 index 0000000000..9d09089f94 --- /dev/null +++ b/bsps/powerpc/motorola_powerpc/config/qemuprep-altivec.cfg @@ -0,0 +1,37 @@ +# +# Config file for the PowerPC 604 based mvme2307 +# + +include $(RTEMS_ROOT)/make/custom/default.cfg + +RTEMS_CPU=powerpc + +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. +# +CPU_CFLAGS = -mcpu=7400 -mmultiple -mstring -mstrict-align -D__ppc_generic + +# optimize flag: typically -O2 +CFLAGS_OPTIMIZE_V = -O2 -g +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections + +LDFLAGS = -Wl,--gc-sections + +ifdef PURE_BINARY +define bsp-post-link + $(default-bsp-post-link) + $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) +endef +else +define bsp-post-link + $(default-bsp-post-link) + $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) rtems + gzip -vf9 rtems + $(LD) -o $(basename $@)$(DOWNEXT) $(PROJECT_RELEASE)/lib/bootloader.o \ + --just-symbols=$(basename $@)$(EXEEXT) \ + --no-warn-mismatch \ + -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \ + -Map $(basename $@).map && chmod 755 $@ + rm -f rtems.gz +endef +endif diff --git a/bsps/powerpc/motorola_powerpc/config/qemuprep.cfg b/bsps/powerpc/motorola_powerpc/config/qemuprep.cfg new file mode 100644 index 0000000000..fa5abd6bba --- /dev/null +++ b/bsps/powerpc/motorola_powerpc/config/qemuprep.cfg @@ -0,0 +1,37 @@ +# +# Config file for the PowerPC 604 based mvme2307 +# + +include $(RTEMS_ROOT)/make/custom/default.cfg + +RTEMS_CPU=powerpc + +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. +# +CPU_CFLAGS = -mcpu=powerpc -mmultiple -mstring -mstrict-align -D__ppc_generic + +# optimize flag: typically -O2 +CFLAGS_OPTIMIZE_V = -O2 -g +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections + +LDFLAGS = -Wl,--gc-sections + +ifdef PURE_BINARY +define bsp-post-link + $(default-bsp-post-link) + $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) +endef +else +define bsp-post-link + $(default-bsp-post-link) + $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) rtems + gzip -vf9 rtems + $(LD) -o $(basename $@)$(DOWNEXT) $(PROJECT_RELEASE)/lib/bootloader.o \ + --just-symbols=$(basename $@)$(EXEEXT) \ + --no-warn-mismatch \ + -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \ + -Map $(basename $@).map && chmod 755 $@ + rm -f rtems.gz +endef +endif |