Hi kbuild maintainers, Attached is a one-line patch to scripts/Makefile.modpost which fixes a compilation problem I had building some out-of-tree modules (linux-gpib) against a 2.6.17.6 kernel. The problem was KBUILD_EXTMOD was set to SUBDIRS, which contained paths to multiple directories. This made modulesymfile get set to a bad value. I used $(firstword ...) to set modulesymfile using only the first directory in KBUILD_EXTMOD, like the way MODVERDIR is set in the top-level Makefile.
-- Frank
--- Makefile.modpost.original 2006-07-15 15:00:43.000000000 -0400 +++ Makefile.modpost 2006-07-19 13:07:45.648572000 -0400 @@ -40,7 +40,7 @@ include scripts/Makefile.lib kernelsymfile := $(objtree)/Module.symvers -modulesymfile := $(KBUILD_EXTMOD)/Modules.symvers +modulesymfile := $(firstword $(KBUILD_EXTMOD))/Modules.symvers # Step 1), find all modules listed in $(MODVERDIR)/ __modules := $(sort $(shell grep -h '\.ko' /dev/null $(wildcard $(MODVERDIR)/*.mod)))
pgpS76wJYgxlG.pgp
Description: PGP signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ kbuild-devel mailing list kbuild-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kbuild-devel