]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: fix $(src) assignmnet with external modules
authorSam Ravnborg <sam@ravnborg.org>
Sat, 31 May 2008 20:28:40 +0000 (22:28 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Sat, 31 May 2008 20:28:40 +0000 (22:28 +0200)
commit566b96c2e9f46333aa0014e44762e6ab5693cd0c
treec62eafe92785611555d0385771e2306a4bc94226
parent78dcdc12d4521e1f2029908a640df3de10efb23a
kbuild: fix $(src) assignmnet with external modules

When we introduced support for KBUILD_EXTRA_SYMBOLS
we started to include the externam module's kbuild
file when doing the final modpost step.

As external modules often do:
ccflags-y := -I$(src)

We had problems because $(src) was unassinged and
gcc then used the next parameter for -I resulting in
strange build failures.

Fix is to assign $(src) and $(obj) when building
external modules.

This fixes: http://bugzilla.kernel.org/show_bug.cgi?id=10798

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Tvrtko <tvrtko.ursulin@sophos.com>
Cc: Andrea Arcangeli <andrea@qumranet.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
scripts/Makefile.modpost