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/lm32 | |
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/lm32')
-rw-r--r-- | bsps/lm32/lm32_evr/config/lm32_evr.cfg | 29 | ||||
-rw-r--r-- | bsps/lm32/lm32_evr/config/lm32_evr_gdbsim-testsuite.tcfg | 6 | ||||
-rw-r--r-- | bsps/lm32/lm32_evr/config/lm32_evr_gdbsim.cfg | 5 | ||||
-rw-r--r-- | bsps/lm32/milkymist/config/milkymist.cfg | 29 |
4 files changed, 69 insertions, 0 deletions
diff --git a/bsps/lm32/lm32_evr/config/lm32_evr.cfg b/bsps/lm32/lm32_evr/config/lm32_evr.cfg new file mode 100644 index 0000000000..fc6e65b768 --- /dev/null +++ b/bsps/lm32/lm32_evr/config/lm32_evr.cfg @@ -0,0 +1,29 @@ +# +# Config file for the lm32_evr BSP +# + +# Choices for CPU_MODEL: +# tiny (no cache) +# standard (instruction cache) +# fast (instruction and data cache) + +RTEMS_CPU = lm32 + +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 = + +# optimize flag: typically -O2 +# ATM, doesn't work with optimization levels > 0 +CFLAGS_OPTIMIZE_V = -O0 -g +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections + +LDFLAGS = -Wl,--gc-sections + +define bsp-post-link + $(OBJCOPY) -O binary --strip-all $(basename $@)$(EXEEXT) \ + -R entry -R exceptions $(basename $@)$(DOWNEXT) + $(default-bsp-post-link) +endef diff --git a/bsps/lm32/lm32_evr/config/lm32_evr_gdbsim-testsuite.tcfg b/bsps/lm32/lm32_evr/config/lm32_evr_gdbsim-testsuite.tcfg new file mode 100644 index 0000000000..595806baed --- /dev/null +++ b/bsps/lm32/lm32_evr/config/lm32_evr_gdbsim-testsuite.tcfg @@ -0,0 +1,6 @@ +# +# The GDB LM32 simulator in GDB +# + +include: testdata/disable-intrcritical-tests.tcfg + diff --git a/bsps/lm32/lm32_evr/config/lm32_evr_gdbsim.cfg b/bsps/lm32/lm32_evr/config/lm32_evr_gdbsim.cfg new file mode 100644 index 0000000000..2050654d44 --- /dev/null +++ b/bsps/lm32/lm32_evr/config/lm32_evr_gdbsim.cfg @@ -0,0 +1,5 @@ +# +# BSP Variant for running on simulator in GDB +# + +include $(RTEMS_ROOT)/make/custom/lm32_evr.cfg diff --git a/bsps/lm32/milkymist/config/milkymist.cfg b/bsps/lm32/milkymist/config/milkymist.cfg new file mode 100644 index 0000000000..4f280fc612 --- /dev/null +++ b/bsps/lm32/milkymist/config/milkymist.cfg @@ -0,0 +1,29 @@ +# +# Config file for the milkymist BSP +# + +# Choices for CPU_MODEL: +# tiny (no cache) +# standard (instruction cache) +# fast (instruction and data cache) + +RTEMS_CPU = lm32 + +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 = -mbarrel-shift-enabled -mmultiply-enabled \ + -mdivide-enabled -msign-extend-enabled + +# optimize flag: typically -O2 +CFLAGS_OPTIMIZE_V = -O2 -g +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections + +LDFLAGS = -Wl,--gc-sections + +define bsp-post-link + $(OBJCOPY) -O binary --strip-all $(basename $@)$(EXEEXT) \ + -R entry -R exceptions $(basename $@)$(DOWNEXT) + $(default-bsp-post-link) +endef |