Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp2434363ybb; Sat, 30 Mar 2019 05:05:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwb1foT06MKEdwss/nCP4C9FiHMvvkoVkfBzWKUhwdBZlr2FZvWF23xTbsrY3mteB49Myys X-Received: by 2002:a63:2141:: with SMTP id s1mr51021990pgm.430.1553947528072; Sat, 30 Mar 2019 05:05:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553947528; cv=none; d=google.com; s=arc-20160816; b=md4UYGGKLwtE7cOBJsAHyodHtwKbgCsnr4zs3+XtYxMeI0yCoLGzfixZJoBSESccVL c2fyf8M5GpSmpJH1u7nma3Y8gkO7Ep0tI+GyPJ0LqBAUVl6AtYjSVg+fI1LBe/uWdy0o 4OAkJR/o7I/RTQGm6/TIgQcB5UfW4PgKfu5/HNESw0GiTPRKR8NIrKwyf5fbHRWuoUdK LxhDfruAyK1qbnb3NBECOSzCBDZJEeQ36loXoXOWUIC9MeqOqkv5vjCwbvD3uDH7e74S ukOgou1jtroOJF0C5t8Z4Rj0ZNVg4XkuFiYjfFWYHhfp2tM/KTeHdS2yNBgnudBZwLN7 /Hnw== 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; bh=vECKjhBdepZ/JkB+LcXMbI5D09fQNGuN2ICmhd1CZhU=; b=TtGyX+vzn+Ymtl994pQX9zulEQ2AnEBh1nKT2Ognmms6CB0PDx9z0I3qBbbhOR+wuZ t+mF6W40uZpvlqUKtgmqU7IA2rJMW9xU6SUrOhQlx7OauZXswDtvZX3qPlMEyVSVCzjz HMj7qqJ5n5W8MnadjZyiiYUG13MqpBVwxAduOx1yjqMTZf1olVCvM/71g2JqZ7XDWkOT Q6Bd6xTEl2x2xNISXrsB1yNnfGKRwZ2B8Aye3xje3ZCnpSno+T7hQVUGIgpjdF93OU4S 8wBis8liW4z2/D7/QiBibhmyXyasoYyU6g2YjY4tmNY9LmHd4IoecVA1IAJ32wPdqncg vtLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=KdwnuBTr; 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 l63si4132601pfj.53.2019.03.30.05.05.12; Sat, 30 Mar 2019 05:05:28 -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=KdwnuBTr; 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 S1730814AbfC3MEf (ORCPT + 99 others); Sat, 30 Mar 2019 08:04:35 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:36171 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730384AbfC3MEe (ORCPT ); Sat, 30 Mar 2019 08:04:34 -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 x2UC4MsQ021262; Sat, 30 Mar 2019 21:04:25 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com x2UC4MsQ021262 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1553947466; bh=vECKjhBdepZ/JkB+LcXMbI5D09fQNGuN2ICmhd1CZhU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KdwnuBTrTktyVNyUyzhLQmBFTFynIPYYHQx1Rag2icU23E6jdXMOglnq0PmxmRSGk 04jktMukNMefv9erfAfeaph8BriFqV/1g3AjyHPA1ndQ7eJHZMjOHk1JehRq1XnA42 Jp11eH53haehk+A7lr/KVfrLp21uaczvySUai+3OQXF+Fafo1M50Trix1cQd1R+R7s /7230eJZo1ZZ6N3wom+tTc/lL4W0wnPU3Vn3gSNP0hPSQHzuQXCD80wGxZ0KhJtt0W soFmHzl3woiuRlPS4uxyUEWEckIErSOp5AySTBP51JEkznXDM5c/51jtAWjbuSmKpW Qh3syYoxjusTQ== 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 4/6] kbuild: mkmakefile: generate a simple wrapper of top Makefile Date: Sat, 30 Mar 2019 21:04:16 +0900 Message-Id: <1553947458-8311-4-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1553947458-8311-1-git-send-email-yamada.masahiro@socionext.com> References: <1553947458-8311-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 Now that Kbuild is able to start from any directory, the generated Makefile can simply wrap the top Makefile. Signed-off-by: Masahiro Yamada --- scripts/mkmakefile | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/scripts/mkmakefile b/scripts/mkmakefile index 31de468..4d0faeb 100755 --- a/scripts/mkmakefile +++ b/scripts/mkmakefile @@ -12,22 +12,6 @@ if [ "${quiet}" != "silent_" ]; then fi cat << EOF > Makefile -# Automatically generated by $0: don't edit - -ifeq ("\$(origin V)", "command line") -VERBOSE := \$(V) -endif -ifneq (\$(VERBOSE),1) -Q := @ -endif - -MAKEFLAGS += --no-print-directory - -.PHONY: __sub-make \$(MAKECMDGOALS) - -__sub-make: - \$(Q)\$(MAKE) -C $1 O=\$(CURDIR) \$(MAKECMDGOALS) - -\$(filter-out __sub-make, \$(MAKECMDGOALS)): __sub-make - @: +# Automatically generated by $(realpath $0): don't edit +include $(realpath $1/Makefile) EOF -- 2.7.4