Received: by 10.223.164.202 with SMTP id h10csp2354317wrb; Sat, 18 Nov 2017 20:03:56 -0800 (PST) X-Google-Smtp-Source: AGs4zMZ2ZO0mvvMRnihEuKhCX7N2UppJLEMrTjKDIYUaXvFHqn4aYJ8rmg94dgO9lbYH/zQd7neU X-Received: by 10.99.132.72 with SMTP id k69mr9820495pgd.437.1511064236772; Sat, 18 Nov 2017 20:03:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511064236; cv=none; d=google.com; s=arc-20160816; b=00OkJL+7ZAEVVXMl99R/ZPjksdwkYX1JA06vKbwdVF/WXgU7tszf+F+dBe3j4J99QS r59KP9cPC9PlxuFXiyTu9F3shnqUDiqCSMUt4zWZPzUhmKRM04pEzTyMihcCG47utnQW 4q5OSfZ/KasevhiEEkiTZu+bMTMqqX81/wXAlqrq+KR6nimLnJYZcO9u8++RYaDF81ON OTHqdWFqHaSjw8mN//PwVSk9RLNCINVn4KnBB8BcNk8eu2/L2/efPL3aLGv0Rog/eIZo PfqnMR9BdaVimlL9mph/s4BTPNOye0aTRJGmrEqb+j+DUf9QcAEXTN2Hoxg/aCcFlFmI QoPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=LHw+3Q1C0gMWFAHqsCKM48pfDe0SPd0q5HUK2j5BvVM=; b=RMz9vrmaYjhtJFP+QNirf6FF0Og9Xu7ZRCpQBByC73EX1MUY8wemlTkaSahF4kQf0Z WhzonQBvoCXMf3EL7bp8pfWhAzU/SbYscJrheUVd2FIYYrGWFKObEhta2t9DTtNWp0K0 erVLKqAgP81jvxYf1OnBrUyT6u+oa2OjVEBISmjTLdse75dglLbHz6RV6za25eqTzjrw 0C7vrvvKbfbrk6SXv2qZDCtuQx+hsPt+YrOh5c9bWL338SYVUwCtxJn77OSJxM07o1Fq XjkGK+Wc7eizsMvrmySS74su/EOSsTO/Ct0UNyTAyZSHsx0pdZKAS1+iaJTxFLIJ29SR qRbw== ARC-Authentication-Results: i=1; mx.google.com; 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 k126si5999780pfc.348.2017.11.18.20.03.44; Sat, 18 Nov 2017 20:03:56 -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; 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 S1424170AbdKRLYB (ORCPT + 93 others); Sat, 18 Nov 2017 06:24:01 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:2245 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1424157AbdKRLX5 (ORCPT ); Sat, 18 Nov 2017 06:23:57 -0500 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="30281256" Received: from localhost (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 18 Nov 2017 19:23:51 +0800 Received: from G08CNEXCHPEKD03.g08.fujitsu.local (unknown [10.167.33.85]) by cn.fujitsu.com (Postfix) with ESMTP id 8DDAC480D737; Sat, 18 Nov 2017 19:23:47 +0800 (CST) Received: from Tsao.g08.fujitsu.local (10.167.226.60) by G08CNEXCHPEKD03.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.361.1; Sat, 18 Nov 2017 19:23:48 +0800 From: Cao jin To: , CC: , Subject: [PATCH RFC] kbuild: improvement in Makefile.modbuiltin Date: Sat, 18 Nov 2017 19:23:13 +0800 Message-ID: <20171118112313.13557-1-caoj.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.13.6 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.167.226.60] X-yoursite-MailScanner-ID: 8DDAC480D737.A9AEA X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: caoj.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Drop unnecessary "__subdir-Y" and `cat /dev/null` Signed-off-by: Cao jin --- Don't know why they exist, but a simple build is fine without them in my test scripts/Makefile.modbuiltin | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/Makefile.modbuiltin b/scripts/Makefile.modbuiltin index a763b4775d06..cbb1e3dc1ef9 100644 --- a/scripts/Makefile.modbuiltin +++ b/scripts/Makefile.modbuiltin @@ -26,8 +26,7 @@ kbuild-file := $(if $(wildcard $(kbuild-dir)/Kbuild),$(kbuild-dir)/Kbuild,$(kbui include $(kbuild-file) include scripts/Makefile.lib -__subdir-Y := $(patsubst %/,%,$(filter %/, $(obj-Y))) -subdir-Y += $(__subdir-Y) +subdir-Y := $(patsubst %/,%,$(filter %/, $(obj-Y))) subdir-ym := $(sort $(subdir-y) $(subdir-Y) $(subdir-m)) subdir-ym := $(addprefix $(obj)/,$(subdir-ym)) obj-Y := $(addprefix $(obj)/,$(obj-Y)) @@ -41,7 +40,7 @@ __modbuiltin: $(modbuiltin-target) $(subdir-ym) $(modbuiltin-target): $(subdir-ym) FORCE $(Q)(for m in $(modbuiltin-mods); do echo kernel/$$m; done; \ - cat /dev/null $(modbuiltin-subdirs)) > $@ + cat $(modbuiltin-subdirs)) > $@ PHONY += FORCE -- 2.13.6 From 1584666492501526265@xxx Tue Nov 21 09:15:33 +0000 2017 X-GM-THRID: 1584649920972110860 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread