Skip to contentSkip to conversation

kbuild: allow multi-word $M in Makefile.modpost

PATCH New Greg Banks 1 participant 1 message Oct 10, 2006 Kbuild

lore
Share & tools
lore

Greg Banks

author
#0 lore raw

PATCH 1/1 kbuild: allow multi-word $M in Makefile.modpost

Some people want to do crazy things like pass multiple directories as the value of $(SUBDIRS) or $M. Mostly this kinda works, except that Makefile.modpost constructs a modpost commandline which fails modpost's argument parsing. This patch fixes that little wrinkle.

---

 scripts/Makefile.modpost |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
scripts/Makefile.modpost +1 -1
Index: linux-git-20061009/scripts/Makefile.modpost
===================================================================
@@ -44,7 +44,7 @@ include scripts/Kbuild.include
 include scripts/Makefile.lib
 
 kernelsymfile := $(objtree)/Module.symvers
-modulesymfile := $(KBUILD_EXTMOD)/Module.symvers
+modulesymfile := $(firstword $(KBUILD_EXTMOD))/Module.symvers
 
 # Step 1), find all modules listed in $(MODVERDIR)/
 __modules := $(sort $(shell grep -h '\.ko' /dev/null $(wildcard $(MODVERDIR)/*.mod)))
Signature · 2 lines
Greg Banks, R&D Software Engineer, SGI Australian Software Group.
I don't speak for SGI.