summaryrefslogtreecommitdiffstats
path: root/c/src
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2019-08-06 20:00:56 +1000
committerChris Johns <chrisj@rtems.org>2019-08-12 08:49:33 +1000
commita4d7e4cee77d16b0e34ef543f0804e7eb2954137 (patch)
tree9d3b30bcbdfb7bec846efc1e1674aeaa52fd18b7 /c/src
parent9cb19ded5c233b86c70157fe00b809792bc13d5a (diff)
downloadrtems-a4d7e4cee77d16b0e34ef543f0804e7eb2954137.tar.bz2
arm/raspberry: Set the workspace based on the mailbox version.
- Update the linkcmd file to support configure settings - Set the workspace size based on the revision value
Diffstat (limited to 'c/src')
-rw-r--r--c/src/lib/libbsp/arm/raspberrypi/configure.ac20
1 files changed, 16 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/arm/raspberrypi/configure.ac b/c/src/lib/libbsp/arm/raspberrypi/configure.ac
index 0f3a399877..452aa4d029 100644
--- a/c/src/lib/libbsp/arm/raspberrypi/configure.ac
+++ b/c/src/lib/libbsp/arm/raspberrypi/configure.ac
@@ -10,14 +10,11 @@ AC_INIT([rtems-c-src-lib-libbsp-arm-raspberrypi],[_RTEMS_VERSION],[https://devel
RTEMS_TOP(../../../../../..)
RTEMS_SOURCE_TOP
RTEMS_BUILD_TOP
-RTEMS_BSP_LINKCMDS
RTEMS_CANONICAL_TARGET_CPU
AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.12.2])
RTEMS_BSP_CONFIGURE
-
-
RTEMS_BSPOPTS_SET([BSP_START_RESET_VECTOR],[*],[])
RTEMS_BSPOPTS_HELP([BSP_START_RESET_VECTOR],[reset vector address for BSP start])
@@ -37,7 +34,22 @@ RTEMS_BSPOPTS_SET([BSP_IS_RPI2],[*],[0])
RTEMS_BSPOPTS_HELP([BSP_IS_RPI2],[Set if the BSP variant is Raspberry Pi 2.])
AM_CONDITIONAL(RTEMS_RPI2,[test "$BSP_IS_RPI2" = "1"])
+RPI_RAM_MMU_LENGTH="16k"
+RPI_RAM_LENGTH_AVAILABLE="256M"
+RPI_RAM_NOCACHE_LENGTH="2M"
+
+AC_DEFUN([RPI_LINKCMD],[
+AC_ARG_VAR([$1],[$2; default $3])dnl
+[$1]=[$]{[$1]:-[$3]}
+])
+
+RPI_LINKCMD([RPI_RAM_MMU_LENGTH],[MMU region length],[${BSP_RPI_RAM_MMU_LENGTH}])
+RPI_LINKCMD([RPI_RAM_LENGTH_AVAILABLE],[RAM region length],[${BSP_RPI_RAM_LENGTH_AVAILABLE}])
+RPI_LINKCMD([RPI_RAM_NOCACHE_LENGTH],[No-cache region length],[${BSP_RPI_RAM_NOCACHE_LENGTH}])
+
RTEMS_BSP_CLEANUP_OPTIONS
-AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([
+Makefile
+linkcmds:../../../../../../bsps/arm/raspberrypi/start/linkcmds.in])
AC_OUTPUT