lkml.org 
[lkml]   [2008]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/5] x86/pci: patches for tip/x86/unify-pci
> > 
> > obj-y is empty when you enter the Makefile.
> > So if you start out with ':=' or '+=' is no difference.
>
> i guess it's safer to use +=, because it's ordering invariant.
>
> We should use := only if we absolutely want to override the current
> rules.

In the past I was carefully to use ':=' for the first assignmnet so the
variable was a " simply expanded variables" variable.
But as I have added a 'obj-y := ' in kbuild we should
be safe.

" simply expanded variables" is some special make stuff.

A typical:

FOO = bar

is a "recursively expanded variable".
Here the assingment is evaluated on each usage.

Sam


\
 
 \ /
  Last update: 2008-07-11 12:31    [W:0.080 / U:0.644 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site