[PATCH 1/6] ARM: move ARCH config definitions into mach dirs

Russell King - ARM Linux linux at arm.linux.org.uk
Fri Aug 31 07:11:38 EDT 2012


On Fri, Aug 31, 2012 at 01:05:12PM +0200, Domenico Andreoli wrote:
> On Thu, Aug 30, 2012 at 08:28:31PM +0100, Russell King - ARM Linux wrote:
> > 
> > I think what we need is arch/arm/include/debug, move the platform specific
> > debug-macros headers into there, named using platform specific file names.
> > Then we have the config system define a string-based config:
> > 
> > config DEBUG_LL_INCLUDE
> > 	string
> > 	default "<debug/icedcc.S>" if DEBUG_ICEDCC
> > 	default "<debug/msm.S>" if DEBUG_MSM_UART1 || DEBUG_MSM_UART2 || DEBUG_MSM_UART3
> > ... etc ...
> > 	default "mach/debug-macros.S"
> > 
> > And then we can have the various assembly codes do:
> > 
> > #include CONFIG_DEBUG_LL_INCLUDE
> > 
> > Not only does this give a migration path, but it also gives folk a reason
> > to move to the 'new way' if they want to be part of a multi-platform
> > kernel - and it's a trivial thing to do.  Just move the include file,
> > add an entry to the DEBUG_LL_INCLUDE entry and the "Kernel low-level
> > debugging port" choice statement, and job done for both non-multi-platform
> > and multi-platform kernels.
> > 
> > What's even nicer about this approach is it doesn't require everyone to
> > change simultaneously - it can be done progressively as required.
> 
> This means that:

I'm not about to re-open the debate again.  Please go back and read the
previous discussions during the last year about this where eventually
agreement on this way forward was reached.  Thanks.



More information about the linux-arm-kernel mailing list