Avoiding #ifdefs

Russell King - ARM Linux linux at arm.linux.org.uk
Wed Jan 6 10:56:22 EST 2010


On Wed, Jan 06, 2010 at 03:35:52PM +0000, David Woodhouse wrote:
> On Wed, 2010-01-06 at 09:18 -0600, Bill Gatliff wrote:
> > CoDeBrEaKeR wrote:
> > > the problem is we don't have machine_is_omap_3630sdp(),
> > > what's available is something like machine_is_omap_3630().
> > >
> > > And there are diff types of boards which is why the #ifdef.
> > >   
> > 
> > Sounds like you need your own machine identifiers.
> 
> Or a device-tree.

That's not really an option at the moment; it's taken about nine months to
get a first prototype at having device tree support in ARM, and even that
has problems, it's clearly not as simple as the device-tree fanatics would
have us believe.



More information about the linux-arm mailing list