[rtems commit] termios: Remove obsolete configuration options

Sebastian Huber sebh at rtems.org
Mon Feb 5 08:58:24 UTC 2018


Module:    rtems
Branch:    master
Commit:    53b6484d3827fc93aae2d4c168cdbc07f8496eb9
Changeset: http://git.rtems.org/rtems/commit/?id=53b6484d3827fc93aae2d4c168cdbc07f8496eb9

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Feb  5 09:57:45 2018 +0100

termios: Remove obsolete configuration options

Update #2843.

---

 cpukit/include/rtems/confdefs.h      | 8 ++++++--
 testsuites/libtests/mouse01/init.c   | 3 ---
 testsuites/libtests/termios01/init.c | 3 ---
 testsuites/libtests/termios03/init.c | 3 ---
 testsuites/libtests/termios04/init.c | 3 ---
 testsuites/libtests/termios05/init.c | 3 ---
 testsuites/libtests/termios06/init.c | 3 ---
 testsuites/libtests/termios07/init.c | 3 ---
 testsuites/libtests/termios08/init.c | 3 ---
 testsuites/libtests/uid01/init.c     | 3 ---
 testsuites/samples/minimum/init.c    | 6 ------
 11 files changed, 6 insertions(+), 35 deletions(-)

diff --git a/cpukit/include/rtems/confdefs.h b/cpukit/include/rtems/confdefs.h
index 75ea142..f1c817d 100755
--- a/cpukit/include/rtems/confdefs.h
+++ b/cpukit/include/rtems/confdefs.h
@@ -3421,8 +3421,8 @@ extern rtems_initialization_tasks_table Initialization_tasks[];
   #error "Maximum priority configured higher than supported by target."
 #endif
 
-#ifdef CONFIGURE_TERMIOS_DISABLED
-  #warning "The CONFIGURE_TERMIOS_DISABLED configuration option is obsolete since RTEMS 5.1"
+#ifdef CONFIGURE_NUMBER_OF_TERMIOS_PORTS
+  #warning "The CONFIGURE_NUMBER_OF_TERMIOS_PORTS configuration option is obsolete since RTEMS 5.1"
 #endif
 
 #ifdef CONFIGURE_MAXIMUM_POSIX_BARRIERS
@@ -3449,6 +3449,10 @@ extern rtems_initialization_tasks_table Initialization_tasks[];
   #warning "The CONFIGURE_MAXIMUM_POSIX_SPINLOCKS configuration option is obsolete since RTEMS 5.1"
 #endif
 
+#ifdef CONFIGURE_TERMIOS_DISABLED
+  #warning "The CONFIGURE_TERMIOS_DISABLED configuration option is obsolete since RTEMS 5.1"
+#endif
+
 /*
  * POSIX Key pair shouldn't be less than POSIX Key, which is highly
  * likely to be error.
diff --git a/testsuites/libtests/mouse01/init.c b/testsuites/libtests/mouse01/init.c
index f6efa4e..8b71615 100644
--- a/testsuites/libtests/mouse01/init.c
+++ b/testsuites/libtests/mouse01/init.c
@@ -160,9 +160,6 @@ rtems_task Init(
     TERMIOS_TEST_DRIVER_TABLE_ENTRY, \
     SERIAL_MOUSE_DRIVER_TABLE_ENTRY
 
-/* one for the console and one for the test port */
-#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2
-
 /* we need to be able to open the test device and mouse */
 #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 5
 #define CONFIGURE_MAXIMUM_TASKS  1
diff --git a/testsuites/libtests/termios01/init.c b/testsuites/libtests/termios01/init.c
index 1fd2c57..461fa99 100644
--- a/testsuites/libtests/termios01/init.c
+++ b/testsuites/libtests/termios01/init.c
@@ -1013,9 +1013,6 @@ static rtems_task Init(
 /* include an extra slot for registering the termios one dynamically */
 #define CONFIGURE_MAXIMUM_DRIVERS 4
 
-/* one for the console and one for the test port */
-#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 3
-
 /* we need to be able to open the test device */
 #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 4
 
diff --git a/testsuites/libtests/termios03/init.c b/testsuites/libtests/termios03/init.c
index 70ed74d..b9b2439 100644
--- a/testsuites/libtests/termios03/init.c
+++ b/testsuites/libtests/termios03/init.c
@@ -165,9 +165,6 @@ rtems_task Init(
 /* include an extra slot for registering the termios one dynamically */
 #define CONFIGURE_MAXIMUM_DRIVERS 3
 
-/* one for the console and one for the test port */
-#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 3
-
 /* we need to be able to open the test device */
 #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 4
 #define CONFIGURE_MAXIMUM_TASKS             1
diff --git a/testsuites/libtests/termios04/init.c b/testsuites/libtests/termios04/init.c
index ad5bb13..6766409 100644
--- a/testsuites/libtests/termios04/init.c
+++ b/testsuites/libtests/termios04/init.c
@@ -144,9 +144,6 @@ rtems_task Init(
 /* include an extra slot for registering the termios one dynamically */
 #define CONFIGURE_MAXIMUM_DRIVERS 3
 
-/* one for the console and one for the test port */
-#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 3
-
 /* we need to be able to open the test device */
 #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 4
 #define CONFIGURE_MAXIMUM_TASKS             1
diff --git a/testsuites/libtests/termios05/init.c b/testsuites/libtests/termios05/init.c
index c02b7a6..61251a5 100644
--- a/testsuites/libtests/termios05/init.c
+++ b/testsuites/libtests/termios05/init.c
@@ -155,9 +155,6 @@ rtems_task Init(
 /* include an extra slot for registering the termios one dynamically */
 #define CONFIGURE_MAXIMUM_DRIVERS 3
 
-/* one for the console and one for the test port */
-#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 3
-
 /* we need to be able to open the test device */
 #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 4
 
diff --git a/testsuites/libtests/termios06/init.c b/testsuites/libtests/termios06/init.c
index 721643d..6ed8ac7 100644
--- a/testsuites/libtests/termios06/init.c
+++ b/testsuites/libtests/termios06/init.c
@@ -211,9 +211,6 @@ rtems_task Init(
 #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
 #define CONFIGURE_APPLICATION_EXTRA_DRIVERS TERMIOS_TEST_DRIVER_TABLE_ENTRY
 
-/* one for the console and one for the test port */
-#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 3
-
 /* we need to be able to open the test device */
 #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 4
 
diff --git a/testsuites/libtests/termios07/init.c b/testsuites/libtests/termios07/init.c
index 2da5290..95c684c 100644
--- a/testsuites/libtests/termios07/init.c
+++ b/testsuites/libtests/termios07/init.c
@@ -171,9 +171,6 @@ rtems_task Init(
 /* include an extra slot for registering the termios one dynamically */
 #define CONFIGURE_MAXIMUM_DRIVERS 3
 
-/* one for the console and one for the test port */
-#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 3
-
 /* we need to be able to open the test device */
 #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 4
 #define CONFIGURE_MAXIMUM_TASKS                  1
diff --git a/testsuites/libtests/termios08/init.c b/testsuites/libtests/termios08/init.c
index ee5a5c1..34f9d23 100644
--- a/testsuites/libtests/termios08/init.c
+++ b/testsuites/libtests/termios08/init.c
@@ -154,9 +154,6 @@ rtems_task Init(
 #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
 #define CONFIGURE_APPLICATION_EXTRA_DRIVERS TERMIOS_TEST_DRIVER_TABLE_ENTRY
 
-/* one for the console and one for the test port */
-#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 3
-
 /* we need to be able to open the test device */
 #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 4
 
diff --git a/testsuites/libtests/uid01/init.c b/testsuites/libtests/uid01/init.c
index 99d11f0..85b8f44 100644
--- a/testsuites/libtests/uid01/init.c
+++ b/testsuites/libtests/uid01/init.c
@@ -132,9 +132,6 @@ rtems_task Init(
     TERMIOS_TEST_DRIVER_TABLE_ENTRY, \
     SERIAL_MOUSE_DRIVER_TABLE_ENTRY
 
-/* one for the console and one for the test port */
-#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2
-
 /* we need to be able to open the test device and mouse */
 #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 5
 #define CONFIGURE_MAXIMUM_TASKS  1
diff --git a/testsuites/samples/minimum/init.c b/testsuites/samples/minimum/init.c
index 65efad2..c1f423d 100644
--- a/testsuites/samples/minimum/init.c
+++ b/testsuites/samples/minimum/init.c
@@ -53,12 +53,6 @@ static void *Init( uintptr_t ignored )
 #define CONFIGURE_DISABLE_NEWLIB_REENTRANCY
 
 /*
- *  This test does not need the console driver so there is no reason
- *  to configure termios.
- */
-#define CONFIGURE_TERMIOS_DISABLED
-
-/*
  *  This test does not use any stdio.
  */
 #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 0




More information about the vc mailing list