From patchwork Fri Mar 23 13:04:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 132337 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp573066ljb; Fri, 23 Mar 2018 06:07:53 -0700 (PDT) X-Google-Smtp-Source: AG47ELs8++Ff77QlzJdeSUsUVIR1ozhJnt/l171cRB+ZrYSo/+AJrKWFjcneDOzcJ4kEpOXAtjgH X-Received: by 10.98.85.197 with SMTP id j188mr23950927pfb.86.1521810473428; Fri, 23 Mar 2018 06:07:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521810473; cv=none; d=google.com; s=arc-20160816; b=vZKbl2lwV7u12pWWqxZLqSd/E9KrV4Cm86dezISkXkxsWc4H3VU9jLm5lhnwaCOjm9 xRS/K/W34uJJY9e9UChX/Etz8lG+BGl7tuvJKTWd2syJUPpPT3gIMxbU4+e0xmluPHGG VpB/ZhknkpS/RWPPsl8huIEduGuSo/3jdL1fOdLafP1i3uZ4p9aLrQRJH2xEUIE/klPp y0As7R/q4slQlCMHOA/ho72v/PMVGazRtn8x5L5CEQ5Wro1UFmlGgCwC0N71rJxY774Y W7DkpN6uskIzNSkT6P7x/hbdTTYv+SccbJ+8BlzvYJQpePdbYBYK3FWtZ256DVmZx6WN 7HGQ== 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 :arc-authentication-results; bh=Hp1i9iAGEMGOo4yWhdbFlj9tPSN5pQ5G9trHOeMOb1Y=; b=uWTYPOILZawQaO3qfg1LMkQiFll3jhTGH+/VdE0zsvu3fijeqnM95vbsOGcxtZVoWv lTi2eBvI3YrbmCXO0kErFCkY7YHhDzGlzuEQsJlJDxh2iivfj5j5A8iRleNGAc9i/x5+ YBhpiRqMrjxxm8ohC9td7Mrfi27x/tQCwWo3uWlLg2qIB7Dkm6esgFWhEx2ZLcM20Ark zO3f2ydqxh+3A0DG/K6L7kx1F/GPYkSbUC5h49xgH8cUnRADypTi45vU8Vsmbz+XIhEr qFeQLEBO4wxuIhACF3lA/FAlNkI7xAvtL3DmgBgqFxjjgTWC92zi8/G/fW4XCj+Bi4NK YJMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ybyBlK6H; 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 k185si6707982pfc.277.2018.03.23.06.07.52; Fri, 23 Mar 2018 06:07:53 -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=ybyBlK6H; 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 S1753228AbeCWNGL (ORCPT + 28 others); Fri, 23 Mar 2018 09:06:11 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:52680 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753147AbeCWNGA (ORCPT ); Fri, 23 Mar 2018 09:06:00 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id w2ND4mgY011418; Fri, 23 Mar 2018 22:04:54 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com w2ND4mgY011418 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1521810298; bh=Hp1i9iAGEMGOo4yWhdbFlj9tPSN5pQ5G9trHOeMOb1Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ybyBlK6HZxOUIxrMY1cNeyRmA2QaReht5w9REDL3G15ljjSH61ICx9klZf3swmeIf 69LMBoUGEr0inEvUS0FHij+OLoGxPyZjLUKlTW6W9gVbHuStwppSDuu6M24HX3FVpr RDRHUiUC8aoCFoDn8L0WEtYUhNsAfvDxi3i7kR5dN35xiWDgrcc7nHjsFMK08lj1SM fc84wpYQAx9EOS54rdCeN9SGekmgfkTe+/dsFFop1r3eRrw/pjEJPG3npI3kksRipK qY6vYcfcDpM1wNPO7r4y5PhYDahfBsRkkdOdYB8gaKAdO87E207y9MdNs2lMV5u7wM cKTkr9pUXo6Yg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Sam Ravnborg , Michal Marek , linux-kernel@vger.kernel.org, Arnd Bergmann , Laurent Pinchart , Frank Rowand , Geert Uytterhoeven , Masahiro Yamada Subject: [PATCH 02/10] kbuild: clean up *.lex.c and *.tab.[ch] patterns from top-level Makefile Date: Fri, 23 Mar 2018 22:04:31 +0900 Message-Id: <1521810279-6282-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521810279-6282-1-git-send-email-yamada.masahiro@socionext.com> References: <1521810279-6282-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 Files suffixed by .lex.c, .tab.[ch] are generated lexers, parsers, respectively. Clean them up globally from the top Makefile. Some of the final host programs they are linked into are needed for building external modules, but those intermediates are unneeded. They can be cleaned away by 'make clean' instead of 'make mrproper'. Signed-off-by: Masahiro Yamada --- Makefile | 1 + scripts/dtc/Makefile | 6 ++---- scripts/genksyms/Makefile | 2 -- scripts/kconfig/Makefile | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) -- 2.7.4 Acked-by: Frank Rowand diff --git a/Makefile b/Makefile index 493e267..168432e 100644 --- a/Makefile +++ b/Makefile @@ -1613,6 +1613,7 @@ clean: $(clean-dirs) -o -name '*.dwo' -o -name '*.lst' \ -o -name '*.su' \ -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \ + -o -name '*.lex.c' -o -name '*.tab.[ch]' \ -o -name '*.symtypes' -o -name 'modules.order' \ -o -name modules.builtin -o -name '.tmp_*.o.*' \ -o -name .cache.mk \ diff --git a/scripts/dtc/Makefile b/scripts/dtc/Makefile index a88b8c9..d17ba64 100644 --- a/scripts/dtc/Makefile +++ b/scripts/dtc/Makefile @@ -28,7 +28,5 @@ HOSTCFLAGS_dtc-parser.tab.o := $(HOSTCFLAGS_DTC) # dependencies on generated files need to be listed explicitly $(obj)/dtc-lexer.lex.o: $(obj)/dtc-parser.tab.h -# generated files need to include *.cmd and be cleaned explicitly -generated-files := dtc-lexer.lex.c dtc-parser.tab.c dtc-parser.tab.h -targets := $(generated-files) -clean-files := $(generated-files) +# generated files need to include *.cmd +targets := dtc-lexer.lex.c dtc-parser.tab.c dtc-parser.tab.h diff --git a/scripts/genksyms/Makefile b/scripts/genksyms/Makefile index 34d6ab1..0ccac51 100644 --- a/scripts/genksyms/Makefile +++ b/scripts/genksyms/Makefile @@ -11,5 +11,3 @@ HOSTCFLAGS_lex.lex.o := -I$(src) # dependencies on generated files need to be listed explicitly $(obj)/lex.lex.o: $(obj)/parse.tab.h - -clean-files := lex.lex.c parse.tab.c parse.tab.h diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index f9bdd02..1dcd797 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -209,7 +209,7 @@ hostprogs-y := conf nconf mconf kxgettext qconf gconf targets += zconf.tab.c zconf.lex.c clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck -clean-files += zconf.tab.c zconf.lex.c gconf.glade.h +clean-files += gconf.glade.h clean-files += config.pot linux.pot # Check that we have the required ncurses stuff installed for lxdialog (menuconfig)