Re: Kbuild: how to cleanly retrieve information compilation about thelast build

From: AmÃrico Wang
Date: Sun Apr 17 2011 - 00:57:32 EST


On Sat, Apr 16, 2011 at 10:00 PM, Francis Moreau <francis.moro@xxxxxxxxx> wrote:
> On Sat, Apr 16, 2011 at 10:26 AM, AmÃrico Wang <xiyou.wangcong@xxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/