Patch: Rework of Device Driver Configuration

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Sep 10 06:40:16 UTC 2013


On 2013-09-09 21:30, Joel Sherrill wrote:
> +/**
> + * The CONFIGURE_MAXIMUM_DRIVERS parameter is obsolete.
> + * Users should use the CONFIGURE_MAXIMUM_DYNAMIC_DRIVERS
> + * to specify the number of dynamically installed drivers.
> + */
> +#ifdef CONFIGURE_MAXIMUM_DRIVERS
> +  #error "CONFIGURE_MAXIMUM_DRIVERS is obsolete. Use CONFIGURE_MAXIMUM_DYNAMIC_DRIVERS instead"
> +#endif

I wouldn't break all existing configurations this way.  I think its only an 
error if the application defines CONFIGURE_MAXIMUM_DRIVERS and 
CONFIGURE_MAXIMUM_DYNAMIC_DRIVERS at once.  It is also an error if 
CONFIGURE_MAXIMUM_DRIVERS < CONFIGURE_NUMBER_OF_STATIC_DRIVERS.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list