From patchwork Mon May 23 08:10:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Lacombe X-Patchwork-Id: 807952 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4N8B6oZ032713 for ; Mon, 23 May 2011 08:11:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753887Ab1EWILM (ORCPT ); Mon, 23 May 2011 04:11:12 -0400 Received: from mail-iw0-f174.google.com ([209.85.214.174]:43870 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753933Ab1EWILM (ORCPT ); Mon, 23 May 2011 04:11:12 -0400 Received: by mail-iw0-f174.google.com with SMTP id 34so4551698iwn.19 for ; Mon, 23 May 2011 01:11:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=B+B+m/LlQmEow9wu1YLbSe5K8AawXVeT06nyu0Pdl4Q=; b=TN834JtOtlbJeYCFStXYZcieMqDsFWY6cp3FEXKuTrMdklXrpE7MsH8GQbcVMBVT8Y v1jYWosvURmDELgqqcjtKkS5Z8LAWJZi8GcKhjh9Tiaom00DePjNouyi1XnkKwUDv06i cnJAumpazJDSeaS4Kp62UOzVDsRgnQwaVCWHA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=LPfHObHzgQAxoEDNoNp7YaJGR3u46KzMi61Zj71vcb5bomkFgKrzF+5TQqvP8pFd+x soujw8JGUZxuEGuwXPCgihKgNNmjcPoNeQOpzKl1cBMW02UqD2HcnfJpR5rx8SEQ9QRF Jzj4PL2XalCcbcUiA8gp4T4+i4RvIQA+MDccY= Received: by 10.231.78.144 with SMTP id l16mr1984941ibk.26.1306138271752; Mon, 23 May 2011 01:11:11 -0700 (PDT) Received: from localhost.localdomain (76-10-146-236.dsl.teksavvy.com [76.10.146.236]) by mx.google.com with ESMTPS id gy41sm2820660ibb.56.2011.05.23.01.11.10 (version=SSLv3 cipher=OTHER); Mon, 23 May 2011 01:11:11 -0700 (PDT) From: Arnaud Lacombe To: linux-kbuild@vger.kernel.org Cc: Michal Marek , Arnaud Lacombe Subject: [RFCv2 09/13] kconfig: migrate parser to implicit rules Date: Mon, 23 May 2011 04:10:35 -0400 Message-Id: <1306138239-13440-10-git-send-email-lacombar@gmail.com> X-Mailer: git-send-email 1.7.3.4.574.g608b.dirty In-Reply-To: <1306138239-13440-1-git-send-email-lacombar@gmail.com> References: <1306138239-13440-1-git-send-email-lacombar@gmail.com> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Mon, 23 May 2011 08:11:13 +0000 (UTC) --- scripts/kconfig/.gitignore | 2 +- scripts/kconfig/Makefile | 25 ------------------------- scripts/kconfig/zconf.y | 2 +- 3 files changed, 2 insertions(+), 27 deletions(-) diff --git a/scripts/kconfig/.gitignore b/scripts/kconfig/.gitignore index 624f650..ee120d4 100644 --- a/scripts/kconfig/.gitignore +++ b/scripts/kconfig/.gitignore @@ -2,7 +2,7 @@ # Generated files # config* -lex.*.c +*.lex.c *.tab.c *.tab.h zconf.hash.c diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 088ed9b..c9ec4d6 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -327,28 +327,3 @@ $(obj)/lkc_defs.h: $(src)/lkc_proto.h $(obj)/gconf.glade.h: $(obj)/gconf.glade intltool-extract --type=gettext/glade $(obj)/gconf.glade -### -# The following requires flex/bison/gperf -# By default we use the _shipped versions, uncomment the following line if -# you are modifying the flex/bison src. -# LKC_GENPARSER := 1 - -ifdef LKC_GENPARSER - -$(obj)/zconf.tab.c: $(src)/zconf.y -$(obj)/lex.zconf.c: $(src)/zconf.l -$(obj)/zconf.hash.c: $(src)/zconf.gperf - -%.tab.c: %.y - bison -l -b $* -p $(notdir $*) $< - cp $@ $@_shipped - -lex.%.c: %.l - flex -L -P$(notdir $*) -o$@ $< - cp $@ $@_shipped - -%.hash.c: %.gperf - gperf -C < $< > $@ - cp $@ $@_shipped - -endif diff --git a/scripts/kconfig/zconf.y b/scripts/kconfig/zconf.y index 8f8dc70..157d31f 100644 --- a/scripts/kconfig/zconf.y +++ b/scripts/kconfig/zconf.y @@ -735,7 +735,7 @@ void zconfdump(FILE *out) } } -#include "lex.zconf.c" +#include "zconf.lex.c" #include "util.c" #include "confdata.c" #include "expr.c"