aboutsummaryrefslogtreecommitdiff
path: root/scripts/kconfig/zconf.y
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2009-10-15 11:03:20 -0700
committerJosh Triplett <josh@joshtriplett.org>2009-10-15 11:10:12 -0700
commit1456edbb1476db735715ddcc7ac306de587024eb (patch)
tree569701addf41a0e5ae68d78e1fd47e7ec6865575 /scripts/kconfig/zconf.y
parenta3ccf63ee643ef243cbf8918da8b3f9238f10029 (diff)
downloadlinux-linaro-stable-1456edbb1476db735715ddcc7ac306de587024eb.tar.gz
kconfig: Make zconf.y work with current bison
zconf.y includes zconf.hash.c from the initial code section. zconf.hash.c references the token constants from zconf.y. However, current bison defines the token constants after the initial code section, making zconf.hash.c fail to compile. Move the include of zconf.hash.c later in zconf.y, so bison puts it after the token constants. Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'scripts/kconfig/zconf.y')
-rw-r--r--scripts/kconfig/zconf.y7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/kconfig/zconf.y b/scripts/kconfig/zconf.y
index 9710b82466f2..01ec550ec01b 100644
--- a/scripts/kconfig/zconf.y
+++ b/scripts/kconfig/zconf.y
@@ -14,8 +14,6 @@
#define LKC_DIRECT_LINK
#include "lkc.h"
-#include "zconf.hash.c"
-
#define printd(mask, fmt...) if (cdebug & (mask)) printf(fmt)
#define PRINTD 0x0001
@@ -100,6 +98,11 @@ static struct menu *current_menu, *current_entry;
menu_end_menu();
} if_entry menu_entry choice_entry
+%{
+/* Include zconf.hash.c here so it can see the token constants. */
+#include "zconf.hash.c"
+%}
+
%%
input: stmt_list;