From: Arnd Bergmann <arnd@arndb.de>
To: Arend Van Spriel <arend.vanspriel@broadcom.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: side-effect when enabling CONFIG_MODULES
Date: Mon, 18 Jul 2016 13:51:07 +0200 [thread overview]
Message-ID: <3338485.3gKqhyT5E5@wuerfel> (raw)
In-Reply-To: <982a0742-4046-117a-0ed4-63774941950e@broadcom.com>
On Monday, July 18, 2016 12:44:45 PM CEST Arend Van Spriel wrote:
> A question for whoever can provide the answer. I have a kernel defconfig
> with everything built-in. However, I want to compile a driver module
> against it for testing. So I enabled CONFING_MODULES, but as a
> side-effect several implicitly selected config options changed from
> CONFIG_FOO=y to CONFIG_FOO=m giving me slightly different kernel at
> least when looking at the vmlinux. So I just did sed -i 's/=m/=y/'
> .config, but I was wondering if that step can be avoided somehow?
It sounds like the options that are left out in the defconfig file
default to =m, which becomes =y if CONFIG_MODULES is not set.
make my_defconfig
echo "CONFIG_MODULES=y" >> .config
make oldconfig
make savedefconfig
cp defconfig arch/*/config/my_defconfig
Arnd
prev parent reply other threads:[~2016-07-18 11:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-18 10:44 Arend Van Spriel
2016-07-18 11:51 ` Arnd Bergmann [this message]
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=3338485.3gKqhyT5E5@wuerfel \
--to=arnd@arndb.de \
--cc=arend.vanspriel@broadcom.com \
--cc=linux-kernel@vger.kernel.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®