Changeset cadd8d1 in rtems


Ignore:
Timestamp:
Feb 14, 2020, 3:50:18 PM (5 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
55a7316
Parents:
0561cc1
git-author:
Sebastian Huber <sebastian.huber@…> (02/14/20 15:50:18)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/25/20 06:18:36)
Message:

config: Add <rtems/confdefs/obsolete.h>

Unify handling of obsolete configuration options. Remove comments and
copyrightable content from the moved content. Use BSD-2-Clause license
for new file.

Update #3053.
Update #3875.

Location:
cpukit
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/header-dirs.am

    r0561cc1 rcadd8d1  
    5151include_rtems_bsdnetdir = $(includedir)/rtems/bsdnet
    5252include_rtems_bsdnet_HEADERS =
     53include_rtems_confdefsdir = $(includedir)/rtems/confdefs
     54include_rtems_confdefs_HEADERS =
    5355include_rtems_debuggerdir = $(includedir)/rtems/debugger
    5456include_rtems_debugger_HEADERS =
  • cpukit/headers.am

    r0561cc1 rcadd8d1  
    184184include_rtems_HEADERS += include/rtems/vmeintr.h
    185185include_rtems_HEADERS += include/rtems/watchdogdrv.h
     186include_rtems_confdefs_HEADERS += include/rtems/confdefs/obsolete.h
    186187include_rtems_debugger_HEADERS += include/rtems/debugger/rtems-debugger-bsp.h
    187188include_rtems_debugger_HEADERS += include/rtems/debugger/rtems-debugger-remote.h
  • cpukit/include/rtems/confdefs.h

    r0561cc1 rcadd8d1  
    5151#include <rtems/posix/shm.h>
    5252#include <rtems/posix/timer.h>
     53#include <rtems/confdefs/obsolete.h>
    5354
    5455#include <limits.h>
     
    126127#endif
    127128
    128 #ifdef CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS
    129   #warning "CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS has been renamed to CONFIGURE_MAXIMUM_FILE_DESCRIPTORS since RTEMS 5.1"
    130   #define CONFIGURE_MAXIMUM_FILE_DESCRIPTORS CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS
    131 #endif
    132 
    133129/**
    134130 * This macro defines the number of POSIX file descriptors allocated
     
    150146#endif
    151147
    152 #ifdef CONFIGURE_SMP_MAXIMUM_PROCESSORS
    153   #warning "CONFIGURE_SMP_MAXIMUM_PROCESSORS has been renamed to CONFIGURE_MAXIMUM_PROCESSORS since RTEMS 5.1"
    154   #define CONFIGURE_MAXIMUM_PROCESSORS CONFIGURE_SMP_MAXIMUM_PROCESSORS
    155 #endif
    156 
    157148/* Ensure that _CONFIGURE_MAXIMUM_PROCESSORS > 1 only in SMP configurations */
    158149#if defined(CONFIGURE_MAXIMUM_PROCESSORS) && defined(RTEMS_SMP)
     
    162153#endif
    163154
    164 #ifdef CONFIGURE_SMP_APPLICATION
    165   #warning "CONFIGURE_SMP_APPLICATION is obsolete since RTEMS 5.1"
    166 #endif
    167 
    168155/*
    169156 * This sets up the resources for the FIFOs/pipes.
    170157 */
    171 
    172 /**
    173  * This is specified to configure the maximum number of POSIX FIFOs.
    174  */
    175 #ifdef CONFIGURE_MAXIMUM_FIFOS
    176   #warning "CONFIGURE_MAXIMUM_FIFOS is obsolete since RTEMS 5.1; use CONFIGURE_IMFS_ENABLE_MKFIFO instead"
    177   #if CONFIGURE_MAXIMUM_FIFOS > 0
    178     #define CONFIGURE_IMFS_ENABLE_MKFIFO
    179   #endif
    180 #endif
    181 
    182 /**
    183  * This is specified to configure the maximum number of POSIX named pipes.
    184  */
    185 #ifdef CONFIGURE_MAXIMUM_PIPES
    186   #warning "CONFIGURE_MAXIMUM_PIPES is obsolete since RTEMS 5.1; use CONFIGURE_IMFS_ENABLE_MKFIFO instead"
    187   #if CONFIGURE_MAXIMUM_PIPES > 0
    188     #define CONFIGURE_IMFS_ENABLE_MKFIFO
    189   #endif
    190 #endif
    191158
    192159/**
     
    588555/**@}*/ /* end of file system group */
    589556
    590 /*
    591  *  STACK_CHECKER_ON was still available in 4.9 so give a warning for now.
    592  */
    593 #if defined(STACK_CHECKER_ON)
    594   #define CONFIGURE_STACK_CHECKER_ENABLED
    595   #warning "STACK_CHECKER_ON deprecated -- use CONFIGURE_STACK_CHECKER_ENABLED"
    596 #endif
    597 
    598557/**
    599558 * @brief Maximum priority configuration.
     
    663622 *    - CONFIGURE_SCHEDULER_USER_PER_THREAD
    664623 */
    665 
    666 #ifdef CONFIGURE_SCHEDULER_CONTEXT
    667   #warning "CONFIGURE_SCHEDULER_CONTEXT has been renamed to CONFIGURE_SCHEDULER since RTEMS 5.1"
    668   #define CONFIGURE_SCHEDULER CONFIGURE_SCHEDULER_CONTEXT
    669 #endif
    670 
    671 #ifdef CONFIGURE_SCHEDULER_CONTROLS
    672   #warning "CONFIGURE_SCHEDULER_CONTROLS has been renamed to CONFIGURE_SCHEDULER_TABLE_ENTRIES since RTEMS 5.1"
    673   #define CONFIGURE_SCHEDULER_TABLE_ENTRIES CONFIGURE_SCHEDULER_CONTROLS
    674 #endif
    675 
    676 #ifdef CONFIGURE_SMP_SCHEDULER_ASSIGNMENTS
    677   #warning "CONFIGURE_SMP_SCHEDULER_ASSIGNMENTS has been renamed to CONFIGURE_SCHEDULER_ASSIGNMENTS since RTEMS 5.1"
    678   #define CONFIGURE_SCHEDULER_ASSIGNMENTS CONFIGURE_SMP_SCHEDULER_ASSIGNMENTS
    679 #endif
    680624
    681625#if !defined(CONFIGURE_SCHEDULER_USER) && \
     
    16191563    (CONFIGURE_BDBUF_TASK_STACK_SIZE <= CONFIGURE_MINIMUM_TASK_STACK_SIZE ? \
    16201564    0 : CONFIGURE_BDBUF_TASK_STACK_SIZE - CONFIGURE_MINIMUM_TASK_STACK_SIZE))
    1621 
    1622   #if defined(CONFIGURE_HAS_OWN_BDBUF_TABLE) || \
    1623       defined(CONFIGURE_BDBUF_BUFFER_SIZE) || \
    1624       defined(CONFIGURE_BDBUF_BUFFER_COUNT)
    1625     #error BDBUF Cache does not use a buffer configuration table. Please remove.
    1626   #endif
    16271565#else
    16281566  /** This specifies the number of libblock tasks. */
     
    28442782
    28452783/*
    2846  *  These names have been obsoleted so make the user application stop compiling
    2847  */
    2848 #if defined(CONFIGURE_TEST_NEEDS_TIMER_DRIVER) || \
    2849     defined(CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER) || \
    2850     defined(CONFIGURE_TEST_NEEDS_CLOCK_DRIVER) || \
    2851     defined(CONFIGURE_TEST_NEEDS_RTC_DRIVER) || \
    2852     defined(CONFIGURE_TEST_NEEDS_STUB_DRIVER)
    2853 #error "CONFIGURATION ERROR: CONFIGURE_TEST_XXX constants are obsolete"
    2854 #endif
    2855 
    2856 /*
    28572784 *  Validate the configured maximum priority
    28582785 */
     
    28712798#endif
    28722799
    2873 #ifdef CONFIGURE_HAS_OWN_CONFIGURATION_TABLE
    2874   #warning "The CONFIGURE_HAS_OWN_CONFIGURATION_TABLE configuration option is obsolete since RTEMS 5.1"
    2875 #endif
    2876 
    2877 #ifdef CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE
    2878   #warning "The CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE configuration option is obsolete since RTEMS 5.1"
    2879 #endif
    2880 
    2881 #ifdef CONFIGURE_HAS_OWN_FILESYSTEM_TABLE
    2882   #warning "The CONFIGURE_HAS_OWN_FILESYSTEM_TABLE configuration option is obsolete since RTEMS 5.1"
    2883 #endif
    2884 
    2885 #ifdef CONFIGURE_HAS_OWN_INIT_TABLE
    2886   #warning "The CONFIGURE_HAS_OWN_INIT_TABLE configuration option is obsolete since RTEMS 5.1"
    2887 #endif
    2888 
    2889 #ifdef CONFIGURE_HAS_OWN_MOUNT_TABLE
    2890   #warning "The CONFIGURE_HAS_OWN_MOUNT_TABLE configuration option is obsolete since RTEMS 5.1"
    2891 #endif
    2892 
    2893 #ifdef CONFIGURE_HAS_OWN_MULTIPROCESSING_TABLE
    2894   #warning "The CONFIGURE_HAS_OWN_MOUNT_TABLE configuration option is obsolete since RTEMS 5.1"
    2895 #endif
    2896 
    2897 #ifdef CONFIGURE_NUMBER_OF_TERMIOS_PORTS
    2898   #warning "The CONFIGURE_NUMBER_OF_TERMIOS_PORTS configuration option is obsolete since RTEMS 5.1"
    2899 #endif
    2900 
    2901 #ifdef CONFIGURE_MAXIMUM_ADA_TASKS
    2902   #warning "The CONFIGURE_MAXIMUM_ADA_TASKS configuration option is obsolete since RTEMS 5.1"
    2903 #endif
    2904 
    2905 #ifdef CONFIGURE_MAXIMUM_FAKE_ADA_TASKS
    2906   #warning "The CONFIGURE_MAXIMUM_FAKE_ADA_TASKS configuration option is obsolete since RTEMS 5.1"
    2907 #endif
    2908 
    2909 #ifdef CONFIGURE_MAXIMUM_MRSP_SEMAPHORES
    2910   #warning "The CONFIGURE_MAXIMUM_MRSP_SEMAPHORES configuration option is obsolete since RTEMS 5.1"
    2911 #endif
    2912 
    2913 #ifdef CONFIGURE_MAXIMUM_POSIX_BARRIERS
    2914   #warning "The CONFIGURE_MAXIMUM_POSIX_BARRIERS configuration option is obsolete since RTEMS 5.1"
    2915 #endif
    2916 
    2917 #ifdef CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES
    2918   #warning "The CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES configuration option is obsolete since RTEMS 5.1"
    2919 #endif
    2920 
    2921 #ifdef CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUE_DESCRIPTORS
    2922   #warning "The CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUE_DESCRIPTORS configuration option is obsolete since RTEMS 5.1"
    2923 #endif
    2924 
    2925 #ifdef CONFIGURE_MAXIMUM_POSIX_MUTEXES
    2926   #warning "The CONFIGURE_MAXIMUM_POSIX_MUTEXES configuration option is obsolete since RTEMS 5.1"
    2927 #endif
    2928 
    2929 #ifdef CONFIGURE_MAXIMUM_POSIX_RWLOCKS
    2930   #warning "The CONFIGURE_MAXIMUM_POSIX_RWLOCKS configuration option is obsolete since RTEMS 5.1"
    2931 #endif
    2932 
    2933 #ifdef CONFIGURE_MAXIMUM_POSIX_SPINLOCKS
    2934   #warning "The CONFIGURE_MAXIMUM_POSIX_SPINLOCKS configuration option is obsolete since RTEMS 5.1"
    2935 #endif
    2936 
    2937 #ifdef CONFIGURE_MAXIMUM_PTYS
    2938   #warning "The CONFIGURE_MAXIMUM_PTYS configuration option is obsolete since RTEMS 5.1"
    2939 #endif
    2940 
    2941 #ifdef CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE
    2942   #warning "The CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE configuration option is obsolete since RTEMS 5.1"
    2943 #endif
    2944 
    2945 #ifdef CONFIGURE_TERMIOS_DISABLED
    2946   #warning "The CONFIGURE_TERMIOS_DISABLED configuration option is obsolete since RTEMS 5.1"
    2947 #endif
    2948 
    29492800/*
    29502801 * POSIX Key pair shouldn't be less than POSIX Key, which is highly
     
    29712822#endif
    29722823
    2973 #ifdef CONFIGURE_ENABLE_GO
    2974   #warning "The CONFIGURE_ENABLE_GO configuration option is obsolete since RTEMS 5.1"
    2975 #endif
    2976 
    2977 #ifdef CONFIGURE_GNAT_RTEMS
    2978   #warning "The CONFIGURE_GNAT_RTEMS configuration option is obsolete since RTEMS 5.1"
    2979 #endif
    2980 
    2981 #ifdef CONFIGURE_MAXIMUM_GOROUTINES
    2982   #warning "The CONFIGURE_MAXIMUM_GOROUTINES configuration option is obsolete since RTEMS 5.1"
    2983 #endif
    2984 
    2985 #ifdef CONFIGURE_MAXIMUM_GO_CHANNELS
    2986   #warning "The CONFIGURE_MAXIMUM_GO_CHANNELS configuration option is obsolete since RTEMS 5.1"
    2987 #endif
    2988 
    29892824#endif
    29902825/* end of include file */
Note: See TracChangeset for help on using the changeset viewer.