]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: introduce ccflags-y, asflags-y and ldflags-y
authorSam Ravnborg <sam@neptun.(none)>
Mon, 15 Oct 2007 20:25:06 +0000 (22:25 +0200)
committerSam Ravnborg <sam@neptun.(none)>
Mon, 15 Oct 2007 20:25:06 +0000 (22:25 +0200)
commit7623d29a844f94d45c464b05fdfe702e3e1b5cf5
tree1d2b8dc9eec4538b5e44139d77c018d9c3ee1f30
parent0ec2945328c195fe020a31fc65c21e4a08c692c6
kbuild: introduce ccflags-y, asflags-y and ldflags-y

Introduce ccflags-y, asflags-y and ldflags-y so we soon can
deprecate use of EXTRA_CFLAGS, EXTRA_AFLAGS and EXTRA_LDFLAGS.
This patch does not touch any in-tree users - thats next round.
Lets get this committed first and then fix the users of the
soon to be deprecated variants next.

The rationale behind this change is to introduce support for
makefile fragments like:

ccflags-$(CONFIG_WHATEVER_DEBUG) := -DDEBUG

As a replacement for the uglier:
ifeq ($(CONFIG_WHATEVER_DEBUG),y)
        EXTRA_CFLAGS := -DDEBUG
endif

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Documentation/kbuild/makefiles.txt
scripts/Makefile.build
scripts/Makefile.lib
scripts/makelst