Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753432Ab1DSTYb (ORCPT ); Tue, 19 Apr 2011 15:24:31 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:50750 "HELO mailout-de.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753145Ab1DSTYa (ORCPT ); Tue, 19 Apr 2011 15:24:30 -0400 X-Authenticated: #41721828 X-Provags-ID: V01U2FsdGVkX187ggA0O9k7Vn8oHQvdW4sTKoDFthJouOKn09m/je 1aj0BZgQ04Gz4I Date: Tue, 19 Apr 2011 21:24:27 +0200 From: Jonathan =?utf-8?Q?Neusch=C3=A4fer?= To: Francis Moreau Cc: =?utf-8?Q?Am=C3=A9rico?= Wang , Linux Kernel Mailing List Subject: Re: Kbuild: how to cleanly retrieve information compilation about the last build Message-ID: <20110419192426.GA1096@debian.debian> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Y-GMX-Trusted: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1367 Lines: 49 On Sun, Apr 17, 2011 at 12:27:29PM +0200, Francis Moreau wrote: > On Sun, Apr 17, 2011 at 6:57 AM, Américo Wang wrote: > > On Sat, Apr 16, 2011 at 10:00 PM, Francis Moreau wrote: > >> On Sat, Apr 16, 2011 at 10:26 AM, Américo Wang wrote: > >>> So why not just put that line into your script? > >>> > >> > >> Because this line was an _example_ of how the makefile could had been invoked. > >> > >> But the script has currently no idea how the previous invocation was > >> made, hence my question. > > > > You use a bad design, why not just pass these parameters to your script? > > Something like, > > > > $ ./your_script CC=my-gcc CFLAGS="-g -fwhatever" > > > > or whatever you want. > > > > Yes, I think I'll continue to do that. > > Thanks You may also try this little script (call it instead of plain "make"): #!/bin/sh MAKE=make CMDLINE=make.cmdline if [ "x$@" != "x" ]; then echo -n "$@" > $CMDLINE $MAKE "$@" else if [ -f $CMDLINE ]; then $MAKE $(cat $CMDLINE) else $MAKE fi fi thanks, Jonathan Neuschäfer -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/