public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] fix not working KBUILD_EXTRA_SYMBOLS
@ 2008-10-14  8:34 Peter Volkov
  0 siblings, 0 replies; only message in thread
From: Peter Volkov @ 2008-10-14  8:34 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: linux-kernel, Andrew Morton

[-- Attachment #1: Type: text/plain, Size: 411 bytes --]


If you even define KBUILD_EXTRA_SYMBOLS in Makefile it will not be
expanded into command line argument for modpost. Patch in a

Note: this bug was reported and kernel bugzilla:
http://bugzilla.kernel.org/show_bug.cgi?id=11567
and patch was included in -mm tree.

The patch was generated against 2.6.26 kernel but I suppose it should
work applies to the linux/kernel/git/torvalds/linux-2.6.git too.

-- 
Peter.

[-- Attachment #2: linux-2.6-KBUILD_EXTRA_SYMBOLS.patch --]
[-- Type: text/x-patch, Size: 616 bytes --]

--- scripts/Makefile.modpost.orig	2008-09-14 13:34:16.000000000 +0400
+++ scripts/Makefile.modpost	2008-09-14 13:34:41.000000000 +0400
@@ -82,7 +82,7 @@
  $(if $(CONFIG_MODULE_SRCVERSION_ALL),-a,)       \
  $(if $(KBUILD_EXTMOD),-i,-o) $(kernelsymfile)   \
  $(if $(KBUILD_EXTMOD),-I $(modulesymfile))      \
- $(if $(KBUILD_EXTRA_SYMBOLS), $(patsubst %, -e %,$(EXTRA_SYMBOLS))) \
+ $(if $(KBUILD_EXTRA_SYMBOLS), $(patsubst %, -e %,$(KBUILD_EXTRA_SYMBOLS))) \
  $(if $(KBUILD_EXTMOD),-o $(modulesymfile))      \
  $(if $(CONFIG_DEBUG_SECTION_MISMATCH),,-S)      \
  $(if $(CONFIG_MARKERS),-K $(kernelmarkersfile)) \

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-14  8:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-14  8:34 [patch] fix not working KBUILD_EXTRA_SYMBOLS Peter Volkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox