From: David Brownell <david-b@pacbell.net>
To: "Aguirre Rodriguez, Sergio Alberto" <saaguirre@ti.com>,
"Premi, Sanjeev" <premi@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH 0/3] Add support for OMAP35x processors
Date: Sat, 10 Jan 2009 22:54:42 -0800 [thread overview]
Message-ID: <200901102254.42829.david-b@pacbell.net> (raw)
In-Reply-To: <A24693684029E5489D1D202277BE8944163AB5F7@dlee02.ent.ti.com>
On Friday 09 January 2009, Aguirre Rodriguez, Sergio Alberto wrote:
> > comment "OMAP Board Type"
> > depends on ARCH_OMAP2 || ARCH_OMAP3
> >
> > @@ -107,7 +155,7 @@ config MACH_OMAP_2430SDP
> >
> > config MACH_OMAP_LDP
> > bool "OMAP3 LDP board"
> > - depends on ARCH_OMAP3 && ARCH_OMAP34XX
> > + depends on ARCH_OMAP3 && ARCH_OMAP34XX && !ARCH_OMAP35XX
> >
> > config MACH_OMAP2EVM
> > bool "OMAP 2530 EVM board"
> > @@ -115,11 +163,11 @@ config MACH_OMAP2EVM
> >
> > config MACH_OMAP_3430SDP
> > bool "OMAP 3430 SDP board"
> > - depends on ARCH_OMAP3 && ARCH_OMAP34XX
> > + depends on ARCH_OMAP3 && ARCH_OMAP34XX && !ARCH_OMAP35XX
> >
> > config MACH_OMAP3EVM
> > bool "OMAP 3530 EVM board"
> > - depends on ARCH_OMAP3 && ARCH_OMAP34XX
> > + depends on ARCH_OMAP35XX
> >
> > config MACH_OMAP3_BEAGLE
> > bool "OMAP3 BEAGLE board"
>
> Question to all,
>
> Why don't making above options as choice.. endchoice.
Because that completely breaks "multi-OMAP" builds.
Having kernels build (and work!) with multiple boards
has been a goal for some time now.
Switching that stuff to choice...endchoice would be
a major regression. I wouldn't merge such a patch.
> Or is there any case that multiple boards are compiled at once?
Yes, it's routine to build kernels that work with
multiple boards. Example, mine work on Beagle,
Overo, and SDP.
Why do this? Several reasons, all of which boil
down to better quality code. The most obvious
ones are being able to build-test more systems
in the same amount of time ... and then being
able to run-test them without needing to waste
any time worrying if the behavioral change was
due to some odd Kconfig glitch, or is just a bug
to fix in the code.
The more subtle issues have to do with the
various changes that happen to make that
work well. Example, board specific #ifdefs
in code start to vanish ... which is good,
since they hide lits of problems, and are
nasty coding style regardless. Sometimes
getting rid of such #ifdeffery highlights
a much better code structure.
Ditto CPU-specific #ifdeffery, of the type
which these patches add. Fix them so they
don't add #ifdeffery like that, and they
will be a lot better accepted...
- Dave
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2009-01-11 6:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-09 15:02 [PATCH 0/3] Add support for OMAP35x processors Sanjeev Premi
2009-01-09 16:02 ` Aguirre Rodriguez, Sergio Alberto
2009-01-09 16:59 ` Premi, Sanjeev
2009-01-10 19:54 ` Premi, Sanjeev
2009-01-11 6:54 ` David Brownell [this message]
2009-01-11 18:34 ` Aguirre Rodriguez, Sergio Alberto
2009-01-11 18:56 ` Premi, Sanjeev
2009-01-11 6:30 ` Steve Sakoman
2009-01-11 6:59 ` David Brownell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200901102254.42829.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=linux-omap@vger.kernel.org \
--cc=premi@ti.com \
--cc=saaguirre@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox