]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: search arch/$ARCH/include before include/
authorSam Ravnborg <sam@ravnborg.org>
Sat, 17 Oct 2009 19:14:18 +0000 (21:14 +0200)
committerMichal Marek <mmarek@suse.cz>
Sat, 12 Dec 2009 12:08:13 +0000 (13:08 +0100)
commit605ec4b0c11446b58c35a327694ff067c85e738d
tree865bea4b359252c1289c91025ae26a82d85f26a7
parentc8a1297f977e1012fa216647039d3f56772e4155
kbuild: search arch/$ARCH/include before include/

The namespace used in arch/$ARCH/include is different from
what is used in include/ except for the include/asm directory.

This patch gives the arch/$ARCH/include/asm directory priority
over include/asm.

When we add asm-offsets.h to arch/$ARCH/include/asm/ this
patch makes sure we pick up the arch specific version
and not the one we have in include/asm.

The situation with an asm-offsets.h file located in
both include/asm _and_ arch/$ARCH/include/asm will happen
when we move more files over to include/generated.

This happens because in some cases it is not practical
to rename all users so we simply add a file
in arch/$ARCH/include/asm that includes the generated version.

This is the solution we use for asm-offsets.h as an example.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Makefile