diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/kconfig/patches/0008-kconfig-Add-wildcard-support-for-source.patch | 10 | ||||
-rwxr-xr-x | util/scripts/rm_unused_code | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/util/kconfig/patches/0008-kconfig-Add-wildcard-support-for-source.patch b/util/kconfig/patches/0008-kconfig-Add-wildcard-support-for-source.patch index 688b387407..b476bc1581 100644 --- a/util/kconfig/patches/0008-kconfig-Add-wildcard-support-for-source.patch +++ b/util/kconfig/patches/0008-kconfig-Add-wildcard-support-for-source.patch @@ -8,7 +8,7 @@ wildcards (e.g. source src/mainboard/*/Kconfig) which makes automatic inclusion of all boards a tedious task and prevents us from implementing "drop in" boards. -In our Makefile.inc files we already include mainboard +In our Makefile.mk files we already include mainboard directories per wildcard, so let's add the infrastructure to do the same with Kconfig. @@ -28,7 +28,7 @@ Index: kconfig/lexer.l +++ kconfig/lexer.l @@ -8,6 +8,7 @@ %{ - + #include <assert.h> +#include <glob.h> #include <limits.h> @@ -37,7 +37,7 @@ Index: kconfig/lexer.l @@ -439,6 +440,32 @@ void zconf_nextfile(const char *name) current_file = file; } - + +void zconf_nextfiles(const char *wildcard) +{ + glob_t g; @@ -78,7 +78,7 @@ Index: kconfig/lkc.h +void zconf_nextfiles(const char *name); int zconf_lineno(void); const char *zconf_curname(void); - + Index: kconfig/parser.y =================================================================== --- kconfig.orig/parser.y @@ -91,4 +91,4 @@ Index: kconfig/parser.y + zconf_nextfiles($2); free($2); }; - + diff --git a/util/scripts/rm_unused_code b/util/scripts/rm_unused_code index 53c0b65e3d..d4b42b6297 100755 --- a/util/scripts/rm_unused_code +++ b/util/scripts/rm_unused_code @@ -259,7 +259,7 @@ remove_kconfigs() { remove_unused() { local dir # Most files can be removed simply by looking at the time, but - # all Kconfig and Makefile.inc files in the entire tree are accessed + # all Kconfig and Makefiles in the entire tree are accessed # whether they're used or not. remove_kconfigs |