From 745b4e28338ae1564c8e3fb2cc821723ab9752db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 11 Apr 2015 13:44:31 +0200 Subject: macros.h moved to shared folder --- scripts/parse_kconfig/Makefile | 2 +- scripts/parse_kconfig/cnfexpr.h | 2 +- scripts/parse_kconfig/macros.h | 11 ----------- scripts/parse_kconfig/parser.c | 2 +- 4 files changed, 3 insertions(+), 14 deletions(-) delete mode 100644 scripts/parse_kconfig/macros.h (limited to 'scripts/parse_kconfig') 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 #include #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 #include #include -#include "lkc.h" +#include "kconfig/lkc.h" #include "symlist.h" #include "output.h" #include "macros.h" -- cgit v1.2.3