examples not working with CVS head (todays sources) on pc386 BSP.

Karel Gardas kgardas at objectsecurity.com
Thu Jul 14 11:58:11 UTC 2005


On Thu, 14 Jul 2005, Jennifer Averett wrote:

>> General question to RTEMS developers: are all demos/test required to
>> change from #include <confdefs.h> to #include <rtems/confdefs.h> ?
>>
>
> Yes this modification needs to be made to all.  The demos seem to be
> lagging behind in some of the tree modifications.  Please submitt an SPR
> on this issue and we will fix it as soon as possible.

Jennifer,

I guess fixing this issue in examples has taken me less time than 
submiting proper PR to your gnat (i.e. I'm not used to use gnat). Please 
feel free to review and apply attached patch which resolve compilation 
issue of `examples' from CVS for PSIM/powerpc BSP/tool-chain.

Cheers,
Karel
--
Karel Gardas                  kgardas at objectsecurity.com
ObjectSecurity Ltd.           http://www.objectsecurity.com
-------------- next part --------------
Index: fdopen/test.c
===================================================================
RCS file: /usr1/CVS/examples/fdopen/test.c,v
retrieving revision 1.2
diff -u -r1.2 test.c
--- fdopen/test.c	15 Nov 2002 01:42:29 -0000	1.2
+++ fdopen/test.c	14 Jul 2005 11:54:57 -0000
@@ -71,6 +71,6 @@
 
 #define CONFIGURE_INIT
 
-#include <confdefs.h>
+#include <rtems/confdefs.h>
 
 /* end of file */
Index: filerdback/test.c
===================================================================
RCS file: /usr1/CVS/examples/filerdback/test.c,v
retrieving revision 1.3
diff -u -r1.3 test.c
--- filerdback/test.c	15 Nov 2002 01:47:16 -0000	1.3
+++ filerdback/test.c	14 Jul 2005 11:54:57 -0000
@@ -55,6 +55,6 @@
 
 #define CONFIGURE_INIT
 
-#include <confdefs.h>
+#include <rtems/confdefs.h>
 
 /* end of file */
Index: hello_world_c/test.c
===================================================================
RCS file: /usr1/CVS/examples/hello_world_c/test.c,v
retrieving revision 1.5
diff -u -r1.5 test.c
--- hello_world_c/test.c	15 Nov 2002 01:42:52 -0000	1.5
+++ hello_world_c/test.c	14 Jul 2005 11:54:58 -0000
@@ -28,6 +28,6 @@
 
 #define CONFIGURE_INIT
 
-#include <confdefs.h>
+#include <rtems/confdefs.h>
 
 /* end of file */
Index: mount/test.c
===================================================================
RCS file: /usr1/CVS/examples/mount/test.c,v
retrieving revision 1.2
diff -u -r1.2 test.c
--- mount/test.c	15 Nov 2002 01:43:56 -0000	1.2
+++ mount/test.c	14 Jul 2005 11:54:58 -0000
@@ -9,7 +9,7 @@
 
 #include <dirent.h>
 #include <assert.h>
-#include <imfs.h>
+#include <rtems/imfs.h>
 
 #if defined(__rtems__)
 #define d_type d_reclen
@@ -82,6 +82,6 @@
 
 #define CONFIGURE_INIT
 
-#include <confdefs.h>
+#include <rtems/confdefs.h>
 
 /* end of file */
Index: psx_sched_report/test.c
===================================================================
RCS file: /usr1/CVS/examples/psx_sched_report/test.c,v
retrieving revision 1.3
diff -u -r1.3 test.c
--- psx_sched_report/test.c	15 Nov 2002 01:45:16 -0000	1.3
+++ psx_sched_report/test.c	14 Jul 2005 11:54:58 -0000
@@ -55,6 +55,6 @@
 
 #define CONFIGURE_INIT
 
-#include <confdefs.h>
+#include <rtems/confdefs.h>
 
 /* end of file */
Index: ptimer_create_error/test.c
===================================================================
RCS file: /usr1/CVS/examples/ptimer_create_error/test.c,v
retrieving revision 1.3
diff -u -r1.3 test.c
--- ptimer_create_error/test.c	15 Nov 2002 01:45:49 -0000	1.3
+++ ptimer_create_error/test.c	14 Jul 2005 11:54:58 -0000
@@ -47,6 +47,6 @@
 
 #define CONFIGURE_INIT
 
-#include <confdefs.h>
+#include <rtems/confdefs.h>
 
 /* end of file */
Index: repeated_opens/test.c
===================================================================
RCS file: /usr1/CVS/examples/repeated_opens/test.c,v
retrieving revision 1.2
diff -u -r1.2 test.c
--- repeated_opens/test.c	15 Nov 2002 01:46:01 -0000	1.2
+++ repeated_opens/test.c	14 Jul 2005 11:54:58 -0000
@@ -1,11 +1,11 @@
 /* Open/close test */
 
 #include <rtems.h>
-#include <clockdrv.h>
+#include <rtems/clockdrv.h>
 #include <stdio.h>
 #include <unistd.h>
 #include <fcntl.h>
-#include <console.h>
+#include <rtems/console.h>
 #include <memory.h>
 
 rtems_driver_address_table Device_drivers[] = {
@@ -50,5 +50,5 @@
 #define CONFIGURE_MAXIMUM_MESSAGE_QUEUES        10
 #define CONFIGURE_MAXIMUM_DEVICES       50
 #define CONFIGURE_MAXIMUM_TASKS 1
-#include <confdefs.h>
+#include <rtems/confdefs.h>
 
Index: yield_flash/test.c
===================================================================
RCS file: /usr1/CVS/examples/yield_flash/test.c,v
retrieving revision 1.3
diff -u -r1.3 test.c
--- yield_flash/test.c	15 Nov 2002 01:46:24 -0000	1.3
+++ yield_flash/test.c	14 Jul 2005 11:54:58 -0000
@@ -87,6 +87,6 @@
 
 #define CONFIGURE_INIT
 
-#include <confdefs.h>
+#include <rtems/confdefs.h>
 
 /* end of file */


More information about the users mailing list