From patchwork Thu Jan 24 10:47:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 156470 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1795742jaa; Thu, 24 Jan 2019 02:48:29 -0800 (PST) X-Google-Smtp-Source: ALg8bN4DFgiI8vRjHDOH5S18KoUmLf0l1RDqJCDLex8DybxhJRB97Xos2SAEJWKiWrxqsYqAEZvQ X-Received: by 2002:a63:ef04:: with SMTP id u4mr5492514pgh.197.1548326908954; Thu, 24 Jan 2019 02:48:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548326908; cv=none; d=google.com; s=arc-20160816; b=JePVavmE+AQh66wd4d+KIMY6fXYn2gXfXDUiroSfyfTCDNYf8liYnAXaMqxFLcC5/x iRHUPY6RQh4k/926DRaEjZ7NF4gIztX1v4cggfOD3DGPRWaBavm62y1QTwK/Wwsc6mpo S4n7uQFpH3JuZjKDAnlBqgsBl7KT+xRMdEF8H+tguBh9GNh+HNTQf4SPjlyzGnazYVB0 Ote7jxdIXNzReSYPCLKakrEk2S9i10/8g7ohH6Bqc+ZvuXAuJcBVBttvPrT0hCN94/R1 nLlRKvwIQCtyRAOR6/eRNecnxdntCx+LUbW/45STXqfd9J97ML/YqKNCD2E7iTWl+OCi rcsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=r3JocOEABud7PU7j/ttJrZGazZrblFEHVX3UCSq7EbA=; b=oY5QWtGzwH9ccyfYPEeYcs/u8SMrVyQopoT/O6Ranzqra9VGOb1Fy/ck6uz8zSEo4o lLtD7JkblbJd3n6+MRwAGYJjB6RZ660tlO/ztK8AGGeAYMTc/w6NEZ5A/1zTy7LQqkSV LUL8Mu8itylbWW42kYPWOYe1fjNQx7GHwPZdGjYzJKF+G8EosgEe712cGs2ufYxXv6xK 2f5WIMxifgN3LCdI+z6+qTtpbTb/Y82cW4+HKSz7kO7BqA0n7IOF9su0COPzltpqGqZw fEpmY1+dTIjThfdj/dxCHVAjAO1mEd+rzEazLkJbTC4zq3fN4IRuamAqy+9HVQspZfFe BAIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=fnYeYuFm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z14si14981665pgj.73.2019.01.24.02.48.28; Thu, 24 Jan 2019 02:48:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=fnYeYuFm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727535AbfAXKsV (ORCPT + 31 others); Thu, 24 Jan 2019 05:48:21 -0500 Received: from conuserg-11.nifty.com ([210.131.2.78]:45475 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726337AbfAXKsV (ORCPT ); Thu, 24 Jan 2019 05:48:21 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id x0OAlYSe031996; Thu, 24 Jan 2019 19:47:35 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com x0OAlYSe031996 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1548326855; bh=r3JocOEABud7PU7j/ttJrZGazZrblFEHVX3UCSq7EbA=; h=From:To:Cc:Subject:Date:From; b=fnYeYuFm3zhkBuolZzAo0XBG+N5OmQJZJ5vUuxYPqFVUX8sm/RlNc2eVjpfTtI2gQ HaGLhWEC0Yxe93SFfZC6OigDbNx//b4Waeb4j1tdVbAbzmpuS82I49SqyyLq/uwTnv PvVTEnxazUEJWfzOi2FeyBMoTaLezFXRjt15bOQ3fL904rSlTINEMJ20w1EwEgR8ZX vzkDPYdMQDB27b5dHczEYya3jALeir1tQ6EI3wpp23iYOyaIIaQ5wNeLj9GKo7vf0L q5iT+oWmR2bqfhTwgcZEt0jnWx8ICfbnTKatERTYNCLdW+gfw+6moNsFhh1LpvCeEs AWXNBukAItjFQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Sam Ravnborg , Ulf Magnusson , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 1/2] kconfig: rename zconf.l to lexer.l Date: Thu, 24 Jan 2019 19:47:29 +0900 Message-Id: <1548326850-13660-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use a more logcal name. Signed-off-by: Masahiro Yamada --- scripts/kconfig/Makefile | 6 +++--- scripts/kconfig/{zconf.l => lexer.l} | 0 scripts/kconfig/lkc.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename scripts/kconfig/{zconf.l => lexer.l} (100%) -- 2.7.4 diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 1819735..9278519 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -143,10 +143,10 @@ help: # =========================================================================== # object files used by all kconfig flavours -common-objs := confdata.o expr.o symbol.o preprocess.o zconf.lex.o zconf.tab.o +common-objs := confdata.o expr.o lexer.lex.o preprocess.o symbol.o zconf.tab.o -$(obj)/zconf.lex.o: $(obj)/zconf.tab.h -HOSTCFLAGS_zconf.lex.o := -I$(src) +$(obj)/lexer.lex.o: $(obj)/zconf.tab.h +HOSTCFLAGS_lexer.lex.o := -I$(src) HOSTCFLAGS_zconf.tab.o := -I$(src) # conf: Used for defconfig, oldconfig and related targets diff --git a/scripts/kconfig/zconf.l b/scripts/kconfig/lexer.l similarity index 100% rename from scripts/kconfig/zconf.l rename to scripts/kconfig/lexer.l diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h index 531ff7c..d871539 100644 --- a/scripts/kconfig/lkc.h +++ b/scripts/kconfig/lkc.h @@ -90,7 +90,7 @@ void *xrealloc(void *p, size_t size); char *xstrdup(const char *s); char *xstrndup(const char *s, size_t n); -/* zconf.l */ +/* lexer.l */ int yylex(void); struct gstr { From patchwork Thu Jan 24 10:47:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 156469 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1795654jaa; Thu, 24 Jan 2019 02:48:24 -0800 (PST) X-Google-Smtp-Source: ALg8bN5nYNxkyvEV6aXo4VHXEp1IxAkAK21moek9yqDIRO1ydFYh1WZ6GT9xq/w39rA3nm1UxYM5 X-Received: by 2002:a63:6207:: with SMTP id w7mr5273457pgb.90.1548326904027; Thu, 24 Jan 2019 02:48:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548326904; cv=none; d=google.com; s=arc-20160816; b=bQyt2+fW7qKWNlme5Hp1X7U8geijWebw0h4pnPpN+mWyoeAAYCZ4yQ7w6TrESMHeHR S6cjZ3dp6zWiEAlR9b8tw/Lt2CXE3EtMycOkkEqwD1XUFluyhhGFS1An804hI96345X1 FBObUgVVXrdP2iH6niVQFFMNYJ2Js6nfYNv8/hK7iwVEqmG3bOp0DobvN7VDCIbBFa80 Xosd5kXBRmdMYGDnH0Tlx8Pznj2tgzTHBOW98vMDDe4X27nzLu8LttnWPC6k9aq/lW3e +ONsfjLMkXET8+KvoVepmax4+UDKG0nvEnvMSbkMnuw5+b6iV/wkBt+DlG9YAonLE9nt kuOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=Bx6qUIZBuAikzmub06CqL/wi+fGcjYmAgLf/mU0X/2s=; b=VL4mEPsWuzq1FQ4WrHOwWbmRLux6epaS1W8QHC3c0MNZHuXxJifMYEjc+7ht0AQono LEeMl8rsUcOZz0D+5UF8rrEpX1iMeBGCbsFC1VPQIC6VYmAsya3cihU7tOQZc8aaVYt8 ibEXGNuBvmtAWb6JUq5DtDV0nIodF/5vhSs0asGC/iKtmBdRagTcewSiEPodv025Cuk2 kv/5UygeI1ueXp72sWaJ+rMTovBjfUzsV9kj7q8e4sWGfzx1G9AEUaNfGixApFMapl2M i4vSozzgskMz4WndW3Z3PnQOTdu4nTVPCT13GdM6GklrTSudjgYzyiX89V3oLVAfLsdT h1xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=wHNJrb3j; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e4si14312738pgk.127.2019.01.24.02.48.23; Thu, 24 Jan 2019 02:48:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=wHNJrb3j; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727628AbfAXKsW (ORCPT + 31 others); Thu, 24 Jan 2019 05:48:22 -0500 Received: from conuserg-11.nifty.com ([210.131.2.78]:45474 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726036AbfAXKsV (ORCPT ); Thu, 24 Jan 2019 05:48:21 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id x0OAlYSf031996; Thu, 24 Jan 2019 19:47:36 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com x0OAlYSf031996 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1548326856; bh=Bx6qUIZBuAikzmub06CqL/wi+fGcjYmAgLf/mU0X/2s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wHNJrb3jqQFVpkiJ5P9ZXKMPMtOMw7kU7CLbMOK63ZfC7FJargkc4JiIzKh6sfSY7 TOIGp1IBEslGTPsPTbRMXu4qw5tVCsMP1Sc8KlzptlA+/LZuQKAtMYuoPV2ZB7RwJ8 zYIPOyvelc137iwqCaOv9jQXdSkrBL4ZIF1Izum0FeOVHBN/PAikiGF1dFMGELhSGj aRfz+PIPAeGxa0lK1d0JYXHH2fLqlw8ttkFGMA0vXPezsazoEQiGP7X2Osb7JJDH/z 56W+HVs5sBNFPZziJnjD6mfHViN7xaL5ae6ZPoxEN20IhHqojXdUbzP5AtDLGOkjcX pSpH4XN6ZSjLg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Sam Ravnborg , Ulf Magnusson , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 2/2] kconfig: rename zconf.y to parser.y Date: Thu, 24 Jan 2019 19:47:30 +0900 Message-Id: <1548326850-13660-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548326850-13660-1-git-send-email-yamada.masahiro@socionext.com> References: <1548326850-13660-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use a more logical name. Signed-off-by: Masahiro Yamada --- scripts/kconfig/Makefile | 7 ++++--- scripts/kconfig/expr.h | 2 +- scripts/kconfig/lexer.l | 2 +- scripts/kconfig/{zconf.y => parser.y} | 0 4 files changed, 6 insertions(+), 5 deletions(-) rename scripts/kconfig/{zconf.y => parser.y} (100%) -- 2.7.4 diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 9278519..7c5dc31 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -143,11 +143,12 @@ help: # =========================================================================== # object files used by all kconfig flavours -common-objs := confdata.o expr.o lexer.lex.o preprocess.o symbol.o zconf.tab.o +common-objs := confdata.o expr.o lexer.lex.o parser.tab.o preprocess.o \ + symbol.o -$(obj)/lexer.lex.o: $(obj)/zconf.tab.h +$(obj)/lexer.lex.o: $(obj)/parser.tab.h HOSTCFLAGS_lexer.lex.o := -I$(src) -HOSTCFLAGS_zconf.tab.o := -I$(src) +HOSTCFLAGS_parser.tab.o := -I$(src) # conf: Used for defconfig, oldconfig and related targets hostprogs-y += conf diff --git a/scripts/kconfig/expr.h b/scripts/kconfig/expr.h index 999edb6..8dde65bc 100644 --- a/scripts/kconfig/expr.h +++ b/scripts/kconfig/expr.h @@ -172,7 +172,7 @@ struct symbol { * int "BAZ Value" * range 1..255 * - * Please, also check zconf.y:print_symbol() when modifying the + * Please, also check parser.y:print_symbol() when modifying the * list of property types! */ enum prop_type { diff --git a/scripts/kconfig/lexer.l b/scripts/kconfig/lexer.l index b2d0a3b..c9df1c8 100644 --- a/scripts/kconfig/lexer.l +++ b/scripts/kconfig/lexer.l @@ -15,7 +15,7 @@ #include #include "lkc.h" -#include "zconf.tab.h" +#include "parser.tab.h" #define YY_DECL static int yylex1(void) diff --git a/scripts/kconfig/zconf.y b/scripts/kconfig/parser.y similarity index 100% rename from scripts/kconfig/zconf.y rename to scripts/kconfig/parser.y