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.
This commit is contained in:
Sebastian Huber
2018-04-21 10:22:08 +02:00
parent 37dc0471b2
commit adb85dd473
276 changed files with 37 additions and 63 deletions

View File

@@ -0,0 +1,39 @@
#
# Config file for the PowerPC 745x based mvmexxxx
#
#
include $(RTEMS_ROOT)/make/custom/default.cfg
RTEMS_CPU=powerpc
RTEMS_PPC_EXCEPTION_PROCESSING_MODEL=new
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=beatnik
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS = -mcpu=7400 -D__ppc_generic
#T. Straumann; disable sdata=eabi for now until CEXP supports it -meabi -msdata=eabi
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# NOTE: some level of -O may be actually required by inline assembler
#CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
CFLAGS_OPTIMIZE_V = -O2 -g
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
LDFLAGS = -Wl,--gc-sections
# debug flags: typically none, but at least -O1 is required due to this
# BSP using inlined code
CFLAGS_DEBUG_V = -O1 -g
define bsp-post-link
$(default-bsp-post-link)
$(OBJCOPY) -O binary $@ $(basename $@)$(DOWNEXT)
endef
# Miscellaneous additions go here
START_BASE = motld_start

View File

@@ -0,0 +1,10 @@
#
# Config file for customer specific MPC5200 board
#
#
# All GEN5200 configurations share the same base file, only a few
# parameters differ.
#
include $(RTEMS_ROOT)/make/custom/gen5200.inc

View File

@@ -0,0 +1,10 @@
#
# Config file for customer specific MPC5200 board
#
#
# All GEN5200 configurations share the same base file, only a few
# parameters differ.
#
include $(RTEMS_ROOT)/make/custom/gen5200.inc

View File

@@ -0,0 +1,5 @@
#
# Config file for Direct Prototyping Data Processing (DP2) board.
#
include $(RTEMS_ROOT)/make/custom/gen5200.inc

View File

@@ -0,0 +1,19 @@
#
# Shared base config file for GEN5200 BSPs
#
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 -mstrict-align \
-meabi -msdata=sysv -fno-common
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
LDFLAGS = -Wl,--gc-sections

View File

@@ -0,0 +1,12 @@
#
# Config file for Freescale 5200Lite a.k.a. IceCube
#
# NOTE: This is the same as the Embedded Planets EP5200C and
# possibly other MPC5200 boards.
#
# All GEN5200 configurations share the same base file, only a few
# parameters differ.
#
include $(RTEMS_ROOT)/make/custom/gen5200.inc

View File

@@ -0,0 +1,10 @@
#
# Config file for MicroSys PM520 Module (based on MPC5200)
# on carrier board CR825
#
# All GEN5200 configurations share the same base file, only a few
# parameters differ.
#
include $(RTEMS_ROOT)/make/custom/gen5200.inc

View File

@@ -0,0 +1,10 @@
#
# Config file for MicroSys PM520 Module (based on MPC5200)
# on carrier board ZE30
#
# All GEN5200 configurations share the same base file, only a few
# parameters differ.
#
include $(RTEMS_ROOT)/make/custom/gen5200.inc

View File

@@ -0,0 +1,10 @@
##
#
# @file
#
# @ingroup mpc83xx_config
#
# @brief Configuration file for the BR UID base board
#
include $(RTEMS_ROOT)/make/custom/gen83xx.inc

View File

@@ -0,0 +1,22 @@
#
# Shared base config file for GEN83xx BSPs
#
include $(RTEMS_ROOT)/make/custom/default.cfg
#
# FIXME: we might want to use the e300 CPU model explicitely,
# using -me300
# but I doubt the compiler actually generates different code
#
RTEMS_CPU=powerpc
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS = -mcpu=603e -meabi -msdata=sysv -fno-common -mstrict-align
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
LDFLAGS = -Wl,--gc-sections

View File

@@ -0,0 +1,10 @@
#
# Config file for customer specific MPC8349 board
#
#
# All GEN83xx configurations share the same base file, only a few
# parameters differ.
#
include $(RTEMS_ROOT)/make/custom/gen83xx.inc

View File

@@ -0,0 +1,10 @@
##
#
# @file
#
# @ingroup mpc83xx_config
#
# @brief Configuration file for the MPC8309 System on Module.
#
include $(RTEMS_ROOT)/make/custom/gen83xx.inc

View File

@@ -0,0 +1,10 @@
##
#
# @file
#
# @ingroup mpc83xx_config
#
# @brief Configuration file for the MPC8313E Reference Design Board.
#
include $(RTEMS_ROOT)/make/custom/gen83xx.inc

View File

@@ -0,0 +1,10 @@
#
# Config file for freescale's MPC8349EAMDS evaluation board
#
#
# All GEN83xx configurations share the same base file, only a few
# parameters differ.
#
include $(RTEMS_ROOT)/make/custom/gen83xx.inc

View File

@@ -0,0 +1,28 @@
#
# Config file for a PowerPC 405 based card
# mhamel
#
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=405 -Dppc405
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# NOTE: some level of -O may be actually required by inline assembler
CFLAGS_OPTIMIZE_V = -O1 -g
# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2561.
# The following two lines enable compiling and linking on per element.
# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
# LDFLAGS = -Wl,--gc-sections
define bsp-post-link
$(default-bsp-post-link)
$(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
endef

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -0,0 +1,11 @@
#
# gwlcfm RTEMS Test Database.
#
# Format is one line per test that is _NOT_ built.
#
include: testdata/dltests-broken-on-this-bsp.tcfg
include: testdata/disable-jffs2-tests.tcfg
exclude: fsdosfsname01
exclude: linpack

View File

@@ -0,0 +1,10 @@
##
#
# @file
#
# @ingroup mpc55xx_config
#
# @brief configuration file for the GWLCFM MPC5516 board
#
include $(RTEMS_ROOT)/make/custom/mpc55xx.inc

View File

@@ -0,0 +1,11 @@
#
# mpc5566evb RTEMS Test Database.
#
# Format is one line per test that is _NOT_ built.
#
include: testdata/dltests-broken-on-this-bsp.tcfg
include: testdata/disable-jffs2-tests.tcfg
exclude: fsdosfsname01
exclude: linpack

View File

@@ -0,0 +1,10 @@
##
#
# @file
#
# @ingroup mpc55xx_config
#
# @brief Configuration file for MPC5566 evaluation board.
#
include $(RTEMS_ROOT)/make/custom/mpc55xx.inc

View File

@@ -0,0 +1,11 @@
#
# mpc5566evb_spe RTEMS Test Database.
#
# Format is one line per test that is _NOT_ built.
#
include: testdata/dltests-broken-on-this-bsp.tcfg
include: testdata/disable-jffs2-tests.tcfg
exclude: fsdosfsname01
exclude: linpack

View File

@@ -0,0 +1 @@
include $(RTEMS_ROOT)/make/custom/mpc55xx_spe.inc

View File

@@ -0,0 +1,23 @@
##
#
# @file
#
# @ingroup mpc55xx_config
#
# @brief Shared configuration file for the MPC55xx board family.
#
include $(RTEMS_ROOT)/make/custom/default.cfg
RTEMS_CPU = powerpc
CPU_CFLAGS_FLOAT ?= -msoft-float -mno-spe
# FIXME
CPU_CFLAGS = -mcpu=8540 -meabi -msdata=sysv -fno-common $(CPU_CFLAGS_FLOAT) \
-D__ppc_generic -mstrict-align
CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
LDFLAGS = -Wl,--gc-sections

View File

@@ -0,0 +1,3 @@
CPU_CFLAGS_FLOAT ?= -mspe -mabi=spe -mfloat-gprs=single
include $(RTEMS_ROOT)/make/custom/mpc55xx.inc

View File

@@ -0,0 +1,13 @@
#
# mpc5643l_dpu RTEMS Test Database.
#
# Format is one line per test that is _NOT_ built.
#
include: testdata/dltests-broken-on-this-bsp.tcfg
include: testdata/disable-jffs2-tests.tcfg
exclude: flashdisk01
exclude: fsdosfsname01
exclude: linpack
exclude: spstkalloc02

View File

@@ -0,0 +1,10 @@
##
#
# @file
#
# @ingroup mpc55xx_config
#
# @brief Configuration file for MPC5643L Data Processing Unit board.
#
include $(RTEMS_ROOT)/make/custom/mpc55xx.inc

View File

@@ -0,0 +1,13 @@
#
# mpc5643l_evb RTEMS Test Database.
#
# Format is one line per test that is _NOT_ built.
#
include: testdata/dltests-broken-on-this-bsp.tcfg
include: testdata/disable-jffs2-tests.tcfg
exclude: flashdisk01
exclude: fsdosfsname01
exclude: linpack
exclude: spstkalloc02

View File

@@ -0,0 +1,10 @@
##
#
# @file
#
# @ingroup mpc55xx_config
#
# @brief Configuration file for XKT564LEVB evaluation board.
#
include $(RTEMS_ROOT)/make/custom/mpc55xx.inc

View File

@@ -0,0 +1,7 @@
#
# This is the set of tests which are known to not link on this BSP
#
include: testdata/dltests-broken-on-this-bsp.tcfg
exclude: linpack

View File

@@ -0,0 +1 @@
include $(RTEMS_ROOT)/make/custom/mpc55xx.inc

View File

@@ -0,0 +1,8 @@
#
# This is the set of tests which are known to not link on this BSP
#
include: testdata/disable-iconv-tests.tcfg
include: testdata/dltests-broken-on-this-bsp.tcfg
exclude: linpack

View File

@@ -0,0 +1 @@
include $(RTEMS_ROOT)/make/custom/mpc55xx_spe.inc

View File

@@ -0,0 +1,11 @@
#
# mpc5674f_ecu508_boot RTEMS Test Database.
#
# Format is one line per test that is _NOT_ built.
#
include: testdata/disable-iconv-tests.tcfg
include: testdata/dltests-broken-on-this-bsp.tcfg
exclude: fsdosfsname01
exclude: linpack

View File

@@ -0,0 +1 @@
include $(RTEMS_ROOT)/make/custom/mpc55xx_spe.inc

View File

@@ -0,0 +1,11 @@
#
# mpc5674f_rsm6 RTEMS Test Database.
#
# Format is one line per test that is _NOT_ built.
#
include: testdata/disable-iconv-tests.tcfg
include: testdata/dltests-broken-on-this-bsp.tcfg
exclude: fsdosfsname01
exclude: linpack

View File

@@ -0,0 +1 @@
include $(RTEMS_ROOT)/make/custom/mpc55xx_spe.inc

View File

@@ -0,0 +1,7 @@
#
# This is the set of tests which are known to not link on this BSP
#
include: testdata/dltests-broken-on-this-bsp.tcfg
exclude: linpack

View File

@@ -0,0 +1,11 @@
##
#
# @file
#
# @ingroup mpc55xx_config
#
# @brief Configuration file for MPC567XEVBFXMB evaluation board equipped with
# an MPC5674F core from Freescale and Axiom.
#
include $(RTEMS_ROOT)/make/custom/mpc55xx.inc

View File

@@ -0,0 +1,7 @@
#
# This is the set of tests which are known to not link on this BSP
#
include: testdata/dltests-broken-on-this-bsp.tcfg
exclude: linpack

View File

@@ -0,0 +1 @@
include $(RTEMS_ROOT)/make/custom/mpc55xx_spe.inc

View File

@@ -0,0 +1,10 @@
#
# phycore_mpc5554 RTEMS Test Database.
#
# Format is one line per test that is _NOT_ built.
#
include: testdata/dltests-broken-on-this-bsp.tcfg
include: testdata/disable-jffs2-tests.tcfg
exclude: fsdosfsname01

View File

@@ -0,0 +1 @@
include $(RTEMS_ROOT)/make/custom/mpc55xx_spe.inc

View File

@@ -0,0 +1,23 @@
#
# Config file for MPC8260 based Motorola ADS board
#
include $(RTEMS_ROOT)/make/custom/default.cfg
RTEMS_CPU=powerpc
8XX_CPU_TYPE=8260
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
# CPU_CFLAGS = -mcpu=$(8XX_CPU_TYPE) -mstrict-align
CPU_CFLAGS = -mcpu=603e -mstrict-align -Dmpc8260 \
-meabi -msdata=sysv -fno-common
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2565.
# The following two lines enable compiling and linking on per element.
# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
# LDFLAGS = -Wl,--gc-sections

View File

@@ -0,0 +1,23 @@
#
# Config file for the PowerPC 8540 based mvme3100
#
#
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 -msoft-float -D__ppc_generic
# 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 $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
endef

View File

@@ -0,0 +1,28 @@
#
# Config file for the PowerPC 7455 based mvme5500
#
include $(RTEMS_ROOT)/make/custom/default.cfg
RTEMS_CPU=powerpc
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=mvme5500
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
CPU_CFLAGS = -mcpu=7450 -mtune=7450 -Dmpc7455
# 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 $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
endef
#
START_BASE=mvme5500start

View File

@@ -0,0 +1,18 @@
#
# Config file for the PowerPC 60x simulator - psim
#
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 = -meabi -mcpu=603e -msdata=sysv -fno-common -Dppc603e
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
# arguments to compile and link with per-element sections
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
LDFLAGS = -Wl,--gc-sections

View File

@@ -0,0 +1,24 @@
#
# Config file for the PowerPC 60x simulator in Qemu
#
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 -fno-keep-inline-functions
# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2564.
# The following two lines enable compiling and linking on per element.
# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
# LDFLAGS = -Wl,--gc-sections
define bsp-post-link
$(default-bsp-post-link)
$(OBJCOPY) -O binary $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
endef

View File

@@ -0,0 +1,23 @@
#
# Shared base config file for QorIQ BSPs
#
include $(RTEMS_ROOT)/make/custom/default.cfg
RTEMS_CPU = powerpc
CPU_CFLAGS = -mcpu=8540 -meabi -msdata=sysv -fno-common -mstrict-align \
-mspe -mabi=spe -mfloat-gprs=double \
-D__ppc_generic
CFLAGS_OPTIMIZE_V = -O2 -g
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
LDFLAGS = -Wl,--gc-sections
# define bsp-post-link
# $(OBJCOPY) -O binary '$@' '$(basename $@).bin'
# gzip -f -9 '$(basename $@).bin'
# mkimage -A ppc -O linux -T kernel -a 0x4000 -e 0x4000 -name '$(notdir $@)' -d '$(basename $@).bin.gz' '$(basename $@).img'
# $(default-bsp-post-link)
# endef

View File

@@ -0,0 +1,5 @@
#
# This is the set of tests which are known to not link on this BSP
#
include: testdata/dltests-broken-on-this-bsp.tcfg

View File

@@ -0,0 +1,3 @@
# Config file for QorIQ Core 0
include $(RTEMS_ROOT)/make/custom/qoriq.inc

View File

@@ -0,0 +1,5 @@
#
# This is the set of tests which are known to not link on this BSP
#
include: testdata/dltests-broken-on-this-bsp.tcfg

View File

@@ -0,0 +1,3 @@
# Config file for QorIQ Core 1
include $(RTEMS_ROOT)/make/custom/qoriq.inc

View File

@@ -0,0 +1,5 @@
#
# This is the set of tests which are known to not link on this BSP
#
include: testdata/dltests-broken-on-this-bsp.tcfg

View File

@@ -0,0 +1,3 @@
# Config file for e500 or e500v2 core based QorIQ chips, e.g. P1020, P2040
include $(RTEMS_ROOT)/make/custom/qoriq.inc

View File

@@ -0,0 +1,5 @@
#
# This is the set of tests which are known to not link on this BSP
#
include: testdata/dltests-broken-on-this-bsp.tcfg

View File

@@ -0,0 +1,13 @@
# Config file for e6500 core based QorIQ chips, e.g. T2080, T4240
include $(RTEMS_ROOT)/make/custom/default.cfg
RTEMS_CPU = powerpc
CPU_CFLAGS = -mcpu=e6500 -m32 -msdata=sysv -fno-common \
-D__ppc_generic
CFLAGS_OPTIMIZE_V = -O2 -g
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
LDFLAGS = -Wl,--gc-sections

View File

@@ -0,0 +1,5 @@
#
# This is the set of tests which are known to not link on this BSP
#
include: testdata/dltests-broken-on-this-bsp.tcfg

View File

@@ -0,0 +1,14 @@
# Config file for e6500 core based QorIQ chips in 64-bit mode, e.g. T2080,
# T4240
include $(RTEMS_ROOT)/make/custom/default.cfg
RTEMS_CPU = powerpc
CPU_CFLAGS = -mcpu=e6500 -m64 -fno-common \
-D__ppc_generic
CFLAGS_OPTIMIZE_V = -O2 -g
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
LDFLAGS = -Wl,--gc-sections

View File

@@ -0,0 +1,32 @@
#
# Config file for an Intec Automation SS555 MPC555-based card
#
# This file is derived from:
#
# Config file for a PowerPC MPC860-based MBX821-001 card.
# Config file for a PowerPC 403 based helas403 card
# Config file for MPC860 based Ethernet Comm Board
include $(RTEMS_ROOT)/make/custom/default.cfg
RTEMS_CPU=powerpc
GCC_CPU_MODEL=505
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS = -mcpu=$(GCC_CPU_MODEL) -Dmpc555
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2563.
# The following two lines enable compiling and linking on per element.
# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
# LDFLAGS = -Wl,--gc-sections
define bsp-post-link
$(default-bsp-post-link)
cp $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
$(STRIP) $(basename $@)$(DOWNEXT)
endef

View File

@@ -0,0 +1,11 @@
include $(RTEMS_ROOT)/make/custom/default.cfg
RTEMS_CPU = powerpc
CPU_CFLAGS = -mcpu=8540 -meabi -msdata=sysv -fno-common -msoft-float -mno-spe \
-D__ppc_generic
CFLAGS_OPTIMIZE_V = -Og -g
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
LDFLAGS = -Wl,--gc-sections

View File

@@ -0,0 +1,10 @@
#
# Config file for a PowerPC MPC860-based TQM8xx carrier board.
#
#
# All TQM8xx configurations share the same base file, only a few
# parameters differ.
#
include $(RTEMS_ROOT)/make/custom/tqm8xx.inc

View File

@@ -0,0 +1,23 @@
#
# Config file for a PowerPC MPC8xx-based TQM8xx carrier card
#
include $(RTEMS_ROOT)/make/custom/default.cfg
RTEMS_CPU=powerpc
CPU_CFLAGS = -mcpu=860 -Dmpc860 \
-mstrict-align -fno-strict-aliasing \
-meabi -msdata=sysv -fno-common
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
LDFLAGS = -Wl,--gc-sections
define bsp-post-link
cp $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
$(STRIP) $(basename $@)$(DOWNEXT)
$(default-bsp-post-link)
endef

View File

@@ -0,0 +1,10 @@
#
# Config file for a PowerPC MPC860-based TQM8xx starter kit base board
#
#
# All TQM8xx configurations share the same base file, only a few
# parameters differ.
#
include $(RTEMS_ROOT)/make/custom/tqm8xx.inc

View File

@@ -0,0 +1,25 @@
#
# Config file for a generic PowerPC 405 based card
#
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=403 -Dppc405 -meabi -msdata=sysv -fno-common
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# NOTE: some level of -O may be actually required by inline assembler
CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
LDFLAGS = -Wl,--gc-sections
define bsp-post-link
$(default-bsp-post-link)
$(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
endef

View File

@@ -0,0 +1,21 @@
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=405 -Dppc405
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
LDFLAGS = -Wl,--gc-sections
# Miscellaneous additions go here
define bsp-post-link
$(default-bsp-post-link)
$(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
endef

View File

@@ -0,0 +1,21 @@
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=440 -Dppc440 -msoft-float
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
LDFLAGS = -Wl,--gc-sections
# Miscellaneous additions go here
define bsp-post-link
$(default-bsp-post-link)
$(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
endef