summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-04 13:44:21 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-14 08:46:48 +0100
commiteafb040d9151cf25d10605cda27af1e9a58a6194 (patch)
tree05e2f97e93677177f2bcca5886f63f3a84643d25
parentebb6a8d059da5685ba762c3a98ea59b9abace375 (diff)
downloadrtems-eafb040d9151cf25d10605cda27af1e9a58a6194.tar.bz2
score: Add --enable-profiling configure option
-rw-r--r--cpukit/aclocal/enable-profiling.m49
-rw-r--r--cpukit/configure.ac6
2 files changed, 15 insertions, 0 deletions
diff --git a/cpukit/aclocal/enable-profiling.m4 b/cpukit/aclocal/enable-profiling.m4
new file mode 100644
index 0000000000..b363ae28c6
--- /dev/null
+++ b/cpukit/aclocal/enable-profiling.m4
@@ -0,0 +1,9 @@
+AC_DEFUN([RTEMS_ENABLE_PROFILING],
+ [AC_ARG_ENABLE(profiling,
+ [AS_HELP_STRING([--enable-profiling],[enable support for profiling (default=no)])],
+ [case "${enableval}" in
+ yes) RTEMS_HAS_PROFILING=yes ;;
+ no) RTEMS_HAS_PROFILING=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for enable profiling option) ;;
+ esac],
+ [RTEMS_HAS_PROFILING=no])])
diff --git a/cpukit/configure.ac b/cpukit/configure.ac
index 598657501e..e87aa4a94a 100644
--- a/cpukit/configure.ac
+++ b/cpukit/configure.ac
@@ -16,6 +16,7 @@ RTEMS_ENABLE_POSIX
RTEMS_ENABLE_RTEMS_DEBUG
RTEMS_ENABLE_NETWORKING
RTEMS_ENABLE_PARAVIRT
+RTEMS_ENABLE_PROFILING
RTEMS_ENV_RTEMSCPU
RTEMS_CHECK_RTEMS_DEBUG
@@ -209,6 +210,11 @@ RTEMS_CPUOPT([RTEMS_PARAVIRT],
[1],
[PARAVIRT is enabled])
+RTEMS_CPUOPT([RTEMS_PROFILING],
+ [test x"$RTEMS_HAS_PROFILING" = xyes],
+ [1],
+ [if profiling is enabled])
+
RTEMS_CPUOPT([RTEMS_NETWORKING],
[test x"$rtems_cv_HAS_NETWORKING" = xyes],
[1],