Messages in this thread | | | From | Rasmus Villemoes <> | Subject | Re: [RFC 1/4] scripts: add stackusage script | Date | Thu, 25 Jun 2015 10:04:00 +0200 |
| |
On Tue, Jun 23 2015, Michal Marek <mmarek@suse.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
| |