Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935404AbdCLUps (ORCPT ); Sun, 12 Mar 2017 16:45:48 -0400 Received: from mail.cmpwn.com ([45.56.77.53]:34568 "EHLO mail.cmpwn.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934858AbdCLUpk (ORCPT ); Sun, 12 Mar 2017 16:45:40 -0400 X-Greylist: delayed 454 seconds by postgrey-1.27 at vger.kernel.org; Sun, 12 Mar 2017 16:45:40 EDT Date: Sun, 12 Mar 2017 16:38:02 -0400 From: Drew DeVault To: linux-kernel@vger.kernel.org Subject: Programatically modifying .config Message-ID: <20170312203802.GB809@homura> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-GNU: Terry Pratchett Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 536 Lines: 16 I'm in the research stage of making it so something to the effect of `make setconfig OPTION="CONFIG_E100E=y"` will work, bringing it up here for some discussion first. 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. 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. Any thoughts? -- Drew DeVault