[Bug 241261] sysutils/u-boot-rpi, sysutils/u-boot-rpi2: Fails to build on 11.3-STABLE: Error: You must add new CONFIG options using Kconfig

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jul 3 16:51:18 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241261

Thomas Skibo <thoma555-bsd at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thoma555-bsd at yahoo.com

--- Comment #3 from Thomas Skibo <thoma555-bsd at yahoo.com> ---
I have seen this before.  It seems BSD sed handles tabs differently than Linux
sed and so scripts/check-config.sh misses some options in Kconfig files.  The
target still gets built, though.

This patch to u-boot works for me:

diff --git a/scripts/check-config.sh b/scripts/check-config.sh
index 583f7d0963..e899e5679a 100755
--- a/scripts/check-config.sh
+++ b/scripts/check-config.sh
@@ -45,8 +45,8 @@ cat ${path} |sed -n 's/^#define
\(CONFIG_[A-Za-z0-9_]*\).*/\1/p' |sort |uniq \
 comm -23 ${configs} ${whitelist} > ${suspects}

 cat `find ${srctree} -name "Kconfig*"` |sed -n \
-       -e 's/^\s*config *\([A-Za-z0-9_]*\).*$/CONFIG_\1/p' \
-       -e 's/^\s*menuconfig \([A-Za-z0-9_]*\).*$/CONFIG_\1/p' \
+       -e 's/^[\s\t]*config *\([A-Za-z0-9_]*\).*$/CONFIG_\1/p' \
+       -e 's/^[\s\t]*menuconfig \([A-Za-z0-9_]*\).*$/CONFIG_\1/p' \
        |sort |uniq > ${ok}
 comm -23 ${suspects} ${ok} >${new_adhoc}
 if [ -s ${new_adhoc} ]; then

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the freebsd-uboot mailing list