From patchwork Sun Aug 25 17:28:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 172156 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp3349684ily; Sun, 25 Aug 2019 10:28:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPFyxTeAcjcnsCCwbx4rTqjVjzuaI3Xnm8iBki31Zewcls08JIvSTUzas7J6hQ1oxcehs2 X-Received: by 2002:a17:902:d917:: with SMTP id c23mr15209943plz.248.1566754125447; Sun, 25 Aug 2019 10:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566754125; cv=none; d=google.com; s=arc-20160816; b=FRlSZ+owoP5oAeGZ8bEE5Ht5UI9oCI2b2hOrbkl6Q4X8DLB1q9yN2LNpYCWwYc2304 Nz0AqyLXZZUY2838ozBs3fSUx+kSa9n2ZlVNGQVBSHdWpke+qkvC62xkfF7DEznuKOOZ UpUXCjqV95vEARUMhIgVTdEuda9PXuLem+YbyeFzNka9Q1wXjQs9ZBHFB8yYYZjRY8W7 OJKh/iVVzVP9NuSbpvFT70rpPNWTWTYrxe0SPlyyob6ST9YiX/YS9p9f/l4JZ1Sn7x1e efL9M6lNEWLiXiXjvl6n8/KXhjFfMiwxqe8p18SBn4ipnMrWKiqCbwvbnZgtI8XtDWRD oz6w== 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=R/LvQSsrWjqTLjMvhXd/xv0Gk36CKucewELa9VXReAo=; b=Oxew5pe436+5CmiR2hFEOYdkWR3NdukL0tnO27t0P4efRFmm3FA2iUbGKv5V56fpGr EoCqS7QHSPg6hEn48iGG/TIC3/54vJZVNuTk4H19jgW7k7Djw/mkMPb9dRd4m74Jy3Mf fs4XoR1nPZb6/8mH05v1v5d5ETlpoEIRZpKzlIi6EGnqla0gB1TspbPjJPXJJTl0lZtX aZcaeB6Ln0IzkLgDQcLsAqXIHhIIBbtcPJyqmfkWqhoFh+EPECl0Le3Zj+/o1E8urJty u90xQb6Vd5E2P7qC3hy4B5/GixSmmYbQ/x4C9i1Y2cSHxrYxRiFQMdJLMl2M6kq2wNdE hhSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=s8x+mnso; 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 bo6si12184010pjb.1.2019.08.25.10.28.45; Sun, 25 Aug 2019 10:28:45 -0700 (PDT) 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=s8x+mnso; 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 S1728737AbfHYR2n (ORCPT + 28 others); Sun, 25 Aug 2019 13:28:43 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:45503 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726981AbfHYR2n (ORCPT ); Sun, 25 Aug 2019 13:28:43 -0400 Received: from grover.flets-west.jp (softbank126125143222.bbtec.net [126.125.143.222]) (authenticated) by conuserg-11.nifty.com with ESMTP id x7PHSb7P010019; Mon, 26 Aug 2019 02:28:38 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com x7PHSb7P010019 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1566754118; bh=R/LvQSsrWjqTLjMvhXd/xv0Gk36CKucewELa9VXReAo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s8x+mnso0BzwVC1knA7FsgvvOvJ2T049kyopPwWxycgrgcGJ39EFQGfdeEfMKxdc9 ssXw2BKKGPApbii7LWryNeW1jM8uFOC0vXkELK4ioGD/uSGlQTBpfWSFBnMdF5j0F+ dOiRV0TMJvYHRDt1BOStXefa8yX6NVXBm9YijMRzRl2f+GHd4kbjktF8Lmvq0lb9N8 X+KXY5K/aS2LwKE/RoFhR6SVJmfZVojVTl8HePd1Dqy4yQBRhtVn4zEw5bm0DqjgGo AhLYiqp2zM7rLGF5uKFamV8b8l8awNom5YkeJTac7Uq70PQ6tfofJLDbgbbL8sc4VH x+HIKScEL0LKw== X-Nifty-SrcIP: [126.125.143.222] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 2/2] kconfig: split util.c out of parser.y Date: Mon, 26 Aug 2019 02:28:33 +0900 Message-Id: <20190825172833.5708-2-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190825172833.5708-1-yamada.masahiro@socionext.com> References: <20190825172833.5708-1-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org util.c exists both in scripts/kconfig/ and scripts/kconfig/lxdialog. Previously, Kbuild could not pass different flags to source files with the same basename. Now that this issue was solved, you can split util.c out of parser.y and compile them independently of each other. Signed-off-by: Masahiro Yamada --- scripts/kconfig/Makefile | 2 +- scripts/kconfig/parser.y | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) -- 2.17.1 diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index ef2f2336c469..1ce83269a5dc 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -144,7 +144,7 @@ help: # =========================================================================== # object files used by all kconfig flavours common-objs := confdata.o expr.o lexer.lex.o parser.tab.o preprocess.o \ - symbol.o + symbol.o util.o $(obj)/lexer.lex.o: $(obj)/parser.tab.h HOSTCFLAGS_lexer.lex.o := -I $(srctree)/$(src) diff --git a/scripts/kconfig/parser.y b/scripts/kconfig/parser.y index 60936c76865b..b3eff9613cf8 100644 --- a/scripts/kconfig/parser.y +++ b/scripts/kconfig/parser.y @@ -727,5 +727,4 @@ void zconfdump(FILE *out) } } -#include "util.c" #include "menu.c"