https://github.com/torvalds/linux
Revision 96d97f262aa6120f8dd8e8e9c7a0b0677de7e29e authored by Sam Ravnborg on 31 May 2008, 20:28:40 UTC, committed by Sam Ravnborg on 31 May 2008, 20:28:40 UTC
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>
1 parent 7353190
History
Tip revision: 96d97f262aa6120f8dd8e8e9c7a0b0677de7e29e authored by Sam Ravnborg on 31 May 2008, 20:28:40 UTC
kbuild: fix $(src) assignmnet with external modules
Tip revision: 96d97f2
File Mode Size
Makefile -rw-r--r-- 335 bytes
compat.c -rw-r--r-- 17.0 KB
compat_mq.c -rw-r--r-- 4.0 KB
ipc_sysctl.c -rw-r--r-- 5.8 KB
ipcns_notifier.c -rw-r--r-- 2.1 KB
mqueue.c -rw-r--r-- 30.1 KB
msg.c -rw-r--r-- 20.9 KB
msgutil.c -rw-r--r-- 2.3 KB
namespace.c -rw-r--r-- 2.5 KB
sem.c -rw-r--r-- 32.7 KB
shm.c -rw-r--r-- 25.5 KB
util.c -rw-r--r-- 24.3 KB
util.h -rw-r--r-- 4.7 KB

back to top