[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070217053339.GB15861@flower.upol.cz>
Date: Sat, 17 Feb 2007 06:33:39 +0100
From: Oleg Verych <olecom@...wer.upol.cz>
To: Rusty Russell <rusty@...tcorp.com.au>
Cc: Sam Ravnborg <sam@...nborg.org>,
LKML <linux-kernel@...r.kernel.org>, Andi Kleen <ak@....de>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [pp] kbuild: asm-offsets generalized
On Sat, Feb 17, 2007 at 03:43:49PM +1100, Rusty Russell wrote:
> On Fri, 2007-02-16 at 22:56 +0100, Oleg Verych wrote:
> > Hallo.
>
> lguest parts look good though!
Thanks.
Well, then what about my way of doing generalization?
I.e. one-file shell script-let, rather many indistinguishable GNU make
files throughout source tree?
Sam's approach also offers using of CONGIG* options. But this has two
issues (for me, of course):
* lguest is in i386 arch, *top* Kbuild doing this for specific ARCH
(include/asm/);
* lguest wants to have private for-asm constants generated, unless CONFIG
is set, kbuild never will reach that directory.
Finally (my favorite). While i was told, that i'm doing more obfusticated
solutions, i doubt i did now: script-let makes magic more readable, and
GNU make's complications, like `$$' and various whitespace issues, do not
influence.
One thing is, that
+quiet_cmd_offsets = GEN $@
+ cmd_offsets = $(srctree)/scripts/mkCconstants $< $@
+
can be moved in Kbuild.include with CONFIG* upgrade:
....
sed-$(CONFIG_MIPS) = mips
....
cmd_offsets = $(srctree)/scripts/mkCconstants $< $@ $(sed-y)
Kind regards!
--
-o--=O`C info emacs : not found
#oo'L O info make : not found
<___=E M man gcc : not found
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists