summaryrefslogtreecommitdiffstats
path: root/util/kconfig/patches/0008-kconfig-Add-wildcard-support-for-source.patch
diff options
context:
space:
mode:
Diffstat (limited to 'util/kconfig/patches/0008-kconfig-Add-wildcard-support-for-source.patch')
-rw-r--r--util/kconfig/patches/0008-kconfig-Add-wildcard-support-for-source.patch10
1 files changed, 5 insertions, 5 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 688b387407f4..b476bc1581dc 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);
};
-
+