From: Boaz Harrosh <bharrosh@panasas.com>
To: Richard Hacker <lerichi@gmx.net>, Sam Ravnborg <sam@ravnborg.org>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: how to use KBUILD_EXTRA_SYMBOLS
Date: Thu, 31 Jul 2008 17:03:06 +0300 [thread overview]
Message-ID: <4891C61A.9010206@panasas.com> (raw)
I have two out-of-tree modules that I compile with the M=
mechanics, one of the modules has imports from the other one.
I tried to follow modules.txt and put an KBUILD_EXTRA_SYMBOLS
when building. Somewhat like below:
# derived.ko module Makefile
# $(BASE_MODULE_DIR) must point to base.ko source directory
KBUILD_BASE = +$(MAKE) -C $(KSRC) M=`pwd` KBUILD_OUTPUT=$(KBUILD_OUTPUT) ARCH=$(ARCH)
derived:
$(KBUILD_BASE) KBUILD_EXTRA_SYMBOLS=$(BASE_MODULE_DIR) modules
But doing this does work:
# derived module Makefile
# $(BASE_MODULE_DIR) must point to base.ko source directory
KBUILD_BASE = +$(MAKE) -C $(KSRC) M=`pwd` KBUILD_OUTPUT=$(KBUILD_OUTPUT) ARCH=$(ARCH)
derived:
$(KBUILD_BASE) KBUILD_EXTMOD=$(BASE_MODULE_DIR) modules
The diff is s/KBUILD_EXTRA_SYMBOLS/KBUILD_EXTMOD.
It took me a long while and inspection the git-log of
Documentation/kbuild/modules.txt to figure that out. Perhaps an example
is do in documentation.
What am I doing wrong?
Thanks
Boaz
reply other threads:[~2008-07-31 14:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4891C61A.9010206@panasas.com \
--to=bharrosh@panasas.com \
--cc=lerichi@gmx.net \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®