[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87egl08b9r.fsf@rasmusvillemoes.dk>
Date: Thu, 25 Jun 2015 10:04:00 +0200
From: Rasmus Villemoes <linux@...musvillemoes.dk>
To: Michal Marek <mmarek@...e.cz>
Cc: linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [RFC 1/4] scripts: add stackusage script
On Tue, Jun 23 2015, Michal Marek <mmarek@...e.cz> wrote:
>
> EXTRA_CFLAGS is reserved for use by Makefiles, please use KCFLAGS
> instead.
Will do, thanks. Maybe Documentation/SubmitChecklist and
Documentation/development-process/4.Coding wants to be updated.
> I wonder whether it worked at all, because EXTRA_CFLAGS is
> reset by scripts/Makefile.build.
It did indeed work, but only because I passed the setting on the make
command line and not via the environment. I think one needs an override
directive to actually override the settings from the command line:
$ cat Makefile
VAR1 := a1
VAR2 := a2
override VAR3 := a3
override VAR4 := a4
all:
@echo $(VAR1) $(VAR2) $(VAR3) $(VAR4)
$ VAR1=b1 VAR3=b3 make VAR2=b2 VAR4=b4 all
a1 b2 a3 a4
--
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