mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Ahmad Reza Cheraghi <a_r_cheraghi@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Help by KConfig expansion
Date: Mon, 19 Sep 2005 19:06:20 +0200	[thread overview]
Message-ID: <20050919170620.GA7720@mars.ravnborg.org> (raw)
In-Reply-To: <20050919165735.13962.qmail@web51009.mail.yahoo.com>

> I tryed to do this. I saw how the attribute "comment"
> is definded in the zconf.l and zconf.y, and definded
> the the attribute "autorule" exactly the same way. But
> it still don't work. Even though I changed the
> zconf.tab.c_shipped as well but it still dont work.

You need to generate the source using bison.
You must understand that zconf.l is an input file for flex.
Likewise zconf.y is input for bison.

See scripts/kconfig/Makefile for how to generate the files.

	Sam


Or even simpler - apply following patch:

diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -129,9 +129,9 @@ HOSTCFLAGS_gconf.o	= `pkg-config gtk+-2.
 
 $(obj)/conf.o $(obj)/mconf.o $(obj)/qconf.o $(obj)/gconf.o $(obj)/kxgettext: $(obj)/zconf.tab.h
 
-$(obj)/zconf.tab.h: $(src)/zconf.tab.h_shipped
-$(obj)/zconf.tab.c: $(src)/zconf.tab.c_shipped
-$(obj)/lex.zconf.c: $(src)/lex.zconf.c_shipped
+#$(obj)/zconf.tab.h: $(src)/zconf.tab.h_shipped
+#$(obj)/zconf.tab.c: $(src)/zconf.tab.c_shipped
+#$(obj)/lex.zconf.c: $(src)/lex.zconf.c_shipped
 
 $(obj)/qconf.o: $(obj)/.tmp_qtcheck
 
@@ -212,7 +212,7 @@ $(obj)/lkc_defs.h: $(src)/lkc_proto.h
 # The following requires flex/bison
 # By default we use the _shipped versions, uncomment the following line if
 # you are modifying the flex/bison src.
-# LKC_GENPARSER := 1
+LKC_GENPARSER := 1
 
 ifdef LKC_GENPARSER
 


  reply	other threads:[~2005-09-19 17:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-16  8:12 Ahmad Reza Cheraghi
2005-09-17  1:43 ` Roman Zippel
2005-09-19 16:57   ` Ahmad Reza Cheraghi
2005-09-19 17:06     ` Sam Ravnborg [this message]
2005-09-19 22:01       ` Ahmad Reza Cheraghi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050919170620.GA7720@mars.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=a_r_cheraghi@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®