aboutsummaryrefslogtreecommitdiff
path: root/scripts/parse_kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/parse_kconfig')
-rw-r--r--scripts/parse_kconfig/Makefile2
-rw-r--r--scripts/parse_kconfig/cnfexpr.h2
-rw-r--r--scripts/parse_kconfig/macros.h11
-rw-r--r--scripts/parse_kconfig/parser.c2
4 files changed, 3 insertions, 14 deletions
diff --git a/scripts/parse_kconfig/Makefile b/scripts/parse_kconfig/Makefile
index 2988482..8547617 100644
--- a/scripts/parse_kconfig/Makefile
+++ b/scripts/parse_kconfig/Makefile
@@ -13,7 +13,7 @@ SRC = parser.c \
CFLAGS = -O0 -w -ggdb
parse: $(SRC) $(KCONFIG_SRC)
- gcc $(CFLAGS) -o $@ $^ -I$(KCONFIG_PREFIX)
+ gcc $(CFLAGS) -o $@ $^ -I../shared
clean::
$(RM) parser
diff --git a/scripts/parse_kconfig/cnfexpr.h b/scripts/parse_kconfig/cnfexpr.h
index 1d0edd4..0473368 100644
--- a/scripts/parse_kconfig/cnfexpr.h
+++ b/scripts/parse_kconfig/cnfexpr.h
@@ -5,7 +5,7 @@
#include <stdbool.h>
#include <stdio.h>
#include "symlist.h"
-#include "lkc.h"
+#include "kconfig/lkc.h"
enum cnfexpr_type {
CT_EXPR, CT_FALSE, CT_TRUE
diff --git a/scripts/parse_kconfig/macros.h b/scripts/parse_kconfig/macros.h
deleted file mode 100644
index 95bb16f..0000000
--- a/scripts/parse_kconfig/macros.h
+++ /dev/null
@@ -1,11 +0,0 @@
-extern int verbose_level; // Defined in kconfig_parser.c
-
-#define Eprintf(...) fprintf(stderr, __VA_ARGS__)
-#define Wprintf(...) if (verbose_level > 1) printf(__VA_ARGS__)
-#define Iprintf(...) if (verbose_level > 2) printf(__VA_ARGS__)
-
-#ifndef DEBUG
-#define Dprintf(...)
-#else
-#define Dprintf(...) if (verbose_level > 3) printf(a, __VA_ARGS__)
-#endif /* DEBUG */
diff --git a/scripts/parse_kconfig/parser.c b/scripts/parse_kconfig/parser.c
index 933c26c..6c1c47e 100644
--- a/scripts/parse_kconfig/parser.c
+++ b/scripts/parse_kconfig/parser.c
@@ -11,7 +11,7 @@
#include <locale.h>
#include <stdbool.h>
#include <argp.h>
-#include "lkc.h"
+#include "kconfig/lkc.h"
#include "symlist.h"
#include "output.h"
#include "macros.h"