From 22d3cc30fd6bc38da2af2a446a8babe28e79701c Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Mon, 11 Feb 2019 02:56:03 +0100 Subject: setconfig: Add script This is a simple script for updating configuration values from the command line, with (optional) checking that the assigned value matches the actual symbol value afterwards (which it might not if there are unsatisfied dependencies). Sample usage: $ setconfig FOO_SUPPORT=y BAR_BITS=8 This is useful for patching the configuration in automated build systems, in a way that's safer than directly patching configuration files. --- setup.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 442c9bc..ff090ec 100644 --- a/setup.py +++ b/setup.py @@ -34,6 +34,7 @@ setuptools.setup( "allmodconfig", "allyesconfig", "listnewconfig", + "setconfig", ), # TODO: Don't install the menuconfig on Python 2. It won't run there. @@ -49,6 +50,7 @@ setuptools.setup( "allmodconfig = allmodconfig:main", "allyesconfig = allyesconfig:main", "listnewconfig = listnewconfig:main", + "setconfig = setconfig:main", ) }, -- cgit v1.2.3