From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10DECC10F00 for ; Sat, 30 Mar 2019 12:04:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D6641217F5 for ; Sat, 30 Mar 2019 12:04:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nifty.com header.i=@nifty.com header.b="KdwnuBTr" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730820AbfC3MEf (ORCPT ); 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