From patchwork Thu Feb 14 03:05:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 158295 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp835048jaa; Wed, 13 Feb 2019 19:06:32 -0800 (PST) X-Google-Smtp-Source: AHgI3IZiKNr3idOqiyMh6o0uU6JU5Xf2OrsdSJPkD5UKaJyUioxPP2Mo32fk0ukl2o316GOijaDt X-Received: by 2002:a17:902:7889:: with SMTP id q9mr1761511pll.134.1550113592892; Wed, 13 Feb 2019 19:06:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550113592; cv=none; d=google.com; s=arc-20160816; b=FYz78kniSD32G2xNJjm0Xfc+f1Wc98VUa/i95o24rTx9NfeBU34wYfLIIznPi34qcM c3OYKqaMzH4fw42KPQ9HmsnZ0h8bQReov+f1bg4x7W77utzbz/U0l0JWCD4vJl7nQd85 n0QL1k1pjDUOGunWTXjH4HcYr1SpdjuW+HfdmKc/6fEy9Qzxp8ACAJFlVp4SSJir2wag sgXdYemb7PScmYrBfqtAYSQyzKH1tAyBX/9mI7+kjAFiepp360c1o57+EN0CiRO09tq5 D0+/uuP6yDJytJ0A7SAAoG9UIzhE5EFU96zekbWCUIQbvrKLrZq3UkvGSy7w/hl7rV7A pD3Q== 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=12ymzprJkRQOxFpe2dJ/Cbc9UDJYC/XmnLNco9k9Spw=; b=y87EbBiI7GFJMJQ98Qa46WMdVpkgOvpdhNbm2c/ePdpISCQudOHC0aqP5aNU8YiOWI +O/66UVRznn29WK99LZtOtYh1hovCi4CA5hqF93PkQ/+ZS9U8OSMWDiYg5ksWVNk/FDR Yt+sNbjVI+V7F85xraPPMXYI4esvyGNcg1gIlH7uYJkeaqYS2m2kHOBo58SRS+8Zv7Oy wlovnhNRIZawdk4FxrwG90DSoXTtHgcdzmSrFcYjQx4oUktydXjulAz7uefBDJCgRJYs R2g7qoTnk8rmGcdpbV5whsNJARkoMrdPSEX4LwE/mFpZfwk2Xo5Pkw3dgaJZmcdWI7J/ ir+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=tG9dxpNy; 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 e9si1125330pgk.173.2019.02.13.19.06.32; Wed, 13 Feb 2019 19:06:32 -0800 (PST) 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=tG9dxpNy; 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 S2405299AbfBNDGb (ORCPT + 31 others); Wed, 13 Feb 2019 22:06:31 -0500 Received: from conuserg-07.nifty.com ([210.131.2.74]:64821 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393851AbfBNDGS (ORCPT ); Wed, 13 Feb 2019 22:06:18 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id x1E35Pg5020814; Thu, 14 Feb 2019 12:05:27 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com x1E35Pg5020814 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1550113527; bh=12ymzprJkRQOxFpe2dJ/Cbc9UDJYC/XmnLNco9k9Spw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tG9dxpNyBLAjEl8FblEfSiTQNpAD2n7eZvUoSTp7oHhj+PdGsZOOShr45k7YF+n2t l8YJbVG5Cu91/z7QDjULzMd4nEFu2/Y5n36u625G5FuVsZXb8smX4oK9q80IkREExn B/6408aN990ydI6bYIAuRIR3JsNBXej8nkR894OlZ2MFqpI3iiQkBjiNSg++Y6/6vJ tkkUlTEgmcKKQnSDQHbZLp6U8LIKc6ZG956gfwC6D7xu7BCvQlYq4tjMYYuMz/75YJ QIq5qy6xrZaZKnhdGYbzUI2LDCoHnTOmhUnK/JKHIPleHawAX+KUTDuraB8eBSPtxJ E3eF7DRjFVBvQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Sam Ravnborg , Masahiro Yamada , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Corbet , Michal Marek Subject: [PATCH 4/8] kbuild: turn '/' into an alias of './' Date: Thu, 14 Feb 2019 12:05:17 +0900 Message-Id: <1550113521-23577-4-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1550113521-23577-1-git-send-email-yamada.masahiro@socionext.com> References: <1550113521-23577-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 Commit 06300b21f4c7 ("kbuild: support building individual files for external modules") introduced the '/' target. It works only for external modules to build all .o files, but skip the modpost stage. However, 'make /' looks a bit weird to me. 'make ./' is more sensible if you want to build all objects under the current directory, and it works as expected. Let's change '/' into a phony target that is an alias of './', but I may feel like deprecating it in the future. Signed-off-by: Masahiro Yamada --- Documentation/kbuild/modules.txt | 2 +- Makefile | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) -- 2.7.4 diff --git a/Documentation/kbuild/modules.txt b/Documentation/kbuild/modules.txt index 3fb39e0..80295c6 100644 --- a/Documentation/kbuild/modules.txt +++ b/Documentation/kbuild/modules.txt @@ -140,7 +140,7 @@ executed to make module versioning work. make -C $KDIR M=$PWD bar.lst make -C $KDIR M=$PWD baz.o make -C $KDIR M=$PWD foo.ko - make -C $KDIR M=$PWD / + make -C $KDIR M=$PWD ./ === 3. Creating a Kbuild File for an External Module diff --git a/Makefile b/Makefile index fe62de3..3956e93 100644 --- a/Makefile +++ b/Makefile @@ -1709,8 +1709,9 @@ endif $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@) # Modules -/: prepare FORCE - $(Q)$(MAKE) KBUILD_MODULES=1 $(build)=$(build-dir) +PHONY += / +/: ./ + # Make sure the latest headers are built for Documentation Documentation/ samples/: headers_install %/: prepare FORCE