[PATCH 01/11] score: Add --enable-profiling configure option
Sebastian Huber
sebastian.huber at embedded-brains.de
Tue Mar 11 13:46:41 UTC 2014
---
cpukit/aclocal/enable-profiling.m4 | 9 +++++++++
cpukit/configure.ac | 6 ++++++
2 files changed, 15 insertions(+), 0 deletions(-)
create mode 100644 cpukit/aclocal/enable-profiling.m4
diff --git a/cpukit/aclocal/enable-profiling.m4 b/cpukit/aclocal/enable-profiling.m4
new file mode 100644
index 0000000..b363ae2
--- /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 5986575..e87aa4a 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],
--
1.7.7
More information about the devel
mailing list