[OpenBIOS] [PATCH 1/1] [FCODE-utils] Allow overriding more Makefile vars
segher at kernel.crashing.org
Mon Jan 18 13:12:14 CET 2016
On Mon, Jan 18, 2016 at 11:04:34AM +0100, Peter Lemenkov wrote:
> Hello All!
> 2016-01-18 7:50 GMT+01:00 Segher Boessenkool <segher at kernel.crashing.org>:
> > It probably works fine. "?=" can be problematic with e.g. recursive
> > makefiles, but you don't have those here.
> Also it's already used within the Makefiles to override C-compiler, so
> my patch won't change the current situation.
> > But why do you need it? Why doesn't e.g.
> > make DESTDIR=/opt/bla
> > work for you as-is? Or do you need those vars to be passed in via the
> > environment?
> Unfortunately this DESTDIR trick won't work. Explicitly stated
> variables from the Makefile itself have preference over the
> environment variables unless they stated with "?=". At least this is
> how GNU make works.
But this is *not* an environment variable!
More information about the OpenBIOS