aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-04-12 12:57:42 +0200
committerKarel Kočí <cynerd@email.cz>2015-04-12 12:57:42 +0200
commit6eae861025e67c9d4363e4c5dff802b1fbda95e0 (patch)
tree4a89d629482b221850472aadd263e81ba3a05142
parent5eb5db84cdb9c91a072302abca82672515596ca3 (diff)
downloadlinux-conf-perf-6eae861025e67c9d4363e4c5dff802b1fbda95e0.tar.gz
linux-conf-perf-6eae861025e67c9d4363e4c5dff802b1fbda95e0.tar.bz2
linux-conf-perf-6eae861025e67c9d4363e4c5dff802b1fbda95e0.zip
Extract file name definitions out from parse_kconfig to shared
-rw-r--r--scripts/parse_kconfig/cnfexpr.h2
-rw-r--r--scripts/parse_kconfig/output.h4
-rw-r--r--scripts/parse_kconfig/parser.c2
-rw-r--r--scripts/shared/build_files.h3
4 files changed, 6 insertions, 5 deletions
diff --git a/scripts/parse_kconfig/cnfexpr.h b/scripts/parse_kconfig/cnfexpr.h
index 0473368..58ac9c8 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 "kconfig/lkc.h"
+#include <kconfig/lkc.h>
enum cnfexpr_type {
CT_EXPR, CT_FALSE, CT_TRUE
diff --git a/scripts/parse_kconfig/output.h b/scripts/parse_kconfig/output.h
index b38c0bc..dd70768 100644
--- a/scripts/parse_kconfig/output.h
+++ b/scripts/parse_kconfig/output.h
@@ -4,9 +4,7 @@
#include <stdlib.h>
#include <stdio.h>
#include "symlist.h"
-
-#define DEFAULT_RULES_FILE "rules"
-#define DEFAULT_SYMBOL_MAP_FILE "symbol_map"
+#include <build_files.h>
void fprint_rules(struct symlist *sl, char *output);
void fprint_symbol_map(struct symlist *sl, char *output);
diff --git a/scripts/parse_kconfig/parser.c b/scripts/parse_kconfig/parser.c
index 3dde8e4..7d6bf3f 100644
--- a/scripts/parse_kconfig/parser.c
+++ b/scripts/parse_kconfig/parser.c
@@ -4,7 +4,7 @@
#include <locale.h>
#include <stdbool.h>
#include <libintl.h>
-#include "kconfig/lkc.h"
+#include <kconfig/lkc.h>
#include "symlist.h"
#include "output.h"
#include "macros.h"
diff --git a/scripts/shared/build_files.h b/scripts/shared/build_files.h
new file mode 100644
index 0000000..92ee17e
--- /dev/null
+++ b/scripts/shared/build_files.h
@@ -0,0 +1,3 @@
+#define DEFAULT_RULES_FILE "rules"
+#define DEFAULT_SYMBOL_MAP_FILE "symbol_map"
+#define DEFAULT_DEF_CONFIG_FILE "def_config"