summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/confdefs/bsp.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-11-15 19:15:27 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-11-17 09:16:17 +0100
commit32cee88357546ca4c3352b1691b05059f086bf74 (patch)
tree6056ea9f2e9f59898cd778277de25f9e7827cf56 /cpukit/include/rtems/confdefs/bsp.h
parentbuild: Add --rtems-version command line option (diff)
downloadrtems-32cee88357546ca4c3352b1691b05059f086bf74.tar.bz2
config: CONFIGURE_DISABLE_BSP_SETTINGS
Evaluate CONFIGURE_DISABLE_BSP_SETTINGS for each affected application configuration option. This makes the code easier to review since the influence of CONFIGURE_DISABLE_BSP_SETTINGS is locally visible in the code. Update #3875.
Diffstat (limited to 'cpukit/include/rtems/confdefs/bsp.h')
-rw-r--r--cpukit/include/rtems/confdefs/bsp.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/cpukit/include/rtems/confdefs/bsp.h b/cpukit/include/rtems/confdefs/bsp.h
index 03ad9bf55f..bc96713765 100644
--- a/cpukit/include/rtems/confdefs/bsp.h
+++ b/cpukit/include/rtems/confdefs/bsp.h
@@ -41,19 +41,8 @@
#error "Do not include this file directly, use <rtems/confdefs.h> instead"
#endif
-#ifdef CONFIGURE_INIT
-
-#ifdef CONFIGURE_DISABLE_BSP_SETTINGS
- #undef BSP_IDLE_TASK_BODY
- #undef BSP_IDLE_TASK_STACK_SIZE
- #undef BSP_INITIAL_EXTENSION
- #undef BSP_INTERRUPT_STACK_SIZE
- #undef CONFIGURE_BSP_PREREQUISITE_DRIVERS
- #undef CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK
-#else
- #include <bsp.h>
+#if defined(CONFIGURE_INIT) && !defined(CONFIGURE_DISABLE_BSP_SETTINGS)
+#include <bsp.h>
#endif
-#endif /* CONFIGURE_INIT */
-
#endif /* _RTEMS_CONFDEFS_BSP_H */