Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752533Ab1DQE5O (ORCPT ); Sun, 17 Apr 2011 00:57:14 -0400 Received: from mail-ew0-f46.google.com ([209.85.215.46]:45893 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750733Ab1DQE5H convert rfc822-to-8bit (ORCPT ); Sun, 17 Apr 2011 00:57:07 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=RvEZe4D+zj+9Bqz0YfEnutyf2WvY4jr2xmdsjYnQG0GimecNRgi6Pil+p/NuF1Plga uhT5BTD4Ni7eoSxNl+t1LbDCGyo9CLYAHq5U9bubJog2NJzT4NXQf4UIAD3NaXM96lrI 4mqPN82e9UedxHi6dGncsM4vyQ7NzUqb7JUYc= MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 17 Apr 2011 12:57:05 +0800 Message-ID: Subject: Re: Kbuild: how to cleanly retrieve information compilation about the last build From: =?UTF-8?Q?Am=C3=A9rico_Wang?= To: Francis Moreau Cc: Linux Kernel Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 911 Lines: 24 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. Also, if you really have to read the previous command (I doubt), you can use the `history` command. -- 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/