Skip to contentSkip to conversation

Detect and reject new ad-hoc CONFIG options

PATCH Superseded Simon Glass 2 participants 8 messages Sep 13, 2016 – Sep 14, 2016 Kbuild

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover Detect and reject new ad-hoc CONFIG options

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
Signature · 1 line
2.8.0.rc3.226.g39d4020
#1 lore raw

PATCH v2 1/2 Kconfig: Add a whitelist of ad-hoc CONFIG options

Add a list of ad-hoc CONFIG options that don't use Kconfig. This can be used to check that new ones are not being added.

---

Changes in v2: None

 scripts/build-whitelist.sh   |   51 +
 scripts/config_whitelist.txt | 8419 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 8470 insertions(+)
 create mode 100755 scripts/build-whitelist.sh
 create mode 100644 scripts/config_whitelist.txt
scripts/build-whitelist.sh new file +51 -0
new file mode 100755
index 0000000..90e7132
@@ -0,0 +1,51 @@
+#!/bin/sh
+# Copyright (c) 2016 Google, Inc
+# Written by Simon Glass <[email protected]>
+#
+
+# This script creates the configuration whitelist file. This file contains
+# all the config options which are allowed to be used outside Kconfig.
+# Please do not add things to the whitelist. Instead, add your new option
+# to Kconfig.
+#
+export LC_ALL=C LC_COLLATE=C
+
+# There are two independent greps. The first pulls out the component parts
+# of CONFIG_SYS_EXTRA_OPTIONS. An example is:
+#
+#	SUNXI_GMAC,AHCI,SATAPWR=SUNXI_GPB(8)
+#
+# We want this to produce:
+#	CONFIG_SUNXI_GMAC
+#	CONFIG_AHCI
+#	CONFIG_SATAPWR
+#
+# The second looks for the rest of the CONFIG options, but excludes those in
+# Kconfig and defconfig files.
+#
+(
+git grep CONFIG_SYS_EXTRA_OPTIONS |sed -n \
+	's/.*CONFIG_SYS_EXTRA_OPTIONS="\(.*\)"/\1/ p' \
+	| tr , '\n' \
+	| sed 's/ *\([A-Z0-9_]*\).*/CONFIG_\1/'
+
+git grep CONFIG_ | \
+	egrep -vi "(Kconfig:|defconfig:|README|.py|.pl:)" \
+	| tr ' \t' '\n\n' \
+	| sed -n 's/^\(CONFIG_[A-Za-z0-9_]*\).*/\1/p'
+) \
+	|sort |uniq >scripts/config_whitelist.txt.tmp1;
+
+# Finally, we need a list of the valid Kconfig options to exclude these from
+# the whitelist.
+cat `find . -name Kconfig` |sed -n \
+	-e 's/^config *\([A-Za-z0-9_]*\).*$/CONFIG_\1/p' \
+	-e 's/^menuconfig *\([A-Za-z0-9_]*\).*$/CONFIG_\1/p' \
+	|sort |uniq >scripts/config_whitelist.txt.tmp2
+
+# Use only the options that are present in the first file but not the second.
+comm -23 scripts/config_whitelist.txt.tmp1 scripts/config_whitelist.txt.tmp2 \
+	|sort |uniq >scripts/config_whitelist.txt
+rm scripts/config_whitelist.txt.tmp1 scripts/config_whitelist.txt.tmp2
+
+unset LC_ALL LC_COLLATE
scripts/config_whitelist.txt new file +8419 -0

2,949 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.8.0.rc3.226.g39d4020

Part of the diff is not shown here. View the raw message.

#2 lore raw

PATCH v2 2/2 Makefile: Give a build error if ad-hoc CONFIG options are added

In reply to Simon Glass

New CONFIG options should be added via Kconfig. To help prevent new ad-hoc CONFIGs from being added, give a build error when these are detected.

---

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

 Makefile                | 10 ++++++++-
 scripts/check-config.sh | 55 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+), 1 deletion(-)
 create mode 100755 scripts/check-config.sh
Makefile +9 -1
index 03329e7..466e0a7 100644
@@ -740,7 +740,8 @@ DO_STATIC_RELA =
 endif
 
 # Always append ALL so that arch config.mk's can add custom ones
-ALL-y += u-boot.srec u-boot.bin u-boot.sym System.map u-boot.cfg binary_size_check
+ALL-y += u-boot.srec u-boot.bin u-boot.sym System.map u-boot.cfg \
+	binary_size_check no_new_adhoc_configs_check
 
 ALL-$(CONFIG_ONENAND_U_BOOT) += u-boot-onenand.bin
 ifeq ($(CONFIG_SPL_FSL_PBL),y)
@@ -946,6 +947,13 @@ u-boot.dis:	u-boot
 u-boot.cfg:	include/config.h FORCE
 	$(call if_changed,cpp_cfg)
 
+# Check that this build does not use CONFIG options that we don't know about
+# unless they are in Kconfig. All the existing CONFIG options are whitelisted,
+# so new ones should not be added.
+no_new_adhoc_configs_check: u-boot.cfg FORCE
+	$(srctree)/scripts/check-config.sh $< \
+		$(srctree)/scripts/config_whitelist.txt ${srctree}
+
 ifdef CONFIG_TPL
 SPL_PAYLOAD := tpl/u-boot-with-tpl.bin
 else
scripts/check-config.sh new file +55 -0

55 lines not on this page · raw message

Signature · 1 line
2.8.0.rc3.226.g39d4020
#3 lore raw

v2 cover Detect and reject new ad-hoc CONFIG options

In reply to Simon Glass
Quoted 11 lines · Simon Glass

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.

Quoted 8 lines

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

OK, this is still a little fragile. When I do:
./tools/buildman/buildman -b master --force-build --step 0 \
-SCdvel 'avr32|nds32|bfin|m68k|microblaze|or32|sh4|sparc|mips|mips64|xtensa'

vs kconfig-working2 I'm seeing a bunch of failures:
+(M5475GFE) make[1]: *** [no_new_adhoc_configs_check] Error 1 +(M5475GFE) make: *** [sub-make] Error 2

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160913/10967c80/attachment.sig>
#4 lore raw

v2 cover Detect and reject new ad-hoc CONFIG options

Hi Tom,

Quoted 27 lines · Tom Rini
Quoted 11 lines · Simon Glass

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.

Quoted 8 lines

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

OK, this is still a little fragile. When I do:
./tools/buildman/buildman -b master --force-build --step 0 \
-SCdvel 'avr32|nds32|bfin|m68k|microblaze|or32|sh4|sparc|mips|mips64|xtensa'

vs kconfig-working2 I'm seeing a bunch of failures:

Review

Quoted 2 lines
(quoted diff) +2 -0
+(M5475GFE) make[1]: *** [no_new_adhoc_configs_check] Error 1
+(M5475GFE) make: *** [sub-make] Error 2

Yes it looks like I was testing it incorrectly, relying on running on from the SPL series. One problem is that it misses configs with lower case which are defined in Kconfig and then used. I've updated u-boot-dm/kconfig-working2 to deal with that.

I'll take another look at this and have an update out today. But we can decouple this from the painful SPL series if you like, since in principle we can run the generation script to create the first of the two patches.

Regards,
Simon

#5 lore raw

v2 cover Detect and reject new ad-hoc CONFIG options

Quoted 38 lines · Simon Glass

Hi Tom,

Quoted 27 lines · Tom Rini
Quoted 11 lines · Simon Glass

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.

Quoted 8 lines

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

OK, this is still a little fragile. When I do:
./tools/buildman/buildman -b master --force-build --step 0 \
-SCdvel 'avr32|nds32|bfin|m68k|microblaze|or32|sh4|sparc|mips|mips64|xtensa'

vs kconfig-working2 I'm seeing a bunch of failures:

Review

Quoted 2 lines
(quoted diff) +2 -0
+(M5475GFE) make[1]: *** [no_new_adhoc_configs_check] Error 1
+(M5475GFE) make: *** [sub-make] Error 2

Yes it looks like I was testing it incorrectly, relying on running on from the SPL series. One problem is that it misses configs with lower case which are defined in Kconfig and then used. I've updated u-boot-dm/kconfig-working2 to deal with that.

Quoted 4 lines

I'll take another look at this and have an update out today. But we can decouple this from the painful SPL series if you like, since in principle we can run the generation script to create the first of the two patches.

Yes, we can de-couple this. However, you might want to take a look at say xtensa as in my check with before/after kconfig-working2 there's a tiny size difference and I don't see that normally for a Kconfig migration. I'm doing my arm/powerpc build now to see if there's a similar set of size changes there and will then start poking at map files.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160913/2d546807/attachment.sig>
#6 lore raw

v2 cover Detect and reject new ad-hoc CONFIG options

Hi Tom,

Quoted 44 lines · Tom Rini
Quoted 38 lines · Simon Glass

Hi Tom,

Quoted 27 lines · Tom Rini
Quoted 11 lines · Simon Glass

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.

Quoted 8 lines

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

OK, this is still a little fragile. When I do:
./tools/buildman/buildman -b master --force-build --step 0 \
-SCdvel 'avr32|nds32|bfin|m68k|microblaze|or32|sh4|sparc|mips|mips64|xtensa'

vs kconfig-working2 I'm seeing a bunch of failures:

Review

Quoted 2 lines
(quoted diff) +2 -0
+(M5475GFE) make[1]: *** [no_new_adhoc_configs_check] Error 1
+(M5475GFE) make: *** [sub-make] Error 2

Yes it looks like I was testing it incorrectly, relying on running on from the SPL series. One problem is that it misses configs with lower case which are defined in Kconfig and then used. I've updated u-boot-dm/kconfig-working2 to deal with that.

Quoted 4 lines

I'll take another look at this and have an update out today. But we can decouple this from the painful SPL series if you like, since in principle we can run the generation script to create the first of the two patches.

Quoted 6 lines

Yes, we can de-couple this. However, you might want to take a look at say xtensa as in my check with before/after kconfig-working2 there's a tiny size difference and I don't see that normally for a Kconfig migration. I'm doing my arm/powerpc build now to see if there's a similar set of size changes there and will then start poking at map files.

Here's a full list of config changes for the SPL series as far as I can tell:

$ buildman -b kc4-conf -fC --step 0 -DI -s
boards.cfg is up to date. Nothing to do.
Summary of 2 commits for 1196 boards (32 threads, 1 job per thread)
01: buildman
  openrisc:  +   openrisc-generic
     sparc:  +   grsim grsim_leon2 gr_cpci_ax2000 gr_xc3s_1500 gr_ep2s60
  blackfin:  +   bf609-ezkit
46: Convert CONFIG_SPL_YMODEM_SUPPORT to Kconfig
arm:
   + u-boot.cfg: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1 CONFIG_SPL_ENV_SUPPORT=1
CONFIG_SPL_NET_SUPPORT=1 CONFIG_SPL_NET_VCI_STRING="" CONFIG_STV0991=1
CONFIG_SYS_MONITOR_LEN=0x00040000 CONFIG_USBTTY=1
   - u-boot.cfg: CONFIG_DW_UDC=1 CONFIG_ENV_IS_IN_NAND=1
CONFIG_ENV_OFFSET=0x60000 CONFIG_ENV_RANGE=0x10000
CONFIG_SPEAR_USBTTY=1 CONFIG_SPL_NET_VCI_STRING="AM43xx U-Boot SPL"
CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST Microelectronics"
CONFIG_USBD_PRODUCT_NAME="SPEAr SoC" CONFIG_USB_DEVICE=1
CONFIG_USB_TTY=1 CONFIG_nand=1 CONFIG_spear300=1 CONFIG_spear310=1
CONFIG_spear320=1 CONFIG_spear600=1 CONFIG_stv0991=1 CONFIG_usbtty=1
   + u-boot-spl.cfg: CONFIG_SPL_MMC_SUPPORT=1
CONFIG_SPL_NAND_SUPPORT=1 CONFIG_SPL_YMODEM_SUPPORT=1
   - u-boot-spl.cfg: CONFIG_SPL_NET_VCI_STRING="AM43xx U-Boot SPL"
   + all: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1 CONFIG_SPL_ENV_SUPPORT=1
CONFIG_SPL_MMC_SUPPORT=1 CONFIG_SPL_NAND_SUPPORT=1
CONFIG_SPL_NET_SUPPORT=1 CONFIG_SPL_NET_VCI_STRING=""
CONFIG_SPL_YMODEM_SUPPORT=1 CONFIG_STV0991=1
CONFIG_SYS_MONITOR_LEN=0x00040000 CONFIG_USBTTY=1
   - all: CONFIG_DW_UDC=1 CONFIG_ENV_IS_IN_NAND=1
CONFIG_ENV_OFFSET=0x60000 CONFIG_ENV_RANGE=0x10000
CONFIG_SPEAR_USBTTY=1 CONFIG_SPL_NET_VCI_STRING="AM43xx U-Boot SPL"
CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST Microelectronics"
CONFIG_USBD_PRODUCT_NAME="SPEAr SoC" CONFIG_USB_DEVICE=1
CONFIG_USB_TTY=1 CONFIG_nand=1 CONFIG_spear300=1 CONFIG_spear310=1
CONFIG_spear320=1 CONFIG_spear600=1 CONFIG_stv0991=1 CONFIG_usbtty=1
spear320_usbtty spear320_usbtty_pnor :
   + u-boot.cfg: CONFIG_USBTTY=1
   - u-boot.cfg: CONFIG_DW_UDC=1 CONFIG_SPEAR_USBTTY=1
CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST Microelectronics"
CONFIG_USBD_PRODUCT_NAME="SPEAr SoC" CONFIG_USB_DEVICE=1
CONFIG_USB_TTY=1 CONFIG_spear320=1 CONFIG_usbtty=1
   + all: CONFIG_USBTTY=1
   - all: CONFIG_DW_UDC=1 CONFIG_SPEAR_USBTTY=1 CONFIG_USBD_HS=1
CONFIG_USBD_MANUFACTURER="ST Microelectronics"
CONFIG_USBD_PRODUCT_NAME="SPEAr SoC" CONFIG_USB_DEVICE=1
CONFIG_USB_TTY=1 CONFIG_spear320=1 CONFIG_usbtty=1
spear600_nand :
   + u-boot.cfg: CONFIG_NAND=1
   - u-boot.cfg: CONFIG_nand=1 CONFIG_spear600=1
   + all: CONFIG_NAND=1
   - all: CONFIG_nand=1 CONFIG_spear600=1
spear300_nand :
   + u-boot.cfg: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1
CONFIG_SYS_MONITOR_LEN=0x00040000
   - u-boot.cfg: CONFIG_ENV_IS_IN_NAND=1 CONFIG_ENV_OFFSET=0x60000
CONFIG_ENV_RANGE=0x10000 CONFIG_nand=1 CONFIG_spear300=1
   + all: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1
CONFIG_SYS_MONITOR_LEN=0x00040000
   - all: CONFIG_ENV_IS_IN_NAND=1 CONFIG_ENV_OFFSET=0x60000
CONFIG_ENV_RANGE=0x10000 CONFIG_nand=1 CONFIG_spear300=1
am43xx_evm_usbhost_boot :
   - u-boot.cfg: CONFIG_SPL_NET_VCI_STRING="AM43xx U-Boot SPL"
   - u-boot-spl.cfg: CONFIG_SPL_NET_VCI_STRING="AM43xx U-Boot SPL"
   - all: CONFIG_SPL_NET_VCI_STRING="AM43xx U-Boot SPL"
am335x_evm_usbspl :
   + u-boot.cfg: CONFIG_SPL_ENV_SUPPORT=1 CONFIG_SPL_NET_SUPPORT=1
CONFIG_SPL_NET_VCI_STRING=""
   + u-boot-spl.cfg: CONFIG_SPL_MMC_SUPPORT=1
CONFIG_SPL_NAND_SUPPORT=1 CONFIG_SPL_YMODEM_SUPPORT=1
   + all: CONFIG_SPL_ENV_SUPPORT=1 CONFIG_SPL_MMC_SUPPORT=1
CONFIG_SPL_NAND_SUPPORT=1 CONFIG_SPL_NET_SUPPORT=1
CONFIG_SPL_NET_VCI_STRING="" CONFIG_SPL_YMODEM_SUPPORT=1
spear320_usbtty_nand :
   + u-boot.cfg: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1
CONFIG_SYS_MONITOR_LEN=0x00040000 CONFIG_USBTTY=1
   - u-boot.cfg: CONFIG_DW_UDC=1 CONFIG_ENV_IS_IN_NAND=1
CONFIG_ENV_OFFSET=0x60000 CONFIG_ENV_RANGE=0x10000
CONFIG_SPEAR_USBTTY=1 CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST
Microelectronics" CONFIG_USBD_PRODUCT_NAME="SPEAr SoC"
CONFIG_USB_DEVICE=1 CONFIG_USB_TTY=1 CONFIG_nand=1 CONFIG_spear320=1
CONFIG_usbtty=1
   + all: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1
CONFIG_SYS_MONITOR_LEN=0x00040000 CONFIG_USBTTY=1
   - all: CONFIG_DW_UDC=1 CONFIG_ENV_IS_IN_NAND=1
CONFIG_ENV_OFFSET=0x60000 CONFIG_ENV_RANGE=0x10000
CONFIG_SPEAR_USBTTY=1 CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST
Microelectronics" CONFIG_USBD_PRODUCT_NAME="SPEAr SoC"
CONFIG_USB_DEVICE=1 CONFIG_USB_TTY=1 CONFIG_nand=1 CONFIG_spear320=1
CONFIG_usbtty=1
am43xx_evm_ethboot :
   + u-boot.cfg: CONFIG_SPL_NET_SUPPORT=1
   + all: CONFIG_SPL_NET_SUPPORT=1
spear310_usbtty_nand :
   + u-boot.cfg: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1
CONFIG_SYS_MONITOR_LEN=0x00040000 CONFIG_USBTTY=1
   - u-boot.cfg: CONFIG_DW_UDC=1 CONFIG_ENV_IS_IN_NAND=1
CONFIG_ENV_OFFSET=0x60000 CONFIG_ENV_RANGE=0x10000
CONFIG_SPEAR_USBTTY=1 CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST
Microelectronics" CONFIG_USBD_PRODUCT_NAME="SPEAr SoC"
CONFIG_USB_DEVICE=1 CONFIG_USB_TTY=1 CONFIG_nand=1 CONFIG_spear310=1
CONFIG_usbtty=1
   + all: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1
CONFIG_SYS_MONITOR_LEN=0x00040000 CONFIG_USBTTY=1
   - all: CONFIG_DW_UDC=1 CONFIG_ENV_IS_IN_NAND=1
CONFIG_ENV_OFFSET=0x60000 CONFIG_ENV_RANGE=0x10000
CONFIG_SPEAR_USBTTY=1 CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST
Microelectronics" CONFIG_USBD_PRODUCT_NAME="SPEAr SoC"
CONFIG_USB_DEVICE=1 CONFIG_USB_TTY=1 CONFIG_nand=1 CONFIG_spear310=1
CONFIG_usbtty=1
spear310_usbtty spear310_usbtty_pnor :
   + u-boot.cfg: CONFIG_USBTTY=1
   - u-boot.cfg: CONFIG_DW_UDC=1 CONFIG_SPEAR_USBTTY=1
CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST Microelectronics"
CONFIG_USBD_PRODUCT_NAME="SPEAr SoC" CONFIG_USB_DEVICE=1
CONFIG_USB_TTY=1 CONFIG_spear310=1 CONFIG_usbtty=1
   + all: CONFIG_USBTTY=1
   - all: CONFIG_DW_UDC=1 CONFIG_SPEAR_USBTTY=1 CONFIG_USBD_HS=1
CONFIG_USBD_MANUFACTURER="ST Microelectronics"
CONFIG_USBD_PRODUCT_NAME="SPEAr SoC" CONFIG_USB_DEVICE=1
CONFIG_USB_TTY=1 CONFIG_spear310=1 CONFIG_usbtty=1
spear300 :
   - u-boot.cfg: CONFIG_spear300=1
   - all: CONFIG_spear300=1
spear600_usbtty :
   + u-boot.cfg: CONFIG_USBTTY=1
   - u-boot.cfg: CONFIG_spear600=1 CONFIG_usbtty=1
   + all: CONFIG_USBTTY=1
   - all: CONFIG_spear600=1 CONFIG_usbtty=1
spear320_nand :
   + u-boot.cfg: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1
CONFIG_SYS_MONITOR_LEN=0x00040000
   - u-boot.cfg: CONFIG_ENV_IS_IN_NAND=1 CONFIG_ENV_OFFSET=0x60000
CONFIG_ENV_RANGE=0x10000 CONFIG_nand=1 CONFIG_spear320=1
   + all: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1
CONFIG_SYS_MONITOR_LEN=0x00040000
   - all: CONFIG_ENV_IS_IN_NAND=1 CONFIG_ENV_OFFSET=0x60000
CONFIG_ENV_RANGE=0x10000 CONFIG_nand=1 CONFIG_spear320=1
stv0991 :
   + u-boot.cfg: CONFIG_STV0991=1
   - u-boot.cfg: CONFIG_stv0991=1
   + all: CONFIG_STV0991=1
   - all: CONFIG_stv0991=1
spear320 spear320_pnor :
   - u-boot.cfg: CONFIG_spear320=1
   - all: CONFIG_spear320=1
spear310_nand :
   + u-boot.cfg: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1
CONFIG_SYS_MONITOR_LEN=0x00040000
   - u-boot.cfg: CONFIG_ENV_IS_IN_NAND=1 CONFIG_ENV_OFFSET=0x60000
CONFIG_ENV_RANGE=0x10000 CONFIG_nand=1 CONFIG_spear310=1
   + all: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1
CONFIG_SYS_MONITOR_LEN=0x00040000
   - all: CONFIG_ENV_IS_IN_NAND=1 CONFIG_ENV_OFFSET=0x60000
CONFIG_ENV_RANGE=0x10000 CONFIG_nand=1 CONFIG_spear310=1
spear300_usbtty :
   + u-boot.cfg: CONFIG_USBTTY=1
   - u-boot.cfg: CONFIG_DW_UDC=1 CONFIG_SPEAR_USBTTY=1
CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST Microelectronics"
CONFIG_USBD_PRODUCT_NAME="SPEAr SoC" CONFIG_USB_DEVICE=1
CONFIG_USB_TTY=1 CONFIG_spear300=1 CONFIG_usbtty=1
   + all: CONFIG_USBTTY=1
   - all: CONFIG_DW_UDC=1 CONFIG_SPEAR_USBTTY=1 CONFIG_USBD_HS=1
CONFIG_USBD_MANUFACTURER="ST Microelectronics"
CONFIG_USBD_PRODUCT_NAME="SPEAr SoC" CONFIG_USB_DEVICE=1
CONFIG_USB_TTY=1 CONFIG_spear300=1 CONFIG_usbtty=1
spear600 :
   - u-boot.cfg: CONFIG_spear600=1
   - all: CONFIG_spear600=1
spear300_usbtty_nand :
   + u-boot.cfg: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1
CONFIG_SYS_MONITOR_LEN=0x00040000 CONFIG_USBTTY=1
   - u-boot.cfg: CONFIG_DW_UDC=1 CONFIG_ENV_IS_IN_NAND=1
CONFIG_ENV_OFFSET=0x60000 CONFIG_ENV_RANGE=0x10000
CONFIG_SPEAR_USBTTY=1 CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST
Microelectronics" CONFIG_USBD_PRODUCT_NAME="SPEAr SoC"
CONFIG_USB_DEVICE=1 CONFIG_USB_TTY=1 CONFIG_nand=1 CONFIG_spear300=1
CONFIG_usbtty=1
   + all: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1
CONFIG_SYS_MONITOR_LEN=0x00040000 CONFIG_USBTTY=1
   - all: CONFIG_DW_UDC=1 CONFIG_ENV_IS_IN_NAND=1
CONFIG_ENV_OFFSET=0x60000 CONFIG_ENV_RANGE=0x10000
CONFIG_SPEAR_USBTTY=1 CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST
Microelectronics" CONFIG_USBD_PRODUCT_NAME="SPEAr SoC"
CONFIG_USB_DEVICE=1 CONFIG_USB_TTY=1 CONFIG_nand=1 CONFIG_spear300=1
CONFIG_usbtty=1
spear310 spear310_pnor :
   - u-boot.cfg: CONFIG_spear310=1
   - all: CONFIG_spear310=1
spear600_usbtty_nand :
   + u-boot.cfg: CONFIG_NAND=1 CONFIG_USBTTY=1
   - u-boot.cfg: CONFIG_nand=1 CONFIG_spear600=1 CONFIG_usbtty=1
   + all: CONFIG_NAND=1 CONFIG_USBTTY=1
   - all: CONFIG_nand=1 CONFIG_spear600=1 CONFIG_usbtty=1

I don't see anything with xtensa. buildman -sS seems happy, and:

$ ls -l ../kc4-conf/01_of_46_g0eb43efbf341e1637f4c5f40ff4afee812d2382c_buildman/xtfpga/
total 180
-rw-r----- 1 sjg eng  2441 Sep 13 12:35 autoconf.h
-rw-r----- 1 sjg eng  3242 Sep 13 12:35 autoconf.mk
-rw-r----- 1 sjg eng 18683 Sep 13 12:34 autoconf-spl.mk
-rw-r----- 1 sjg eng 18961 Sep 13 12:34 autoconf-tpl.mk
-rw-r----- 1 sjg eng     1 Sep 13 12:35 done
-rw-r----- 1 sjg eng     0 Sep 13 12:35 log
-rw-r----- 1 sjg eng    56 Sep 13 12:35 sizes
-rw-r----- 1 sjg eng   190 Sep 13 12:35 toolchain
-rw-r----- 1 sjg eng 26156 Sep 13 12:35 u-boot.cfg
-rw-r----- 1 sjg eng  3097 Sep 13 12:35 u-boot.objdump
-rw-r----- 1 sjg eng 29268 Sep 13 12:35 u-boot.sizes
-rw-r----- 1 sjg eng 27632 Sep 13 12:34 u-boot-spl.cfg
-rw-r----- 1 sjg eng 28141 Sep 13 12:34 u-boot-tpl.cfg
$ ls -l ../kc4-conf/46_of_46_g96f50085eba4631013e7a5774d8da26c25e72d60_Convert-CONFIG_SPL_Y/xtfpga/
total 180
-rw-r----- 1 sjg eng  2441 Sep 13 12:35 autoconf.h
-rw-r----- 1 sjg eng  3242 Sep 13 12:35 autoconf.mk
-rw-r----- 1 sjg eng 18683 Sep 13 12:34 autoconf-spl.mk
-rw-r----- 1 sjg eng 18961 Sep 13 12:34 autoconf-tpl.mk
-rw-r----- 1 sjg eng     1 Sep 13 12:35 done
-rw-r----- 1 sjg eng     0 Sep 13 12:35 log
-rw-r----- 1 sjg eng    56 Sep 13 12:35 sizes
-rw-r----- 1 sjg eng   190 Sep 13 12:35 toolchain
-rw-r----- 1 sjg eng 26156 Sep 13 12:35 u-boot.cfg
-rw-r----- 1 sjg eng  3097 Sep 13 12:35 u-boot.objdump
-rw-r----- 1 sjg eng 29268 Sep 13 12:35 u-boot.sizes
-rw-r----- 1 sjg eng 27632 Sep 13 12:34 u-boot-spl.cfg
-rw-r----- 1 sjg eng 28141 Sep 13 12:34 u-boot-tpl.cfg

This is for the SPL patches only, not the follow-on series (two config-check patches).

Any ideas?

Regards,
Simon

#7 lore raw

v2 cover Detect and reject new ad-hoc CONFIG options

Quoted 310 lines · Simon Glass

Hi Tom,

Quoted 44 lines · Tom Rini
Quoted 38 lines · Simon Glass

Hi Tom,

Quoted 27 lines · Tom Rini
Quoted 11 lines · Simon Glass

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.

Quoted 8 lines

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

OK, this is still a little fragile. When I do:
./tools/buildman/buildman -b master --force-build --step 0 \
-SCdvel 'avr32|nds32|bfin|m68k|microblaze|or32|sh4|sparc|mips|mips64|xtensa'

vs kconfig-working2 I'm seeing a bunch of failures:

Review

Quoted 2 lines
(quoted diff) +2 -0
+(M5475GFE) make[1]: *** [no_new_adhoc_configs_check] Error 1
+(M5475GFE) make: *** [sub-make] Error 2

Yes it looks like I was testing it incorrectly, relying on running on from the SPL series. One problem is that it misses configs with lower case which are defined in Kconfig and then used. I've updated u-boot-dm/kconfig-working2 to deal with that.

Quoted 4 lines

I'll take another look at this and have an update out today. But we can decouple this from the painful SPL series if you like, since in principle we can run the generation script to create the first of the two patches.

Quoted 6 lines

Yes, we can de-couple this. However, you might want to take a look at say xtensa as in my check with before/after kconfig-working2 there's a tiny size difference and I don't see that normally for a Kconfig migration. I'm doing my arm/powerpc build now to see if there's a similar set of size changes there and will then start poking at map files.

Here's a full list of config changes for the SPL series as far as I can tell:

$ buildman -b kc4-conf -fC --step 0 -DI -s
boards.cfg is up to date. Nothing to do.
Summary of 2 commits for 1196 boards (32 threads, 1 job per thread)
01: buildman
  openrisc:  +   openrisc-generic
     sparc:  +   grsim grsim_leon2 gr_cpci_ax2000 gr_xc3s_1500 gr_ep2s60
  blackfin:  +   bf609-ezkit
46: Convert CONFIG_SPL_YMODEM_SUPPORT to Kconfig
arm:
   + u-boot.cfg: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1 CONFIG_SPL_ENV_SUPPORT=1
CONFIG_SPL_NET_SUPPORT=1 CONFIG_SPL_NET_VCI_STRING="" CONFIG_STV0991=1
CONFIG_SYS_MONITOR_LEN=0x00040000 CONFIG_USBTTY=1
   - u-boot.cfg: CONFIG_DW_UDC=1 CONFIG_ENV_IS_IN_NAND=1
CONFIG_ENV_OFFSET=0x60000 CONFIG_ENV_RANGE=0x10000
CONFIG_SPEAR_USBTTY=1 CONFIG_SPL_NET_VCI_STRING="AM43xx U-Boot SPL"
CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST Microelectronics"
CONFIG_USBD_PRODUCT_NAME="SPEAr SoC" CONFIG_USB_DEVICE=1
CONFIG_USB_TTY=1 CONFIG_nand=1 CONFIG_spear300=1 CONFIG_spear310=1
CONFIG_spear320=1 CONFIG_spear600=1 CONFIG_stv0991=1 CONFIG_usbtty=1
   + u-boot-spl.cfg: CONFIG_SPL_MMC_SUPPORT=1
CONFIG_SPL_NAND_SUPPORT=1 CONFIG_SPL_YMODEM_SUPPORT=1
   - u-boot-spl.cfg: CONFIG_SPL_NET_VCI_STRING="AM43xx U-Boot SPL"
   + all: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1 CONFIG_SPL_ENV_SUPPORT=1
CONFIG_SPL_MMC_SUPPORT=1 CONFIG_SPL_NAND_SUPPORT=1
CONFIG_SPL_NET_SUPPORT=1 CONFIG_SPL_NET_VCI_STRING=""
CONFIG_SPL_YMODEM_SUPPORT=1 CONFIG_STV0991=1
CONFIG_SYS_MONITOR_LEN=0x00040000 CONFIG_USBTTY=1
   - all: CONFIG_DW_UDC=1 CONFIG_ENV_IS_IN_NAND=1
CONFIG_ENV_OFFSET=0x60000 CONFIG_ENV_RANGE=0x10000
CONFIG_SPEAR_USBTTY=1 CONFIG_SPL_NET_VCI_STRING="AM43xx U-Boot SPL"
CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST Microelectronics"
CONFIG_USBD_PRODUCT_NAME="SPEAr SoC" CONFIG_USB_DEVICE=1
CONFIG_USB_TTY=1 CONFIG_nand=1 CONFIG_spear300=1 CONFIG_spear310=1
CONFIG_spear320=1 CONFIG_spear600=1 CONFIG_stv0991=1 CONFIG_usbtty=1
spear320_usbtty spear320_usbtty_pnor :
   + u-boot.cfg: CONFIG_USBTTY=1
   - u-boot.cfg: CONFIG_DW_UDC=1 CONFIG_SPEAR_USBTTY=1
CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST Microelectronics"
CONFIG_USBD_PRODUCT_NAME="SPEAr SoC" CONFIG_USB_DEVICE=1
CONFIG_USB_TTY=1 CONFIG_spear320=1 CONFIG_usbtty=1
   + all: CONFIG_USBTTY=1
   - all: CONFIG_DW_UDC=1 CONFIG_SPEAR_USBTTY=1 CONFIG_USBD_HS=1
CONFIG_USBD_MANUFACTURER="ST Microelectronics"
CONFIG_USBD_PRODUCT_NAME="SPEAr SoC" CONFIG_USB_DEVICE=1
CONFIG_USB_TTY=1 CONFIG_spear320=1 CONFIG_usbtty=1
spear600_nand :
   + u-boot.cfg: CONFIG_NAND=1
   - u-boot.cfg: CONFIG_nand=1 CONFIG_spear600=1
   + all: CONFIG_NAND=1
   - all: CONFIG_nand=1 CONFIG_spear600=1
spear300_nand :
   + u-boot.cfg: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1
CONFIG_SYS_MONITOR_LEN=0x00040000
   - u-boot.cfg: CONFIG_ENV_IS_IN_NAND=1 CONFIG_ENV_OFFSET=0x60000
CONFIG_ENV_RANGE=0x10000 CONFIG_nand=1 CONFIG_spear300=1
   + all: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1
CONFIG_SYS_MONITOR_LEN=0x00040000
   - all: CONFIG_ENV_IS_IN_NAND=1 CONFIG_ENV_OFFSET=0x60000
CONFIG_ENV_RANGE=0x10000 CONFIG_nand=1 CONFIG_spear300=1
am43xx_evm_usbhost_boot :
   - u-boot.cfg: CONFIG_SPL_NET_VCI_STRING="AM43xx U-Boot SPL"
   - u-boot-spl.cfg: CONFIG_SPL_NET_VCI_STRING="AM43xx U-Boot SPL"
   - all: CONFIG_SPL_NET_VCI_STRING="AM43xx U-Boot SPL"
am335x_evm_usbspl :
   + u-boot.cfg: CONFIG_SPL_ENV_SUPPORT=1 CONFIG_SPL_NET_SUPPORT=1
CONFIG_SPL_NET_VCI_STRING=""
   + u-boot-spl.cfg: CONFIG_SPL_MMC_SUPPORT=1
CONFIG_SPL_NAND_SUPPORT=1 CONFIG_SPL_YMODEM_SUPPORT=1
   + all: CONFIG_SPL_ENV_SUPPORT=1 CONFIG_SPL_MMC_SUPPORT=1
CONFIG_SPL_NAND_SUPPORT=1 CONFIG_SPL_NET_SUPPORT=1
CONFIG_SPL_NET_VCI_STRING="" CONFIG_SPL_YMODEM_SUPPORT=1
spear320_usbtty_nand :
   + u-boot.cfg: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1
CONFIG_SYS_MONITOR_LEN=0x00040000 CONFIG_USBTTY=1
   - u-boot.cfg: CONFIG_DW_UDC=1 CONFIG_ENV_IS_IN_NAND=1
CONFIG_ENV_OFFSET=0x60000 CONFIG_ENV_RANGE=0x10000
CONFIG_SPEAR_USBTTY=1 CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST
Microelectronics" CONFIG_USBD_PRODUCT_NAME="SPEAr SoC"
CONFIG_USB_DEVICE=1 CONFIG_USB_TTY=1 CONFIG_nand=1 CONFIG_spear320=1
CONFIG_usbtty=1
   + all: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1
CONFIG_SYS_MONITOR_LEN=0x00040000 CONFIG_USBTTY=1
   - all: CONFIG_DW_UDC=1 CONFIG_ENV_IS_IN_NAND=1
CONFIG_ENV_OFFSET=0x60000 CONFIG_ENV_RANGE=0x10000
CONFIG_SPEAR_USBTTY=1 CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST
Microelectronics" CONFIG_USBD_PRODUCT_NAME="SPEAr SoC"
CONFIG_USB_DEVICE=1 CONFIG_USB_TTY=1 CONFIG_nand=1 CONFIG_spear320=1
CONFIG_usbtty=1
am43xx_evm_ethboot :
   + u-boot.cfg: CONFIG_SPL_NET_SUPPORT=1
   + all: CONFIG_SPL_NET_SUPPORT=1
spear310_usbtty_nand :
   + u-boot.cfg: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1
CONFIG_SYS_MONITOR_LEN=0x00040000 CONFIG_USBTTY=1
   - u-boot.cfg: CONFIG_DW_UDC=1 CONFIG_ENV_IS_IN_NAND=1
CONFIG_ENV_OFFSET=0x60000 CONFIG_ENV_RANGE=0x10000
CONFIG_SPEAR_USBTTY=1 CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST
Microelectronics" CONFIG_USBD_PRODUCT_NAME="SPEAr SoC"
CONFIG_USB_DEVICE=1 CONFIG_USB_TTY=1 CONFIG_nand=1 CONFIG_spear310=1
CONFIG_usbtty=1
   + all: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1
CONFIG_SYS_MONITOR_LEN=0x00040000 CONFIG_USBTTY=1
   - all: CONFIG_DW_UDC=1 CONFIG_ENV_IS_IN_NAND=1
CONFIG_ENV_OFFSET=0x60000 CONFIG_ENV_RANGE=0x10000
CONFIG_SPEAR_USBTTY=1 CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST
Microelectronics" CONFIG_USBD_PRODUCT_NAME="SPEAr SoC"
CONFIG_USB_DEVICE=1 CONFIG_USB_TTY=1 CONFIG_nand=1 CONFIG_spear310=1
CONFIG_usbtty=1
spear310_usbtty spear310_usbtty_pnor :
   + u-boot.cfg: CONFIG_USBTTY=1
   - u-boot.cfg: CONFIG_DW_UDC=1 CONFIG_SPEAR_USBTTY=1
CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST Microelectronics"
CONFIG_USBD_PRODUCT_NAME="SPEAr SoC" CONFIG_USB_DEVICE=1
CONFIG_USB_TTY=1 CONFIG_spear310=1 CONFIG_usbtty=1
   + all: CONFIG_USBTTY=1
   - all: CONFIG_DW_UDC=1 CONFIG_SPEAR_USBTTY=1 CONFIG_USBD_HS=1
CONFIG_USBD_MANUFACTURER="ST Microelectronics"
CONFIG_USBD_PRODUCT_NAME="SPEAr SoC" CONFIG_USB_DEVICE=1
CONFIG_USB_TTY=1 CONFIG_spear310=1 CONFIG_usbtty=1
spear300 :
   - u-boot.cfg: CONFIG_spear300=1
   - all: CONFIG_spear300=1
spear600_usbtty :
   + u-boot.cfg: CONFIG_USBTTY=1
   - u-boot.cfg: CONFIG_spear600=1 CONFIG_usbtty=1
   + all: CONFIG_USBTTY=1
   - all: CONFIG_spear600=1 CONFIG_usbtty=1
spear320_nand :
   + u-boot.cfg: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1
CONFIG_SYS_MONITOR_LEN=0x00040000
   - u-boot.cfg: CONFIG_ENV_IS_IN_NAND=1 CONFIG_ENV_OFFSET=0x60000
CONFIG_ENV_RANGE=0x10000 CONFIG_nand=1 CONFIG_spear320=1
   + all: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1
CONFIG_SYS_MONITOR_LEN=0x00040000
   - all: CONFIG_ENV_IS_IN_NAND=1 CONFIG_ENV_OFFSET=0x60000
CONFIG_ENV_RANGE=0x10000 CONFIG_nand=1 CONFIG_spear320=1
stv0991 :
   + u-boot.cfg: CONFIG_STV0991=1
   - u-boot.cfg: CONFIG_stv0991=1
   + all: CONFIG_STV0991=1
   - all: CONFIG_stv0991=1
spear320 spear320_pnor :
   - u-boot.cfg: CONFIG_spear320=1
   - all: CONFIG_spear320=1
spear310_nand :
   + u-boot.cfg: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1
CONFIG_SYS_MONITOR_LEN=0x00040000
   - u-boot.cfg: CONFIG_ENV_IS_IN_NAND=1 CONFIG_ENV_OFFSET=0x60000
CONFIG_ENV_RANGE=0x10000 CONFIG_nand=1 CONFIG_spear310=1
   + all: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1
CONFIG_SYS_MONITOR_LEN=0x00040000
   - all: CONFIG_ENV_IS_IN_NAND=1 CONFIG_ENV_OFFSET=0x60000
CONFIG_ENV_RANGE=0x10000 CONFIG_nand=1 CONFIG_spear310=1
spear300_usbtty :
   + u-boot.cfg: CONFIG_USBTTY=1
   - u-boot.cfg: CONFIG_DW_UDC=1 CONFIG_SPEAR_USBTTY=1
CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST Microelectronics"
CONFIG_USBD_PRODUCT_NAME="SPEAr SoC" CONFIG_USB_DEVICE=1
CONFIG_USB_TTY=1 CONFIG_spear300=1 CONFIG_usbtty=1
   + all: CONFIG_USBTTY=1
   - all: CONFIG_DW_UDC=1 CONFIG_SPEAR_USBTTY=1 CONFIG_USBD_HS=1
CONFIG_USBD_MANUFACTURER="ST Microelectronics"
CONFIG_USBD_PRODUCT_NAME="SPEAr SoC" CONFIG_USB_DEVICE=1
CONFIG_USB_TTY=1 CONFIG_spear300=1 CONFIG_usbtty=1
spear600 :
   - u-boot.cfg: CONFIG_spear600=1
   - all: CONFIG_spear600=1
spear300_usbtty_nand :
   + u-boot.cfg: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1
CONFIG_SYS_MONITOR_LEN=0x00040000 CONFIG_USBTTY=1
   - u-boot.cfg: CONFIG_DW_UDC=1 CONFIG_ENV_IS_IN_NAND=1
CONFIG_ENV_OFFSET=0x60000 CONFIG_ENV_RANGE=0x10000
CONFIG_SPEAR_USBTTY=1 CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST
Microelectronics" CONFIG_USBD_PRODUCT_NAME="SPEAr SoC"
CONFIG_USB_DEVICE=1 CONFIG_USB_TTY=1 CONFIG_nand=1 CONFIG_spear300=1
CONFIG_usbtty=1
   + all: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE +
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1
CONFIG_ENV_SECT_SIZE=0x00010000 CONFIG_NAND=1
CONFIG_SYS_MONITOR_LEN=0x00040000 CONFIG_USBTTY=1
   - all: CONFIG_DW_UDC=1 CONFIG_ENV_IS_IN_NAND=1
CONFIG_ENV_OFFSET=0x60000 CONFIG_ENV_RANGE=0x10000
CONFIG_SPEAR_USBTTY=1 CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST
Microelectronics" CONFIG_USBD_PRODUCT_NAME="SPEAr SoC"
CONFIG_USB_DEVICE=1 CONFIG_USB_TTY=1 CONFIG_nand=1 CONFIG_spear300=1
CONFIG_usbtty=1
spear310 spear310_pnor :
   - u-boot.cfg: CONFIG_spear310=1
   - all: CONFIG_spear310=1
spear600_usbtty_nand :
   + u-boot.cfg: CONFIG_NAND=1 CONFIG_USBTTY=1
   - u-boot.cfg: CONFIG_nand=1 CONFIG_spear600=1 CONFIG_usbtty=1
   + all: CONFIG_NAND=1 CONFIG_USBTTY=1
   - all: CONFIG_nand=1 CONFIG_spear600=1 CONFIG_usbtty=1

I don't see anything with xtensa. buildman -sS seems happy, and:

$ ls -l ../kc4-conf/01_of_46_g0eb43efbf341e1637f4c5f40ff4afee812d2382c_buildman/xtfpga/
total 180
(quoted diff) +0 -13
-rw-r----- 1 sjg eng  2441 Sep 13 12:35 autoconf.h
-rw-r----- 1 sjg eng  3242 Sep 13 12:35 autoconf.mk
-rw-r----- 1 sjg eng 18683 Sep 13 12:34 autoconf-spl.mk
-rw-r----- 1 sjg eng 18961 Sep 13 12:34 autoconf-tpl.mk
-rw-r----- 1 sjg eng     1 Sep 13 12:35 done
-rw-r----- 1 sjg eng     0 Sep 13 12:35 log
-rw-r----- 1 sjg eng    56 Sep 13 12:35 sizes
-rw-r----- 1 sjg eng   190 Sep 13 12:35 toolchain
-rw-r----- 1 sjg eng 26156 Sep 13 12:35 u-boot.cfg
-rw-r----- 1 sjg eng  3097 Sep 13 12:35 u-boot.objdump
-rw-r----- 1 sjg eng 29268 Sep 13 12:35 u-boot.sizes
-rw-r----- 1 sjg eng 27632 Sep 13 12:34 u-boot-spl.cfg
-rw-r----- 1 sjg eng 28141 Sep 13 12:34 u-boot-tpl.cfg
$ ls -l ../kc4-conf/46_of_46_g96f50085eba4631013e7a5774d8da26c25e72d60_Convert-CONFIG_SPL_Y/xtfpga/
total 180
(quoted diff) +0 -13
-rw-r----- 1 sjg eng  2441 Sep 13 12:35 autoconf.h
-rw-r----- 1 sjg eng  3242 Sep 13 12:35 autoconf.mk
-rw-r----- 1 sjg eng 18683 Sep 13 12:34 autoconf-spl.mk
-rw-r----- 1 sjg eng 18961 Sep 13 12:34 autoconf-tpl.mk
-rw-r----- 1 sjg eng     1 Sep 13 12:35 done
-rw-r----- 1 sjg eng     0 Sep 13 12:35 log
-rw-r----- 1 sjg eng    56 Sep 13 12:35 sizes
-rw-r----- 1 sjg eng   190 Sep 13 12:35 toolchain
-rw-r----- 1 sjg eng 26156 Sep 13 12:35 u-boot.cfg
-rw-r----- 1 sjg eng  3097 Sep 13 12:35 u-boot.objdump
-rw-r----- 1 sjg eng 29268 Sep 13 12:35 u-boot.sizes
-rw-r----- 1 sjg eng 27632 Sep 13 12:34 u-boot-spl.cfg
-rw-r----- 1 sjg eng 28141 Sep 13 12:34 u-boot-tpl.cfg
Quoted 4 lines

This is for the SPL patches only, not the follow-on series (two config-check patches).

Any ideas?

I've looked into this more, and am doing my final'ish tests now. It _looks_ like the size increase must be in going from "v2016.09" to "v2016.09-xxxxx" because when I build all commits, the size bump comes on commit #1.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160914/dcf48bc7/attachment.sig>