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/m68k | |
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/m68k')
27 files changed, 585 insertions, 0 deletions
diff --git a/bsps/m68k/av5282/config/av5282.cfg b/bsps/m68k/av5282/config/av5282.cfg new file mode 100644 index 0000000000..1c82a4de12 --- /dev/null +++ b/bsps/m68k/av5282/config/av5282.cfg @@ -0,0 +1,30 @@ +# +# Config file for the uC5282 BSP +# + +RTEMS_CPU=m68k + +include $(RTEMS_ROOT)/make/custom/default.cfg + +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. +CPU_CFLAGS = -mcpu=528x + + +# optimize flag: typically -O2 +CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer + +# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2574. +# The following two lines enable compiling and linking on per element. +# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections +# LDFLAGS = -Wl,--gc-sections + +ifndef MTARGET +MTARGET=ram +endif + +define bsp-post-link + $(default-bsp-post-link) + $(OBJCOPY) -O binary --strip-all \ + $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) +endef diff --git a/bsps/m68k/csb360/config/csb360.cfg b/bsps/m68k/csb360/config/csb360.cfg new file mode 100644 index 0000000000..8694aacec7 --- /dev/null +++ b/bsps/m68k/csb360/config/csb360.cfg @@ -0,0 +1,19 @@ +# +# Config file for a Cogent CSB360 +# +# Author: Jay Monkman <jtm@lopingdog.com> +# + +RTEMS_CPU=m68k + +include $(RTEMS_ROOT)/make/custom/default.cfg + +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. +CPU_CFLAGS = -mcpu=5272 + +# optimize flag: typically -O2 +CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections + +LDFLAGS = -Wl,--gc-sections diff --git a/bsps/m68k/gen68340/config/gen68340.cfg b/bsps/m68k/gen68340/config/gen68340.cfg new file mode 100644 index 0000000000..5185e2c5a8 --- /dev/null +++ b/bsps/m68k/gen68340/config/gen68340.cfg @@ -0,0 +1,18 @@ +# +# Config file for a "generic 68340" BSP + +RTEMS_CPU=m68k + +include $(RTEMS_ROOT)/make/custom/default.cfg + +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. +CPU_CFLAGS = -mcpu=cpu32 + +# optimize flag: typically -O2 +CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer + +# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2573. +# The following two lines enable compiling and linking on per element. +# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections +# LDFLAGS = -Wl,--gc-sections diff --git a/bsps/m68k/gen68360/config/gen68360.cfg b/bsps/m68k/gen68360/config/gen68360.cfg new file mode 100644 index 0000000000..d8e3d2c3a5 --- /dev/null +++ b/bsps/m68k/gen68360/config/gen68360.cfg @@ -0,0 +1,15 @@ +# +# Config file for a "generic 68360" BSP + +RTEMS_CPU=m68k + +include $(RTEMS_ROOT)/make/custom/default.cfg + +CPU_CFLAGS = -mcpu=cpu32 + +CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer + +# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2566. +# The following two lines enable compiling and linking on per element. +# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections +# LDFLAGS = -Wl,--gc-sections diff --git a/bsps/m68k/gen68360/config/gen68360_040.cfg b/bsps/m68k/gen68360/config/gen68360_040.cfg new file mode 100644 index 0000000000..142f3c7ae4 --- /dev/null +++ b/bsps/m68k/gen68360/config/gen68360_040.cfg @@ -0,0 +1,16 @@ +# +# Configuration file for a 68040 using the 68360 in companion mode +# + +RTEMS_CPU=m68k + +CPU_CFLAGS = -mcpu=68040 + +include $(RTEMS_ROOT)/make/custom/default.cfg + +CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer + +# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2566. +# The following two lines enable compiling and linking on per element. +# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections +# LDFLAGS = -Wl,--gc-sections diff --git a/bsps/m68k/gen68360/config/pgh360.cfg b/bsps/m68k/gen68360/config/pgh360.cfg new file mode 100644 index 0000000000..2303a62b45 --- /dev/null +++ b/bsps/m68k/gen68360/config/pgh360.cfg @@ -0,0 +1,15 @@ +# +# Config file for a "generic 68360" BSP + +RTEMS_CPU=m68k + +include $(RTEMS_ROOT)/make/custom/default.cfg + +CPU_CFLAGS = -mcpu32 + +CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer + +# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2566. +# The following two lines enable compiling and linking on per element. +# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections +# LDFLAGS = -Wl,--gc-sections diff --git a/bsps/m68k/genmcf548x/config/COBRA5475.cfg b/bsps/m68k/genmcf548x/config/COBRA5475.cfg new file mode 100644 index 0000000000..1c27ee9741 --- /dev/null +++ b/bsps/m68k/genmcf548x/config/COBRA5475.cfg @@ -0,0 +1,10 @@ +# +# Config file for COBRA5475 module +# + +# +# All genmcf548x configurations share the same base file, only a few +# parameters differ. +# + +include $(RTEMS_ROOT)/make/custom/genmcf548x.inc diff --git a/bsps/m68k/genmcf548x/config/genmcf548x.inc b/bsps/m68k/genmcf548x/config/genmcf548x.inc new file mode 100644 index 0000000000..330d47ed06 --- /dev/null +++ b/bsps/m68k/genmcf548x/config/genmcf548x.inc @@ -0,0 +1,23 @@ +# +# Config file for the genmcf548x BSP +# + +RTEMS_CPU=m68k + +include $(RTEMS_ROOT)/make/custom/default.cfg + +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. +CPU_CFLAGS = -mcfv4e -Wa,-memac + +# optimize flag: typically -O2 +CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections + +LDFLAGS = -Wl,--gc-sections + +define bsp-post-link + $(OBJCOPY) -O binary --strip-all $(basename $@)$(EXEEXT) \ + $(basename $@)$(DOWNEXT) + $(default-bsp-post-link) +endef diff --git a/bsps/m68k/genmcf548x/config/m5484FireEngine.cfg b/bsps/m68k/genmcf548x/config/m5484FireEngine.cfg new file mode 100644 index 0000000000..7322a36c9f --- /dev/null +++ b/bsps/m68k/genmcf548x/config/m5484FireEngine.cfg @@ -0,0 +1,10 @@ +# +# Config file for freescale's M5484FireEngine evaluation board +# + +# +# All genmcf548x configurations share the same base file, only a few +# parameters differ. +# + +include $(RTEMS_ROOT)/make/custom/genmcf548x.inc diff --git a/bsps/m68k/mcf5206elite/config/mcf5206elite-testsuite.tcfg b/bsps/m68k/mcf5206elite/config/mcf5206elite-testsuite.tcfg new file mode 100644 index 0000000000..d11a487569 --- /dev/null +++ b/bsps/m68k/mcf5206elite/config/mcf5206elite-testsuite.tcfg @@ -0,0 +1,8 @@ +# +# mcf5206elite RTEMS Test Database +# +# Format is one line per test that is _NOT_ built. +# + +exclude: fsdosfsname01 +exclude: dl05 diff --git a/bsps/m68k/mcf5206elite/config/mcf5206elite.cfg b/bsps/m68k/mcf5206elite/config/mcf5206elite.cfg new file mode 100644 index 0000000000..258727b9be --- /dev/null +++ b/bsps/m68k/mcf5206elite/config/mcf5206elite.cfg @@ -0,0 +1,21 @@ +# +# Config file for a MCF5206eLITE board BSP +# +# Author: Victor V. Vengerov <vvv@oktet.ru> +# + +RTEMS_CPU=m68k + +include $(RTEMS_ROOT)/make/custom/default.cfg + +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. +CPU_CFLAGS = -mcpu=5206 + +# optimize flag: typically -O2 +CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer + +# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2572. +# The following two lines enable compiling and linking on per element. +# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections +# LDFLAGS = -Wl,--gc-sections diff --git a/bsps/m68k/mcf52235/config/mcf52235-testsuite.tcfg b/bsps/m68k/mcf52235/config/mcf52235-testsuite.tcfg new file mode 100644 index 0000000000..f81ea1d224 --- /dev/null +++ b/bsps/m68k/mcf52235/config/mcf52235-testsuite.tcfg @@ -0,0 +1,28 @@ +# +# MCF52235 RTEMS Test Database. +# +# Format is one line per test that is _NOT_ built. +# + +include: testdata/disable-iconv-tests.tcfg +include: testdata/disable-jffs2-tests.tcfg + +exclude: capture +exclude: cdtest +exclude: dl05 +exclude: fileio +exclude: flashdisk01 +exclude: fsdosfsformat01 +exclude: fsdosfsname01 +exclude: ftp01 +exclude: iostream +exclude: linpack +exclude: loopback +exclude: mghttpd01 +exclude: monitor02 +exclude: paranoia +exclude: pppd +exclude: spstkalloc02 +exclude: syscall01 +exclude: tmfine01 +exclude: utf8proc01 diff --git a/bsps/m68k/mcf52235/config/mcf52235.cfg b/bsps/m68k/mcf52235/config/mcf52235.cfg new file mode 100644 index 0000000000..bc69711fd7 --- /dev/null +++ b/bsps/m68k/mcf52235/config/mcf52235.cfg @@ -0,0 +1,27 @@ +# +# Config file for the mcf5235 BSP +# + +RTEMS_CPU=m68k + +include $(RTEMS_ROOT)/make/custom/default.cfg + +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. +CPU_CFLAGS = -mcpu=52235 + +# optimize flag: typically -O2 +CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer + +# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2570. +# The following two lines enable compiling and linking on per element. +# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections +# LDFLAGS = -Wl,--gc-sections + +# This defines the operations performed on the linked executable. +# is currently required. +define bsp-post-link + $(OBJCOPY) -O binary --strip-all \ + $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) + $(SIZE) $(basename $@)$(EXEEXT) +endef diff --git a/bsps/m68k/mcf5225x/config/mcf5225x-testsuite.tcfg b/bsps/m68k/mcf5225x/config/mcf5225x-testsuite.tcfg new file mode 100644 index 0000000000..76d09e7ee7 --- /dev/null +++ b/bsps/m68k/mcf5225x/config/mcf5225x-testsuite.tcfg @@ -0,0 +1,16 @@ +# +# mcf5225x RTEMS Test Database. +# +# Format is one line per test that is _NOT_ built. +# + +include: testdata/disable-iconv-tests.tcfg +include: testdata/disable-jffs2-tests.tcfg + +exclude: cdtest +exclude: dl05 +exclude: fileio +exclude: flashdisk01 +exclude: fsdosfsname01 +exclude: iostream +exclude: linpack diff --git a/bsps/m68k/mcf5225x/config/mcf5225x.cfg b/bsps/m68k/mcf5225x/config/mcf5225x.cfg new file mode 100644 index 0000000000..d195e46199 --- /dev/null +++ b/bsps/m68k/mcf5225x/config/mcf5225x.cfg @@ -0,0 +1,30 @@ +# +# Config file for the mcf5225x BSP +# + +RTEMS_CPU=m68k + +include $(RTEMS_ROOT)/make/custom/default.cfg + +# This is the actual bsp directory used during the build process. +RTEMS_BSP_FAMILY=mcf5225x + +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. +CPU_CFLAGS = -mcpu=52235 $(PROJECT_FLAGS) + +# optimize flag: typically -O2 +CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer + +# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2568. +# The following two lines enable compiling and linking on per element. +# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections +# LDFLAGS = -Wl,--gc-sections + +# This defines the operations performed on the linked executable. +# is currently required. +define bsp-post-link + $(OBJCOPY) -O binary --strip-all \ + $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) + $(SIZE) $(basename $@)$(EXEEXT) +endef diff --git a/bsps/m68k/mcf5235/config/mcf5235.cfg b/bsps/m68k/mcf5235/config/mcf5235.cfg new file mode 100644 index 0000000000..aed4e2ed5c --- /dev/null +++ b/bsps/m68k/mcf5235/config/mcf5235.cfg @@ -0,0 +1,31 @@ +# +# Config file for the mcf5235 BSP +# + +RTEMS_CPU=m68k + +include $(RTEMS_ROOT)/make/custom/default.cfg + +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. +CPU_CFLAGS = -mcpu=5235 + +# optimize flag: typically -O2 +CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer + +# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2571. +# The following two lines enable compiling and linking on per element. +# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections +# LDFLAGS = -Wl,--gc-sections + +ifndef MTARGET +MTARGET=ram +endif + +# This defines the operations performed on the linked executable. +# is currently required. +define bsp-post-link + $(OBJCOPY) -O binary --strip-all \ + $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) + $(SIZE) $(basename $@)$(EXEEXT) +endef diff --git a/bsps/m68k/mcf5329/config/mcf5329.cfg b/bsps/m68k/mcf5329/config/mcf5329.cfg new file mode 100644 index 0000000000..88b6df6ce7 --- /dev/null +++ b/bsps/m68k/mcf5329/config/mcf5329.cfg @@ -0,0 +1,29 @@ +# +# Config file for the mcf5329 BSP +# + + +RTEMS_CPU=m68k + +include $(RTEMS_ROOT)/make/custom/default.cfg + +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. +#CPU_CFLAGS = -mcpu=5329 +CPU_CFLAGS = -mcpu=5307 + +# optimize flag: typically -O2 +CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer + +# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2569. +# The following two lines enable compiling and linking on per element. +# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections +# LDFLAGS = -Wl,--gc-sections + +# This defines the operations performed on the linked executable. +# is currently required. +define bsp-post-link + $(OBJCOPY) -O binary --strip-all \ + $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) + $(SIZE) $(basename $@)$(EXEEXT) +endef diff --git a/bsps/m68k/mrm332/config/mrm332-testsuite.tcfg b/bsps/m68k/mrm332/config/mrm332-testsuite.tcfg new file mode 100644 index 0000000000..624b1d982c --- /dev/null +++ b/bsps/m68k/mrm332/config/mrm332-testsuite.tcfg @@ -0,0 +1,16 @@ +# +# mrm332 RTEMS Test Database. +# +# Format is one line per test that is _NOT_ built. +# + +include: testdata/disable-iconv-tests.tcfg +exclude: cdtest +exclude: dl05 +exclude: fileio +exclude: fsdosfsname01 +exclude: iostream +exclude: linpack +exclude: sptls01 +exclude: sptls02 +exclude: utf8proc01 diff --git a/bsps/m68k/mrm332/config/mrm332.cfg b/bsps/m68k/mrm332/config/mrm332.cfg new file mode 100644 index 0000000000..979f331399 --- /dev/null +++ b/bsps/m68k/mrm332/config/mrm332.cfg @@ -0,0 +1,28 @@ +# +# Config file for the mrm332 BSP +# + +include $(RTEMS_ROOT)/make/custom/default.cfg + +RTEMS_CPU=m68k + +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. +CPU_CFLAGS = -mcpu=cpu32 + +# using optimise for size due to small memory on target board. +CFLAGS_OPTIMIZE_V = -Os -g -fomit-frame-pointer + +# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2567. +# 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 + $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).srec + sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \ + $(PACKHEX) > $(basename $@)$(DOWNEXT) + rm -f $(basename $@).srec + $(default-bsp-post-link) +endef + diff --git a/bsps/m68k/mvme147/config/mvme147.cfg b/bsps/m68k/mvme147/config/mvme147.cfg new file mode 100644 index 0000000000..18e9f28b71 --- /dev/null +++ b/bsps/m68k/mvme147/config/mvme147.cfg @@ -0,0 +1,25 @@ +# +# Config file for the mvme147 BSP +# + +include $(RTEMS_ROOT)/make/custom/default.cfg + +RTEMS_CPU=m68k + +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. +CPU_CFLAGS = -mcpu=68030 + +# optimize flag: typically -O2 +CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections + +LDFLAGS = -Wl,--gc-sections + +define bsp-post-link + $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).srec + sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \ + $(PACKHEX) > $(basename $@)$(DOWNEXT) + rm -f $(basename $@).srec + $(default-bsp-post-link) +endef diff --git a/bsps/m68k/mvme147s/config/mvme147s.cfg b/bsps/m68k/mvme147s/config/mvme147s.cfg new file mode 100644 index 0000000000..89922a518e --- /dev/null +++ b/bsps/m68k/mvme147s/config/mvme147s.cfg @@ -0,0 +1,27 @@ +# +# Config file for the mvme147s BSP +# + +include $(RTEMS_ROOT)/make/custom/default.cfg + +RTEMS_CPU=m68k + +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. +CPU_CFLAGS = -mcpu=68030 + +# optimize flag: typically -O2 +CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections + +LDFLAGS = -Wl,--gc-sections + +define bsp-post-link + $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).srec + sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \ + $(PACKHEX) > $(basename $@)$(DOWNEXT) + rm -f $(basename $@).srec + $(default-bsp-post-link) +endef + +# Miscellaneous additions go here diff --git a/bsps/m68k/mvme162/config/mvme162-testsuite.tcfg b/bsps/m68k/mvme162/config/mvme162-testsuite.tcfg new file mode 100644 index 0000000000..8476d8ecff --- /dev/null +++ b/bsps/m68k/mvme162/config/mvme162-testsuite.tcfg @@ -0,0 +1,7 @@ +# +# mvme162 RTEMS Test Database +# +# Format is one line per test that is _NOT_ built. +# + +exclude: fsdosfsname01 diff --git a/bsps/m68k/mvme162/config/mvme162.cfg b/bsps/m68k/mvme162/config/mvme162.cfg new file mode 100644 index 0000000000..db96fff921 --- /dev/null +++ b/bsps/m68k/mvme162/config/mvme162.cfg @@ -0,0 +1,29 @@ +# +# Config file for the mvme162 BSP +# + +include $(RTEMS_ROOT)/make/custom/default.cfg + +RTEMS_CPU=m68k + +RTEMS_MVME162_MODEL=mvme162 + +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. +# + +CPU_CFLAGS = -mcpu=68040 -msoft-float + +# optimize flag: typically -O2 +CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer +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 + +# BSP-specific tools +SLOAD=$(PROJECT_TOOLS)/sload diff --git a/bsps/m68k/mvme162/config/mvme162lx-testsuite.tcfg b/bsps/m68k/mvme162/config/mvme162lx-testsuite.tcfg new file mode 100644 index 0000000000..f1f680287a --- /dev/null +++ b/bsps/m68k/mvme162/config/mvme162lx-testsuite.tcfg @@ -0,0 +1,7 @@ +# +# mvme162lx RTEMS Test Database +# +# Format is one line per test that is _NOT_ built. +# + +exclude: fsdosfsname01 diff --git a/bsps/m68k/mvme162/config/mvme162lx.cfg b/bsps/m68k/mvme162/config/mvme162lx.cfg new file mode 100644 index 0000000000..8483cf0d84 --- /dev/null +++ b/bsps/m68k/mvme162/config/mvme162lx.cfg @@ -0,0 +1,34 @@ +# +# Configuration file for a MVME162LX +# +# This is an MVME162 model with ... + +# +# All mvme162 configurations share the same base file, only the cpu model +# differs. +# + +RTEMS_MVME162_MODEL=mvme162lx + +include $(RTEMS_ROOT)/make/custom/default.cfg + +RTEMS_CPU=m68k + +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. +# +CPU_CFLAGS = -mcpu=68040 -msoft-float + +# optimize flag: typically -O2 +CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer +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 + +# BSP-specific tools +SLOAD=$(PROJECT_TOOLS)/sload diff --git a/bsps/m68k/mvme167/config/mvme167.cfg b/bsps/m68k/mvme167/config/mvme167.cfg new file mode 100644 index 0000000000..c40f248493 --- /dev/null +++ b/bsps/m68k/mvme167/config/mvme167.cfg @@ -0,0 +1,42 @@ +# +# Config file for the mvme167 BSP +# + +# THIS BSP USES ELF IMAGES. IT WILL NOT WORK WITH COFF UNLESS CHANGES +# ARE MADE TO THE LINKCMDS FILE. + +RTEMS_CPU=m68k + +include $(RTEMS_ROOT)/make/custom/default.cfg + +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. We also specify the BSP during compilation. +# This should really get its own flag, but it works here. +# + +CPU_CFLAGS = -mcpu=68040 + + +# optimize flag: typically -O2 +CFLAGS_OPTIMIZE_V = -O2 -g -fno-omit-frame-pointer +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections + +LDFLAGS = -Wl,--gc-sections + +# We use TFTP to transfer files to the MVME167. We generate binary files +# rather than S-records. We skip the header during downloads. + +# The MC68040 does not implement all MC68881/MC68882 instructions, so use +# either the gcc floating-point software support (msoft-float libraries), or +# use the Motorola FPSP floating-point emulator in +# rtems/c/src/lib/libcpu/m68k/m68040/fpsp +# The default is to use the FPSP. +# To use the msoft-float libraries, uncomment the three lines below. +# You then should comment the M68KFPSPInstallExceptionHandlers() statement +# in rtems/c/src/lib/libbsp/m68k/mvme167/startup/bststart.c in bsp_start(). +# Floating-point support will then be limited. See the mvme167 README file +# for more details. +define bsp-post-link + $(default-bsp-post-link) + $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) +endef diff --git a/bsps/m68k/uC5282/config/uC5282.cfg b/bsps/m68k/uC5282/config/uC5282.cfg new file mode 100644 index 0000000000..b8e3f52667 --- /dev/null +++ b/bsps/m68k/uC5282/config/uC5282.cfg @@ -0,0 +1,24 @@ +# +# Config file for the uC5282 BSP +# + +RTEMS_CPU = m68k + +include $(RTEMS_ROOT)/make/custom/default.cfg + +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. +CPU_CFLAGS = -mcpu=5282 + +# optimize flag: typically -O2 +CFLAGS_OPTIMIZE_V = -O2 -g + +# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2575. +# 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 |