Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1865208yba; Sun, 7 Apr 2019 02:23:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqCnvaMN0Jj1jjSMtQ+XOXSzsWYfNWUZgxiaspRia0WI9hdDNDR3djScy1XjwXaQxJ6Tq7 X-Received: by 2002:a17:902:8a8a:: with SMTP id p10mr23669272plo.8.1554629014236; Sun, 07 Apr 2019 02:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554629014; cv=none; d=google.com; s=arc-20160816; b=Bjle9GMlojZrrsHWdb5Svm38TnzfTI4gwwzXROtWTyGYN9aXsdSDRx18LkLiSOPCsu 9qTjCGIdbDk2nKB9Vvw1S9VKOaRQXa5dMRvSVHy+wTSdPnpI1NzyuvnKQCHyM3aU7gnW 7gW3WxlysVAneeyIL/fKhssJRdLQsd8IMCdZ/lw0GH38ArWeAhAp5ony1eKwAkT27wvN jrg9xMdzNK7g7462xbZt/pB0WfquQuDxD9DOEes37/wTQ1ScNBV8pw96QCHViGm6ZKlK sGqELLcLbVE08M1+AcSSvmsDFxfXmyTQGsNbK5HziISxoZLVHzbaZbJaD4IvlU4dJ0XU s7IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=qhxQyGSXrRr6HtsWMhTkDZmMv/049Dar1W1b1ADZqIQ=; b=GY3EqnsbNUKRw0Mn/7z+O5VPuZfI6TGxa8Pm6OnjQ3bn6bmhV+M6JZPCVXgR6kh/PY zjIUY6GeiuOC9KTzplSp9MEQtiRnaFEh3Y5YmWC3aRaKNHpzTJ6eMHWOfZBOutilYb+p 4jYTjddvNEQh3eHPA9NXe7AD8Co3NKVF6c3RRwqfayXy4xJRbrmMPxQXrFIvul33/bTL A0zI1V9TzVreROAm1+ARoqUU5T6KLOMMeKVqKUE9s49SzTusgtFzG2iN6sWXOFo+hWwK ZGta29W+j+q3OE6iGHB7hT5SXrhtxgrtYErpcRCBAch03JQaHDS6naGAf27UhEumVzlI 0ayA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=1qJO1hok; 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 o77si13458490pfi.247.2019.04.07.02.23.06; Sun, 07 Apr 2019 02:23:34 -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=1qJO1hok; 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 S1726202AbfDGJWJ (ORCPT + 99 others); Sun, 7 Apr 2019 05:22:09 -0400 Received: from conssluserg-04.nifty.com ([210.131.2.83]:46794 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725988AbfDGJWJ (ORCPT ); Sun, 7 Apr 2019 05:22:09 -0400 Received: from mail-vk1-f175.google.com (mail-vk1-f175.google.com [209.85.221.175]) (authenticated) by conssluserg-04.nifty.com with ESMTP id x379LuFq005569; Sun, 7 Apr 2019 18:21:57 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com x379LuFq005569 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1554628917; bh=qhxQyGSXrRr6HtsWMhTkDZmMv/049Dar1W1b1ADZqIQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=1qJO1hokIb9yXGHcjJwCkT3LOd+8Sd9MyfzTvuJefbv7Usl6W2uAikBQAPuQz97I9 jTzosDL+uQDCmJ//E9nz8iP83fgQwwnqHQvVXwd/S93VHuYEFu8jmK1//LUhqVWifF AuWNXrXO/p8K9lcv8iCnSKFfxYpLY8G7I8fKDYw7ih8xmP367ELDBW8jkQBr8Q8vAi zEdyyeWPDxlBKvfGki/BuSZCQjUZpG4grNQ/3jhZJCd3UcM4kN3Nsv9jYF24yMEsu+ yTbKtMo+806yssBgG3WDlisk4ozpRwnIBvbZNhQHKVgOGo9ZNENGKH7SU9YHAfzT/v jJ8v+DSqvoSTw== X-Nifty-SrcIP: [209.85.221.175] Received: by mail-vk1-f175.google.com with SMTP id x2so2359063vkx.13; Sun, 07 Apr 2019 02:21:57 -0700 (PDT) X-Gm-Message-State: APjAAAWCwuzA+RscA0V3ppUTBaAxphusFN6AMyJ7Xa0mzdo9Qn5bGZq9 dVYUvUq/WX7lUC+GMSwfDHghlH+r26CWgarXBAk= X-Received: by 2002:a1f:1594:: with SMTP id 142mr12880958vkv.42.1554628916260; Sun, 07 Apr 2019 02:21:56 -0700 (PDT) MIME-Version: 1.0 References: <1553947458-8311-1-git-send-email-yamada.masahiro@socionext.com> In-Reply-To: <1553947458-8311-1-git-send-email-yamada.masahiro@socionext.com> From: Masahiro Yamada Date: Sun, 7 Apr 2019 18:21:20 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/6] kbuild: pass $(MAKECMDGOALS) to sub-make as is To: Linux Kbuild mailing list Cc: Michal Marek , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 30, 2019 at 9:04 PM Masahiro Yamada wrote: > > 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 > --- Series, applied to linux-kbuild. > 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 > -- Best Regards Masahiro Yamada