On Sun, Feb 17, 2008 at 05:40:18AM -0500, Robert P. J. Day wrote:
> On Sat, 16 Feb 2008, Sam Ravnborg wrote:
>
> > On Sat, Feb 16, 2008 at 04:44:44PM -0500, Robert P. J. Day wrote:
> > > On Sat, 16 Feb 2008, Sam Ravnborg wrote:
> > >
> > > > On Sat, Feb 16, 2008 at 04:21:18PM -0500, Robert P. J. Day wrote:
> > > > >
> > > > > IIRC, there are a number of deprecated variables and preferred
> > > > > forms, along the lines of:
> > > > >
> > > > > ccflags-y -> EXTRA_CFLAGS
> > > > > asflags-y -> EXTRA_AFLAGS
> > > >
> > > > ccflags-y, asflags are preferred.
> > >
> > > ah, it goes the other way. (i'm assuming you really meant asflags-y
> > > above, and this would also include EXTRA_LDFLAGS -> ldflags-y, yes?)
> >
> > Yes - all three of them. And yes they have the -y postfix all of them.
> >
> > A simple git log Documentation/kbuild/makefiles.txt would have told
> > you the story and what is preferred.
>
> i *have* read that file and,
I know this.
I wrote "git log" to tell you to read the changelog entries which
document that we went from EXTRA_CFLAGS to ccflags-y etc.
> after grepping through the source tree,
> i'm still confused. as a simple example, consider the possible
> variables for assembler flags. so far, i've found occurrences of:
>
> * AFLAGS
> * EXTRA_AFLAGS
> * ASFLAGS
> * AFLAGS-y
> * KBUILD_AFLAGS
> * aflags-y
> * asflags-y
> * extra-aflags-y
You need to open the files and look into their usage
of the above variables.
The above list is almost only local variables that has no
specific interpretation / functionality in kbuild.
Samples:
extra-aflags-y
Only referenced in arch/ppc/boot/simple/Makefile and never assigned.
Something to be cleaned up.
afalgs-y
Used as a local temporary variable in
arch/m32r/Makefile
arch/s390/Makefile
The new asflags-y should be introduced to clean it
up but not a bug
AFLAGS-y
Used as local variable in arch/powerpc/Makefile
asfalgs-y should be introduced to clean it up but
not a bug.
So see - with a bit of careful investigation things
are much less confusing.
Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html