From mboxrd@z Thu Jan 1 00:00:00 1970 From: Derek Cheugn Subject: Re: what's the fast way to enable a config item? Date: Tue, 5 Jan 2016 13:06:12 -0800 Message-ID: <20160105210612.GA31485@ubuntu-gnome> References: <20151225013040.GA21467@ubuntu-gnome> <568B9A79.8020105@yuhu.biz> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=student-glendale-edu.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=oJdy0eQUPxlLCZy5x5KkKdXgETgejld1Kd9/ZnUNTII=; b=eR41+6Wv1QffVs9OQvQ01WvDMIr/pav3TVzerjIbiiU2LPf9ANp0OzZUHBiJFtQTPr H9T7phiQbkZmkKJGTm94TAcyHRz3PK9YblvR2RFpd68iCTtgvtGvVLI994FwWfTFbZ5k w65r2ZDwhXxBkso4xkvr6JENNe654n8bvT5Vke/OQDjBjtB47mR/rwWj8UQCjK++0MCl YY+fJn/iN9FfvHnqu1f1J13u+AEc+6eKafubB/DqDo2MAj/E/uCMb+orKv4nOWZMJIJS VYa6CCzTkzeAMuhZHp9XZNY+DhgxC4SKX4xt6QpfLFUjOTwtgscv+wCHWx/FcsQLE0HF 1VxQ== Content-Disposition: inline In-Reply-To: <568B9A79.8020105@yuhu.biz> Sender: linux-config-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="utf-8" To: Marian Marinov Cc: linux-config@vger.kernel.org On Tue, Jan 05, 2016 at 12:27:05PM +0200, Marian Marinov wrote: > You simply need to enable it in your .config file and rebuild. that simply doesn't always work; for example I started with a minimal d= efconfig and want to enable SENSORS_APPLESMC, from nconfig I can search this one get it depends HWMON && INPUT, if the current .config doesn't have HWMO= N and I just write SENSORS_APPLESMC=3Dm there, the following rebuild will= deselect SENSORS_APPLESMC actually; =E2=94=8C=E2=94=80=E2=94=80 Search Results =E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=90 =E2=94=82 = =E2=94=82 =E2=94=82 Symbol: SENSORS_APPLESMC [=3Dm] = =E2=94=82 =E2=94=82 Type : tristate = =E2=94=82 =E2=94=82 Prompt: Apple SMC (Motion sensor, light sensor, keyboard back= light) =E2=94=82 =E2=94=82 Location: = =E2=94=82 =E2=94=82 -> Device Drivers = =E2=94=82 =E2=94=82 -> Hardware Monitoring support (HWMON [=3Dy]) = =E2=94=82 =E2=94=82 Defined at drivers/hwmon/Kconfig:299 = =E2=94=82 =E2=94=82 Depends on: HWMON [=3Dy] && INPUT [=3Dy] && X86 [=3Dy] = =E2=94=82 =E2=94=82 Selects: NEW_LEDS [=3Dy] && LEDS_CLASS [=3Dy] && INPUT_POLL= DEV [=3Dy] =E2=94=82 =E2=94=82 = =E2=94=82 =E2=94=82 = =E2=94=82 =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=98 I am asking a config method that accepts a list of config items (or mod= ule names), let it make sure all depended items also be selected? thanks, >=20 > Marian >=20 > On 12/25/2015 03:30 AM, Derek Cheugn wrote: > > hi all, > > > > I have a simple question (have searched but didn't get any good ans= wer > > yet): > > > > what's the best way to enable a config item without interactive > > interface? if I know the module name, I can find the CONFIG_ name b= y > > this: then in menuconfig to search SENSORS_APPLESMC to enable it; > > > > $ find -name Makefile |xargs grep -w applesmc > > ./drivers/hwmon/Makefile:obj-$(CONFIG_SENSORS_APPLESMC) +=3D ap= plesmc.o > > > > but is there a good way to enable it without interactive interface? > > > > the interactive config interfaces (menuconfig/gconfig/xconfig) are = good > > for one or two configs, but when I want to enable a list of modules= , > > this solution is not scalable; > > > > I've tried localmodconfig with LSMOD=3D env variable, but the > > localmodconfig doesn't seem to be working in this way, I feel it's > > working by an elimination way, to start from a known to be working > > config (maybe from a distro or somewhere) > > > > $ LSMOD=3D~/tmp/modules-merged make localmodconfig > > > > while, I want to start with `make defconfig` and enable a list of c= onfig > > needed; that to accept a list of CONFIG_* names, or a list of modul= es > > name, does anyone if such a config method exists? -- To unsubscribe from this list: send the line "unsubscribe linux-config"= in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html