All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/2] Detect and reject new ad-hoc CONFIG options
@ 2016-09-13  5:20 Simon Glass
  2016-09-13  5:20 ` [U-Boot] [PATCH v2 1/2] Kconfig: Add a whitelist of " Simon Glass
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Simon Glass @ 2016-09-13  5:20 UTC (permalink / raw)
  To: u-boot

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.

Changes in v2:
- Rebase to mainline
- Fix scripts so that there are no errors
- Add the 'build-whitelist.sh' script to the tree

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/build-whitelist.sh   |   51 +
 scripts/check-config.sh      |   55 +
 scripts/config_whitelist.txt | 8419 ++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 8534 insertions(+), 1 deletion(-)
 create mode 100755 scripts/build-whitelist.sh
 create mode 100755 scripts/check-config.sh
 create mode 100644 scripts/config_whitelist.txt

-- 
2.8.0.rc3.226.g39d4020

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-09-14 19:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-13  5:20 [U-Boot] [PATCH v2 0/2] Detect and reject new ad-hoc CONFIG options Simon Glass
2016-09-13  5:20 ` [U-Boot] [PATCH v2 1/2] Kconfig: Add a whitelist of " Simon Glass
2016-09-13  5:20 ` [U-Boot] [PATCH v2 2/2] Makefile: Give a build error if ad-hoc CONFIG options are added Simon Glass
2016-09-13 13:16 ` [U-Boot] [PATCH v2 0/2] Detect and reject new ad-hoc CONFIG options Tom Rini
2016-09-13 13:35   ` Simon Glass
2016-09-13 13:49     ` Tom Rini
2016-09-13 18:38       ` Simon Glass
2016-09-14 19:06         ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.