Re: [PATCH 18/18] config: Add

2020-02-15 Thread Sebastian Huber

On 15/02/2020 15:16, Joel Sherrill wrote:



And note when perhaps with a version when an option was deemed 
obsolete. You might be able to get that from git blame in the future 
but for now we just destroyed all that info for blame by creating a 
new file.
I tried to do that, for some options I was not able to find the 
corresponding release. There is a gap in the tags 4.0.0 -> 4.5.0.

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


Re: [PATCH 18/18] config: Add

2020-02-15 Thread Gedare Bloom
On Sat, Feb 15, 2020 at 7:16 AM Joel Sherrill  wrote:

>
>
> On Sat, Feb 15, 2020, 2:38 AM Sebastian Huber <
> sebastian.hu...@embedded-brains.de> wrote:
>
>> On 15/02/2020 05:22, Gedare Bloom wrote:
>>
>> > This makes sense. Is there any reason for the ordering?
>> It should be alphabetically sorted.
>> >
>> > If possible, I think grouping by obsoleted version or alphabetical
>> > ordering would be a good idea.
>>
>> Maybe I should add a comment like this to the top of the list:
>>
>> /*
>>   * Please keep the list of obsolete configuration options
>> alphabetically sorted.
>>   *
>>   * Use #warning for renamed options and define the new option
>> accordingly.
>>   *
>>   * Use #warning for obsolete options which are now superfluous, e.g.
>> because
>>   * the objects are now self-contained.
>>   *
>>   * Use #error for options which require now a different configuration
>> approach,
>>   * e.g. options for an own configuration table.
>>   *
>>
>
> And note when perhaps with a version when an option was deemed obsolete.
> You might be able to get that from git blame in the future but for now we
> just destroyed all that info for blame by creating a new file.
>

+1 the internal documentation should explicitly say that. It looks like the
existing warnings do spit out the version of obsolescence.

Some of the macros are out-of-order.

I noticed that there is N -> M -> L that are backwards.


>
>> ___
>> devel mailing list
>> devel@rtems.org
>> http://lists.rtems.org/mailman/listinfo/devel
>
>
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH 18/18] config: Add

2020-02-15 Thread Joel Sherrill
On Sat, Feb 15, 2020, 2:38 AM Sebastian Huber <
sebastian.hu...@embedded-brains.de> wrote:

> On 15/02/2020 05:22, Gedare Bloom wrote:
>
> > This makes sense. Is there any reason for the ordering?
> It should be alphabetically sorted.
> >
> > If possible, I think grouping by obsoleted version or alphabetical
> > ordering would be a good idea.
>
> Maybe I should add a comment like this to the top of the list:
>
> /*
>   * Please keep the list of obsolete configuration options
> alphabetically sorted.
>   *
>   * Use #warning for renamed options and define the new option accordingly.
>   *
>   * Use #warning for obsolete options which are now superfluous, e.g.
> because
>   * the objects are now self-contained.
>   *
>   * Use #error for options which require now a different configuration
> approach,
>   * e.g. options for an own configuration table.
>   *
>

And note when perhaps with a version when an option was deemed obsolete.
You might be able to get that from git blame in the future but for now we
just destroyed all that info for blame by creating a new file.

>
> ___
> devel mailing list
> devel@rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH 18/18] config: Add

2020-02-15 Thread Sebastian Huber

On 15/02/2020 05:22, Gedare Bloom wrote:


This makes sense. Is there any reason for the ordering?

It should be alphabetically sorted.


If possible, I think grouping by obsoleted version or alphabetical 
ordering would be a good idea.


Maybe I should add a comment like this to the top of the list:

/*
 * Please keep the list of obsolete configuration options 
alphabetically sorted.

 *
 * Use #warning for renamed options and define the new option accordingly.
 *
 * Use #warning for obsolete options which are now superfluous, e.g. 
because

 * the objects are now self-contained.
 *
 * Use #error for options which require now a different configuration 
approach,

 * e.g. options for an own configuration table.
 */

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH 18/18] config: Add

2020-02-14 Thread Gedare Bloom
Hi Sebastian,

This makes sense. Is there any reason for the ordering?

If possible, I think grouping by obsoleted version or alphabetical ordering
would be a good idea.

On Fri, Feb 14, 2020 at 9:03 AM Sebastian Huber <
sebastian.hu...@embedded-brains.de> wrote:

> Unify handling of obsolete configuration options.  Change license to
> BSD-2-Clause.
>
> Update #3053.
> Update #3875.
> ---
>  cpukit/header-dirs.am|   2 +
>  cpukit/headers.am|   1 +
>  cpukit/include/rtems/confdefs.h  | 156 +---
>  cpukit/include/rtems/confdefs/obsolete.h | 199
> +++
>  4 files changed, 203 insertions(+), 155 deletions(-)
>  create mode 100644 cpukit/include/rtems/confdefs/obsolete.h
>
> diff --git a/cpukit/header-dirs.am b/cpukit/header-dirs.am
> index 7197f1a29f..d90271be9e 100644
> --- a/cpukit/header-dirs.am
> +++ b/cpukit/header-dirs.am
> @@ -50,6 +50,8 @@ include_rtems_bfindir = $(includedir)/rtems/bfin
>  include_rtems_bfin_HEADERS =
>  include_rtems_bsdnetdir = $(includedir)/rtems/bsdnet
>  include_rtems_bsdnet_HEADERS =
> +include_rtems_confdefsdir = $(includedir)/rtems/confdefs
> +include_rtems_confdefs_HEADERS =
>  include_rtems_debuggerdir = $(includedir)/rtems/debugger
>  include_rtems_debugger_HEADERS =
>  include_rtems_m68kdir = $(includedir)/rtems/m68k
> diff --git a/cpukit/headers.am b/cpukit/headers.am
> index 6e1ab4ccd0..f0c8319dcb 100644
> --- a/cpukit/headers.am
> +++ b/cpukit/headers.am
> @@ -183,6 +183,7 @@ include_rtems_HEADERS += include/rtems/userenv.h
>  include_rtems_HEADERS += include/rtems/version.h
>  include_rtems_HEADERS += include/rtems/vmeintr.h
>  include_rtems_HEADERS += include/rtems/watchdogdrv.h
> +include_rtems_confdefs_HEADERS += include/rtems/confdefs/obsolete.h
>  include_rtems_debugger_HEADERS +=
> include/rtems/debugger/rtems-debugger-bsp.h
>  include_rtems_debugger_HEADERS +=
> include/rtems/debugger/rtems-debugger-remote.h
>  include_rtems_debugger_HEADERS +=
> include/rtems/debugger/rtems-debugger-server.h
> diff --git a/cpukit/include/rtems/confdefs.h
> b/cpukit/include/rtems/confdefs.h
> index e0d4a77075..cf58f5ecc2 100644
> --- a/cpukit/include/rtems/confdefs.h
> +++ b/cpukit/include/rtems/confdefs.h
> @@ -50,6 +50,7 @@
>  #include 
>  #include 
>  #include 
> +#include 
>
>  #include 
>
> @@ -138,11 +139,6 @@ extern "C" {
>  #endif
>  #endif
>
> -#ifdef CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS
> -  #warning "CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS has been renamed to
> CONFIGURE_MAXIMUM_FILE_DESCRIPTORS since RTEMS 5.1"
> -  #define CONFIGURE_MAXIMUM_FILE_DESCRIPTORS
> CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS
> -#endif
> -
>  /**
>   * This macro defines the number of POSIX file descriptors allocated
>   * and managed by libio.  These are the "integer" file descriptors that
> @@ -167,11 +163,6 @@ extern "C" {
>const uint32_t rtems_libio_number_iops =
> RTEMS_ARRAY_SIZE(rtems_libio_iops);
>  #endif
>
> -#ifdef CONFIGURE_SMP_MAXIMUM_PROCESSORS
> -  #warning "CONFIGURE_SMP_MAXIMUM_PROCESSORS has been renamed to
> CONFIGURE_MAXIMUM_PROCESSORS since RTEMS 5.1"
> -  #define CONFIGURE_MAXIMUM_PROCESSORS CONFIGURE_SMP_MAXIMUM_PROCESSORS
> -#endif
> -
>  /* Ensure that _CONFIGURE_MAXIMUM_PROCESSORS > 1 only in SMP
> configurations */
>  #if defined(CONFIGURE_MAXIMUM_PROCESSORS) && defined(RTEMS_SMP)
>#define _CONFIGURE_MAXIMUM_PROCESSORS CONFIGURE_MAXIMUM_PROCESSORS
> @@ -191,34 +182,10 @@ extern "C" {
>#endif
>  #endif
>
> -#ifdef CONFIGURE_SMP_APPLICATION
> -  #warning "CONFIGURE_SMP_APPLICATION is obsolete since RTEMS 5.1"
> -#endif
> -
>  /*
>   * This sets up the resources for the FIFOs/pipes.
>   */
>
> -/**
> - * This is specified to configure the maximum number of POSIX FIFOs.
> - */
> -#ifdef CONFIGURE_MAXIMUM_FIFOS
> -  #warning "CONFIGURE_MAXIMUM_FIFOS is obsolete since RTEMS 5.1; use
> CONFIGURE_IMFS_ENABLE_MKFIFO instead"
> -  #if CONFIGURE_MAXIMUM_FIFOS > 0
> -#define CONFIGURE_IMFS_ENABLE_MKFIFO
> -  #endif
> -#endif
> -
> -/**
> - * This is specified to configure the maximum number of POSIX named pipes.
> - */
> -#ifdef CONFIGURE_MAXIMUM_PIPES
> -  #warning "CONFIGURE_MAXIMUM_PIPES is obsolete since RTEMS 5.1; use
> CONFIGURE_IMFS_ENABLE_MKFIFO instead"
> -  #if CONFIGURE_MAXIMUM_PIPES > 0
> -#define CONFIGURE_IMFS_ENABLE_MKFIFO
> -  #endif
> -#endif
> -
>  /**
>   *  @defgroup ConfigFilesystems Filesystems and Mount Table Configuration
>   *
> @@ -617,14 +584,6 @@ extern "C" {
>  #endif
>  /**@}*/ /* end of file system group */
>
> -/*
> - *  STACK_CHECKER_ON was still available in 4.9 so give a warning for now.
> - */
> -#if defined(STACK_CHECKER_ON)
> -  #define CONFIGURE_STACK_CHECKER_ENABLED
> -  #warning "STACK_CHECKER_ON deprecated -- use
> CONFIGURE_STACK_CHECKER_ENABLED"
> -#endif
> -
>  /**
>   * This configures the stack checker user extension.
>   */
> @@ -702,21 +661,6 @@ extern "C" {
>   *- CONFIGURE_SCHEDULER_USER_PER_THREAD
>  

[PATCH 18/18] config: Add

2020-02-14 Thread Sebastian Huber
Unify handling of obsolete configuration options.  Change license to
BSD-2-Clause.

Update #3053.
Update #3875.
---
 cpukit/header-dirs.am|   2 +
 cpukit/headers.am|   1 +
 cpukit/include/rtems/confdefs.h  | 156 +---
 cpukit/include/rtems/confdefs/obsolete.h | 199 +++
 4 files changed, 203 insertions(+), 155 deletions(-)
 create mode 100644 cpukit/include/rtems/confdefs/obsolete.h

diff --git a/cpukit/header-dirs.am b/cpukit/header-dirs.am
index 7197f1a29f..d90271be9e 100644
--- a/cpukit/header-dirs.am
+++ b/cpukit/header-dirs.am
@@ -50,6 +50,8 @@ include_rtems_bfindir = $(includedir)/rtems/bfin
 include_rtems_bfin_HEADERS =
 include_rtems_bsdnetdir = $(includedir)/rtems/bsdnet
 include_rtems_bsdnet_HEADERS =
+include_rtems_confdefsdir = $(includedir)/rtems/confdefs
+include_rtems_confdefs_HEADERS =
 include_rtems_debuggerdir = $(includedir)/rtems/debugger
 include_rtems_debugger_HEADERS =
 include_rtems_m68kdir = $(includedir)/rtems/m68k
diff --git a/cpukit/headers.am b/cpukit/headers.am
index 6e1ab4ccd0..f0c8319dcb 100644
--- a/cpukit/headers.am
+++ b/cpukit/headers.am
@@ -183,6 +183,7 @@ include_rtems_HEADERS += include/rtems/userenv.h
 include_rtems_HEADERS += include/rtems/version.h
 include_rtems_HEADERS += include/rtems/vmeintr.h
 include_rtems_HEADERS += include/rtems/watchdogdrv.h
+include_rtems_confdefs_HEADERS += include/rtems/confdefs/obsolete.h
 include_rtems_debugger_HEADERS += include/rtems/debugger/rtems-debugger-bsp.h
 include_rtems_debugger_HEADERS += 
include/rtems/debugger/rtems-debugger-remote.h
 include_rtems_debugger_HEADERS += 
include/rtems/debugger/rtems-debugger-server.h
diff --git a/cpukit/include/rtems/confdefs.h b/cpukit/include/rtems/confdefs.h
index e0d4a77075..cf58f5ecc2 100644
--- a/cpukit/include/rtems/confdefs.h
+++ b/cpukit/include/rtems/confdefs.h
@@ -50,6 +50,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include 
 
@@ -138,11 +139,6 @@ extern "C" {
 #endif
 #endif
 
-#ifdef CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS
-  #warning "CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS has been renamed to 
CONFIGURE_MAXIMUM_FILE_DESCRIPTORS since RTEMS 5.1"
-  #define CONFIGURE_MAXIMUM_FILE_DESCRIPTORS 
CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS
-#endif
-
 /**
  * This macro defines the number of POSIX file descriptors allocated
  * and managed by libio.  These are the "integer" file descriptors that
@@ -167,11 +163,6 @@ extern "C" {
   const uint32_t rtems_libio_number_iops = RTEMS_ARRAY_SIZE(rtems_libio_iops);
 #endif
 
-#ifdef CONFIGURE_SMP_MAXIMUM_PROCESSORS
-  #warning "CONFIGURE_SMP_MAXIMUM_PROCESSORS has been renamed to 
CONFIGURE_MAXIMUM_PROCESSORS since RTEMS 5.1"
-  #define CONFIGURE_MAXIMUM_PROCESSORS CONFIGURE_SMP_MAXIMUM_PROCESSORS
-#endif
-
 /* Ensure that _CONFIGURE_MAXIMUM_PROCESSORS > 1 only in SMP configurations */
 #if defined(CONFIGURE_MAXIMUM_PROCESSORS) && defined(RTEMS_SMP)
   #define _CONFIGURE_MAXIMUM_PROCESSORS CONFIGURE_MAXIMUM_PROCESSORS
@@ -191,34 +182,10 @@ extern "C" {
   #endif
 #endif
 
-#ifdef CONFIGURE_SMP_APPLICATION
-  #warning "CONFIGURE_SMP_APPLICATION is obsolete since RTEMS 5.1"
-#endif
-
 /*
  * This sets up the resources for the FIFOs/pipes.
  */
 
-/**
- * This is specified to configure the maximum number of POSIX FIFOs.
- */
-#ifdef CONFIGURE_MAXIMUM_FIFOS
-  #warning "CONFIGURE_MAXIMUM_FIFOS is obsolete since RTEMS 5.1; use 
CONFIGURE_IMFS_ENABLE_MKFIFO instead"
-  #if CONFIGURE_MAXIMUM_FIFOS > 0
-#define CONFIGURE_IMFS_ENABLE_MKFIFO
-  #endif
-#endif
-
-/**
- * This is specified to configure the maximum number of POSIX named pipes.
- */
-#ifdef CONFIGURE_MAXIMUM_PIPES
-  #warning "CONFIGURE_MAXIMUM_PIPES is obsolete since RTEMS 5.1; use 
CONFIGURE_IMFS_ENABLE_MKFIFO instead"
-  #if CONFIGURE_MAXIMUM_PIPES > 0
-#define CONFIGURE_IMFS_ENABLE_MKFIFO
-  #endif
-#endif
-
 /**
  *  @defgroup ConfigFilesystems Filesystems and Mount Table Configuration
  *
@@ -617,14 +584,6 @@ extern "C" {
 #endif
 /**@}*/ /* end of file system group */
 
-/*
- *  STACK_CHECKER_ON was still available in 4.9 so give a warning for now.
- */
-#if defined(STACK_CHECKER_ON)
-  #define CONFIGURE_STACK_CHECKER_ENABLED
-  #warning "STACK_CHECKER_ON deprecated -- use CONFIGURE_STACK_CHECKER_ENABLED"
-#endif
-
 /**
  * This configures the stack checker user extension.
  */
@@ -702,21 +661,6 @@ extern "C" {
  *- CONFIGURE_SCHEDULER_USER_PER_THREAD
  */
 
-#ifdef CONFIGURE_SCHEDULER_CONTEXT
-  #warning "CONFIGURE_SCHEDULER_CONTEXT has been renamed to 
CONFIGURE_SCHEDULER since RTEMS 5.1"
-  #define CONFIGURE_SCHEDULER CONFIGURE_SCHEDULER_CONTEXT
-#endif
-
-#ifdef CONFIGURE_SCHEDULER_CONTROLS
-  #warning "CONFIGURE_SCHEDULER_CONTROLS has been renamed to 
CONFIGURE_SCHEDULER_TABLE_ENTRIES since RTEMS 5.1"
-  #define CONFIGURE_SCHEDULER_TABLE_ENTRIES CONFIGURE_SCHEDULER_CONTROLS
-#endif
-
-#ifdef CONFIGURE_SMP_SCHEDULER_ASSIGNMENTS
-  #warning "CONFIGURE_SMP_SCHEDU