Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp2434526ybb; Sat, 30 Mar 2019 05:05:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzcoaA5dpf2sLn/TBrQKkL6nNV4K+0gVRtPe9/gpcxiDnUgmiHsosAd6n5FtgBQg+gqQI9 X-Received: by 2002:aa7:91d5:: with SMTP id z21mr21117091pfa.222.1553947540926; Sat, 30 Mar 2019 05:05:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553947540; cv=none; d=google.com; s=arc-20160816; b=iWhVy5MSNxDRFGRboQX5etm0k9Ph0n33/CiVThd3+PogKjUgtJFP3NyONVjLXhpcWB 9o6ROZOvbNcvbBLMu2WnDPiN+V4484c8btcFdBJN4DKLppqmE68Fih4aoU1K7xiXgvr/ P//ntuFd7aCjlq6qovr4uBU/Wm4FkYXW26hvOyPUfFNHO/hXoYmaluOAczJGH/lTB7xp 2bHAzUl0ca+ym+Q38r5ow6lTrVNdwDd8+nwVG2kFF4nvcCyY+QMy4mEPVbaRvc4CPZOF OHWlf2XWR/CoJux++AUijfJxnSRaaEJJ/bwk55ufs4pVmWE54/1qWzSOSwEEcCsanLiG zrNA== 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=FHNK6eyXi8sis+WrpzX624MLFcG4c9ZDVhLL5yNCvIQ=; b=Y8XpI74ozOH6XzDw00NNE9pxacgCVbK6cQh1XLfF6qEIiZk52oFmBS3LHKSzYhO1hH TFT961DwNOQmHBRkxqv8fuomBdf0ITz2iSN/wOyG5DmD7mwTpmQMcqt1amHqV3dP0Ryg HQFliP3SJBQPchxsQXvqxjnVNUYXhQDqkeRqgocq5nWACXdmhNVsdgqhhZGpx+YtTPlC hsXiNym3y1YIQlN/DLzDyYfKpcVXzC97h2cUJ7hV//GJgJhta3O8NojQxeC6VAZTDlEZ aqa1BuMQzs+arTC5R9BFAB/XNOrUUopDzXSQTM3BPnYX7xzkhF00o3GShQWAm1MiW8l5 yv8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=GUqfKCXu; 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 f4si4118472pgv.118.2019.03.30.05.05.25; Sat, 30 Mar 2019 05:05:40 -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=GUqfKCXu; 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 S1730763AbfC3ME3 (ORCPT + 99 others); Sat, 30 Mar 2019 08:04:29 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:36041 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730691AbfC3ME2 (ORCPT ); Sat, 30 Mar 2019 08:04:28 -0400 Received: from grover.tkatk1.zaq.ne.jp (zaqdadce369.zaq.ne.jp [218.220.227.105]) (authenticated) by conuserg-10.nifty.com with ESMTP id x2UC4MsN021262; Sat, 30 Mar 2019 21:04:23 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com x2UC4MsN021262 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1553947463; bh=FHNK6eyXi8sis+WrpzX624MLFcG4c9ZDVhLL5yNCvIQ=; h=From:To:Cc:Subject:Date:From; b=GUqfKCXumTTXXHmrKSXNdkpjrlJBkG7x90UZEWrqZMCQNCrtFkZk8Cz5dxb1s0Csh 8DipHMZQ489U4bhE3BpLDCw3WfVHlzVFpntsxDOteSnrxM71lOkTggMPon8i9Y4kjL qbsqlGOnIhkPjP9uJvOwAOxQ4fjtOWEj0z0L1bLv2kvgYINVJf/5hpt/5TYNZIILoM c5swsIQFgUzBLDUiUtDQyNASRey+brKS6sQyU21BttCyOE5LVHpI/9UKKw0NcetzvG AAPlnGxpUqrSKGblny+79Kb8XPRMhr9RLWd6kkzhFZpOycEOO9Zz+Kaf02AsWDEt+t tuRk5sUmYOY3Q== X-Nifty-SrcIP: [218.220.227.105] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH 1/6] kbuild: pass $(MAKECMDGOALS) to sub-make as is Date: Sat, 30 Mar 2019 21:04:13 +0900 Message-Id: <1553947458-8311-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 Manipulating $(MAKECMDGOALS) for sub-make seems odd to me. [1] 'make O=foo sub-make' is turned into 'make O=foo', which builds the default targets. It would make sense to terminate the build with: *** No rule to make target 'sub-make'. Stop. [2] 'make O=foo defconfig _all' is turned into 'make O=foo defconfig', which changes the behavior. Let's pass $(MAKECMDGOALS) as is. Signed-off-by: Masahiro Yamada --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 92ad066..9cbd367 100644 --- a/Makefile +++ b/Makefile @@ -168,7 +168,7 @@ $(filter-out _all sub-make $(lastword $(MAKEFILE_LIST)), $(MAKECMDGOALS)) _all: sub-make: $(Q)$(MAKE) \ $(if $(KBUILD_OUTPUT),-C $(KBUILD_OUTPUT) KBUILD_SRC=$(CURDIR)) \ - -f $(CURDIR)/Makefile $(filter-out _all sub-make,$(MAKECMDGOALS)) + -f $(CURDIR)/Makefile $(MAKECMDGOALS) endif # need-sub-make endif # sub_make_done -- 2.7.4