From patchwork Sat Mar 30 12:04:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 161494 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp3168264jan; Sat, 30 Mar 2019 05:04:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxb/QwLAifTMHvm2Hw8/rgrKroTy8mc2qtuUgrvTF1Qga6JaIOJjfHWBwu/dNgs1d4V+VbC X-Received: by 2002:a62:4351:: with SMTP id q78mr39066280pfa.86.1553947471332; Sat, 30 Mar 2019 05:04:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553947471; cv=none; d=google.com; s=arc-20160816; b=QvtMHlUZQxd2QvohSRHFfQ2igvgw40bNe9FPEq3kQMV815YhdH9GGn9+7/Yav0T6ST M3zPKIPaoq1GP8HDqnGbdySUKR9uk7KErHB/ygffERp9lHfFJo+PrQ3i7FbZRECVdPby 1A/Shioe/89U4/XEcnViZVlH2B0ytF9XNOuUG9L8InypuXqPbtc5+7C5vb2Ubx/UjDMb TdU31GCBpSBgJgDewoLNXZGAodbqDB84HWSB4s9kCTCG01gPuXkprEACKi3L321S6YEz nXo05cJ81JfQb7/F2pGW3NP+nVpg8VDt7Uv1FRMdxnaLKeQg6nN60PZRlH+sWlhUNTSg 0xNg== 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 f16si824959pgh.309.2019.03.30.05.04.31; Sat, 30 Mar 2019 05:04:31 -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 S1730771AbfC3ME3 (ORCPT + 31 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(-) -- 2.7.4 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