From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Wed, 24 Aug 2016 08:44:12 -0600 Subject: [U-Boot] [RFC PATCH 0/2] RFC: Detect and reject new ad-hoc CONFIG options Message-ID: <1472049854-4891-1-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Despite the availability of Kconfig, the number of ad-hoc CONFIG options in U-Boot is still at over 8000. In February 2015 (commit 741e58e0) there were around 8387 ad-hoc CONFIGs. As of this patch there are about 8336, only a little fewer. One problem is that new ones are still being added, admittedly at a slower rate. This series adds a Makefile check to detect that and produce a build error. This provides immediate feedback that new CONFIG options should go in Kconfig. NOTE: This series needs work since there are some existing CONFIG options that are not included in the whitelist. Assuming that the approach makes sense, I will tweak my scripts to sort this out. Simon Glass (2): Kconfig: Add a whitelist of ad-hoc CONFIG options Makefile: Give a build error if ad-hoc CONFIG options are added Makefile | 10 +- scripts/check-config.sh | 55 + scripts/config_whitelist.txt | 9035 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 9099 insertions(+), 1 deletion(-) create mode 100755 scripts/check-config.sh create mode 100644 scripts/config_whitelist.txt -- 2.8.0.rc3.226.g39d4020