Re: [PATCH] powerpc/boot: Only build board support files when required.

2012-04-04 Thread Geoff Levand
On Tue, 2012-04-03 at 10:55 +1000, Tony Breeds wrote: > Currently we build all board files regardless of the final zImage > target. This is sub-optimal (in terms on compilation) and leads to > problems in one platform needlessly causing failures for other > platforms. > > Use the Kconfig variable

Re: [PATCH] powerpc/boot: Only build board support files when required.

2012-04-02 Thread Stephen Rothwell
Hi Tony, On Tue, 3 Apr 2012 11:55:08 +1000 Tony Breeds wrote: > > On Tue, Apr 03, 2012 at 11:41:50AM +1000, Stephen Rothwell wrote: > > > It is more ususal in the kernel makefiles to do something like: > > > > src-wlib-$(CONFIG_40x) += 4xx.c planetcore.c > > src-plat-$(CONFIG_40x) += fixed-head

Re: [PATCH] powerpc/boot: Only build board support files when required.

2012-04-02 Thread Tony Breeds
are right. How about this. From b59e3f86d72fe3e16881ec972602a9bb3e28045a Mon Sep 17 00:00:00 2001 From: Tony Breeds Date: Mon, 2 Apr 2012 16:20:35 +1000 Subject: [PATCH] powerpc/boot: Only build board support files when required. Currently we build all board files regardless of the final zImage t

Re: [PATCH] powerpc/boot: Only build board support files when required.

2012-04-02 Thread Stephen Rothwell
Hi Tony, On Tue, 3 Apr 2012 10:55:59 +1000 Tony Breeds wrote: > > arch/powerpc/boot/Makefile | 69 > +--- > 1 files changed, 52 insertions(+), 17 deletions(-) > > diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile > index e8461cb..3d4

Re: [PATCH] powerpc/boot: Only build board support files when required.

2012-04-02 Thread Tony Breeds
On Tue, Apr 03, 2012 at 11:00:02AM +1000, David Gibson wrote: > Um.. I believe the one platform breaking another is actually working > as intended. I think Paulus did it this way to stop people breaking > platforms other than the one they were working on without realising > it. Well that may ha

Re: [PATCH] powerpc/boot: Only build board support files when required.

2012-04-02 Thread Benjamin Herrenschmidt
On Tue, 2012-04-03 at 11:00 +1000, David Gibson wrote: > On Tue, Apr 03, 2012 at 10:55:59AM +1000, Tony Breeds wrote: > > Currently we build all board files regardless of the final zImage > > target. This is sub-optimal (in terms on compilation) and leads to > > problems in one platform needlessly

Re: [PATCH] powerpc/boot: Only build board support files when required.

2012-04-02 Thread David Gibson
On Tue, Apr 03, 2012 at 10:55:59AM +1000, Tony Breeds wrote: > Currently we build all board files regardless of the final zImage > target. This is sub-optimal (in terms on compilation) and leads to > problems in one platform needlessly causing failures for other > platforms. Um.. I believe the on

[PATCH] powerpc/boot: Only build board support files when required.

2012-04-02 Thread Tony Breeds
Currently we build all board files regardless of the final zImage target. This is sub-optimal (in terms on compilation) and leads to problems in one platform needlessly causing failures for other platforms. Use the Kconfig variables to selectively construct this board files to build. Signed-off-