Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3198537ybl; Sun, 25 Aug 2019 10:30:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPKNw8AYjtdztJplDNuuPdJylgU8/GTXRZ4atvdYFB8QJ2gGUCwdUh+eg2jqhVV5I9wy7y X-Received: by 2002:a17:90a:8c01:: with SMTP id a1mr15085056pjo.82.1566754221948; Sun, 25 Aug 2019 10:30:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566754221; cv=none; d=google.com; s=arc-20160816; b=aT2+XJsFdknSFJrapqYSQjC8OnlweexXk0hrpLNInCH4JIrxL3b6wuYeHoYOdNoBek OSzsqgvk66Q0OuJtnFfBVy0UcoQdtFzMjHpJ89Xa8Egy1zVUT6ppMu9+je6e/uVNilvn vIIaT9zrl8L05Y8ggyiMSu89lUZ/FnixWW7TL8kxVSZAvsWewgJvvet13CxT4knzckcn 6FTO/EWCSGfLmiderkNniz54nEkRflSpCt1a4Dtqt/BgxrDIEGBqjqAv0MQz3NsOKv9D 2viTR0S5CvpPkGBXBRIz5plStpXrfyxexCjfk09NgUccx3oWpEWskU+cHbDg5KyYDrYN Da/Q== 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 p3si7429800pjr.38.2019.08.25.10.30.06; Sun, 25 Aug 2019 10:30:21 -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 S1728730AbfHYR2n (ORCPT + 99 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(-) 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" -- 2.17.1