src, util: Clean up makefile.inc in text, help & comments
Signed-off-by: Martin Roth <gaumless@gmail.com> Change-Id: Ib69236fb5d68272f92405512dc231fa75ecccaa6 Reviewed-on: https://review.coreboot.org/c/coreboot/+/80125 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user