aboutsummaryrefslogtreecommitdiff
path: root/scripts/parse_kconfig
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-04-11 13:44:31 +0200
committerKarel Kočí <cynerd@email.cz>2015-04-11 13:44:31 +0200
commit745b4e28338ae1564c8e3fb2cc821723ab9752db (patch)
treedd286a70439d86458795dda3b67c9af2fc974b67 /scripts/parse_kconfig
parent1f670483bff9e7a588fe90a7ec98b8950c1c13de (diff)
downloadlinux-conf-perf-745b4e28338ae1564c8e3fb2cc821723ab9752db.tar.gz
linux-conf-perf-745b4e28338ae1564c8e3fb2cc821723ab9752db.tar.bz2
linux-conf-perf-745b4e28338ae1564c8e3fb2cc821723ab9752db.zip
macros.h moved to shared folder
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"