ccflags-y versus EXTRA_CFLAGS??
IIRC, there are a number of deprecated variables and preferred
forms, along the lines of:
ccflags-y -> EXTRA_CFLAGS
asflags-y -> EXTRA_AFLAGS
etc, etc. what are the rules these days? thanks.
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.
http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================
Quoted 6 lines · Robert P. J. Day
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.
A set of patches to fix this up subsystem by subsystem, arch by arch would be appreciated.
Sam
Quoted 9 lines · Sam Ravnborg
Quoted 6 lines · Robert P. J. Day
IIRC, there are a number of deprecated variables and preferred
forms, along the lines of:ccflags-y ->
EXTRA_CFLAGS
asflags-y ->EXTRA_AFLAGSccflags-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?)
Quoted 2 lines
A set of patches to fix this up subsystem by subsystem, arch by arch would be appreciated.
yeah, that might take a while for ccflags-y, although the ldflags-y
transformation looks fairly small.
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.
http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================
Quoted 7 lines · Robert P. J. Day
Quoted 5 lines · Sam Ravnborg
Quoted 4 lines · Robert P. J. Day
IIRC, there are a number of deprecated variables and preferred
forms, along the lines of:
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
ccflags-y ->
EXTRA_CFLAGS
asflags-y ->EXTRA_AFLAGSccflags-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.
Sam
Quoted 13 lines · Sam Ravnborg
Quoted 12 lines · Robert P. J. Day
Quoted 9 lines · Sam Ravnborg
Quoted 6 lines · Robert P. J. Day
IIRC, there are a number of deprecated variables and preferred
forms, along the lines of:ccflags-y ->
EXTRA_CFLAGS
asflags-y ->EXTRA_AFLAGSccflags-y, asflags are preferred.
Quoted 7 lines
Quoted 2 lines
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.txtwould have told you the story and what is preferred.
i *have* read that file and, 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
should i continue? and you're suggesting that reading that docs file is going to clarify all of this? really? good luck.
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.
http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================
Quoted 18 lines · Robert P. J. Day
Quoted 16 lines · Sam Ravnborg
Quoted 14 lines · Robert P. J. Day
Quoted 9 lines · Sam Ravnborg
Quoted 6 lines · Robert P. J. Day
IIRC, there are a number of deprecated variables and preferred
forms, along the lines of:ccflags-y ->
EXTRA_CFLAGS
asflags-y ->EXTRA_AFLAGSccflags-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?)
Quoted 6 lines
Quoted 4 lines
Yes - all three of them. And yes they have the -y postfix all of them.
A simple git log
Documentation/kbuild/makefiles.txtwould 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.
Quoted 4 lines
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:
Quoted 8 lines
* 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 inarch/m32r/Makefilearch/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