Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1445375 > unrolled thread

side-effect when enabling CONFIG_MODULES

Started byArend Van Spriel <arend.vanspriel@broadcom.com>
First post2016-07-18 12:50 +0200
Last post2016-07-18 14:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  side-effect when enabling CONFIG_MODULES Arend Van Spriel <arend.vanspriel@broadcom.com> - 2016-07-18 12:50 +0200
    Re: side-effect when enabling CONFIG_MODULES Arnd Bergmann <arnd@arndb.de> - 2016-07-18 14:00 +0200

#1445375 — side-effect when enabling CONFIG_MODULES

FromArend Van Spriel <arend.vanspriel@broadcom.com>
Date2016-07-18 12:50 +0200
Subjectside-effect when enabling CONFIG_MODULES
Message-ID<rWehA-53k-11@gated-at.bofh.it>
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?

Regards,
Arend

[toc] | [next] | [standalone]


#1445416

FromArnd Bergmann <arnd@arndb.de>
Date2016-07-18 14:00 +0200
Message-ID<rWfnj-5Fz-9@gated-at.bofh.it>
In reply to#1445375
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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web