From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751915AbdEPK5L (ORCPT ); Tue, 16 May 2017 06:57:11 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:40572 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750795AbdEPK5K (ORCPT ); Tue, 16 May 2017 06:57:10 -0400 Date: Tue, 16 May 2017 12:57:08 +0200 From: Pavel Machek To: Drew DeVault Cc: linux-kernel@vger.kernel.org Subject: Re: Programatically modifying .config Message-ID: <20170516105708.GA6314@amd> References: <20170312203802.GB809@homura> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KsGdsel6WgEHnImy" Content-Disposition: inline In-Reply-To: <20170312203802.GB809@homura> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --KsGdsel6WgEHnImy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun 2017-03-12 16:38:02, Drew DeVault wrote: > I'm in the research stage of making it so something to the effect of > `make setconfig OPTION=3D"CONFIG_E100E=3Dy"` will work, bringing it up he= re > for some discussion first. >=20 > Digging into the kconfig code, this seems feasible, but complicated. A > simple solver of some sort will be necessary to make the Depends expr > true, and this tool would also have to hit up the Selects and Implies > lines. >=20 > I expect there will be edge cases that this tool can't cope with, and > I'm okay with just letting that be the case. >=20 > Any thoughts? You can prepend (or append?) desired config option to .config, then run make oldconfig. And yes, script for automatically modifying =2Econfig would be nice... as would be script to automatically do "configuration bisect" (because some bugs are config dependend and nasty). Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --KsGdsel6WgEHnImy Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlka2wQACgkQMOfwapXb+vJXrgCZAf265x5Pd+cRJ8g/vaaeEOi6 i8IAoK9nTQfWVoyhKMSUixZ4rk7aqWg0 =WLyQ -----END PGP SIGNATURE----- --KsGdsel6WgEHnImy--