[Bug 1911] New: Include bsp.h in confdefs.h by default
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Fri Sep 9 12:04:10 UTC 2011
https://www.rtems.org/bugzilla/show_bug.cgi?id=1911
Summary: Include bsp.h in confdefs.h by default
Product: RTEMS
Version: HEAD
Platform: All
OS/Version: RTEMS
Status: NEW
Severity: normal
Priority: P3
Component: cpukit
AssignedTo: joel.sherrill at oarcorp.com
ReportedBy: sebastian.huber at embedded-brains.de
We should include <bsp.h> for the
o BSP_IDLE_TASK_BODY,
o BSP_IDLE_TASK_STACK_SIZE,
o BSP_INTERRUPT_STACK_SIZE,
o BSP_ZERO_WORKSPACE_AUTOMATICALLY,
o BSP_DEFAULT_UNIFIED_WORK_AREAS,
o CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK, and
o CONFIGURE_BSP_PREREQUISITE_DRIVERS
defines. To avoid problems with the multi-lib rule make it possible to disable
this include.
Index: sapi/include/confdefs.h
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/sapi/include/confdefs.h,v
retrieving revision 1.171
diff -u -r1.171 confdefs.h
--- sapi/include/confdefs.h 9 Sep 2011 11:02:03 -0000 1.171
+++ sapi/include/confdefs.h 9 Sep 2011 12:01:13 -0000
@@ -45,6 +45,10 @@
#include <rtems.h>
#include <rtems/score/apimutex.h>
+#ifndef CONFIGURE_DO_NOT_INCLUDE_BSP_H
+ #include <bsp.h>
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
Index: libmisc/dummy/dummy.c
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/libmisc/dummy/dummy.c,v
retrieving revision 1.15
diff -u -r1.15 dummy.c
--- libmisc/dummy/dummy.c 5 Aug 2009 00:00:54 -0000 1.15
+++ libmisc/dummy/dummy.c 9 Sep 2011 12:01:13 -0000
@@ -34,5 +34,7 @@
#define CONFIGURE_INIT
+#define CONFIGURE_DO_NOT_INCLUDE_BSP_H
+
#include <rtems/confdefs.h>
--
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the bugs
mailing list