Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp826958imu; Tue, 20 Nov 2018 07:33:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/VgcS0WjL5pd/nbhBEY/A6EXijbe6I2RN0VV3w3fNRb82pDnmQ4HLKNlsBWYiLPN7fwBybS X-Received: by 2002:a17:902:2c03:: with SMTP id m3mr2595467plb.6.1542728000594; Tue, 20 Nov 2018 07:33:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542728000; cv=none; d=google.com; s=arc-20160816; b=UcOUcPxPajIICjGBsH8gKchN9afwwpoqf3yGh/6QmC+t2YblNZszkLI316GgiOvb+g Xjo8ksnWQMHzoygfrKYzLKokMdIJYCAH+0ofOBmObOlt2L6KsiVUuDBgodj3dT/hCCpo 4zfxh1/uIN+Ey/arVhRqzQRinF6Cw7C3kQYFz+vJbV6yQX0YkZAm5FrENuWY9nhCKJcb or7lAixFMaZMAmVSoHhZHrtVpu05dmGQ4WCSLaVWx0jPiu2dKvSDa3wr25ClilTbtm7p ctH6KWbQTe/vaow+B8TnADXJs+coSIMjZOV7C1vewmMB5nccEJ+xiaHreqf4bqIt8Tec PkkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=lVBmtwwqVwNvV5x4I0/8R9EFwiwPoWd/NtUCJbvcdr8=; b=vQgEAcroSzp7Y5T0kRpZnHzDMCzmltmj6lPC1lXMBlxRsoGDpeNW1TC0mnp7TxBqSA AtS/CoQ5rP2O7Q4QXUSPkyBIkKCcg3ez77ac3GhHs1IvgOGMueTdTvTHFbbB413yI2Ge fbXw7iN9j7z+p3fOQR2NpHYfx84fsN/tHeXUqsMZL+8gYxcH6Eo6xAvBMLQaQKTzau5D +mHlIrNNdKP32aB9REYFwvSu/eDi53ijHE/RKB+eU0r/AvjgLA/eaYvwMBFL26vB2Wly sDg4yeW1VJiiXAKTu+XeQ3j0A9Jc4uvMNswjCXf5maU+l6x5HFVLkDi7VJX6m7r8vzjw lJpA== ARC-Authentication-Results: i=1; mx.google.com; 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 q8-v6si2899714pll.142.2018.11.20.07.33.05; Tue, 20 Nov 2018 07:33:20 -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; 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 S1727860AbeKUBio (ORCPT + 99 others); Tue, 20 Nov 2018 20:38:44 -0500 Received: from mail.bootlin.com ([62.4.15.54]:58270 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725917AbeKUBio (ORCPT ); Tue, 20 Nov 2018 20:38:44 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 5E7BB2074F; Tue, 20 Nov 2018 16:09:06 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from bbrezillon (91-160-177-164.subs.proxad.net [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id F1DAA206D8; Tue, 20 Nov 2018 16:09:05 +0100 (CET) Date: Tue, 20 Nov 2018 16:09:05 +0100 From: Boris Brezillon To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Sam Ravnborg , Marek Vasut , Guenter Roeck , linux-watchdog@vger.kernel.org, Wim Van Sebroeck , linux-doc@vger.kernel.org, Jim Cromie , Jonathan Corbet , linux-kernel@vger.kernel.org, Michal Marek , Brian Norris , Richard Weinberger , linux-mtd@lists.infradead.org, David Woodhouse Subject: Re: [PATCH] kbuild: announce removal of SUBDIRS if used Message-ID: <20181120160905.5fc4ba4a@bbrezillon> In-Reply-To: <1542726258-8418-1-git-send-email-yamada.masahiro@socionext.com> References: <1542726258-8418-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 21 Nov 2018 00:04:18 +0900 Masahiro Yamada wrote: > SUBDIRS has been kept as a backward compatibility since > commit ("[PATCH] kbuild: external module support") in 2002. > > We do not need multiple ways to do the same thing, so I will remove > SUBDIRS after the Linux 5.3 release. I cleaned up in-tree code, and > updated the document so that nobody would try to use it. > > Meanwhile, display the following warning if SUBDIRS is used. > > Makefile:189: ================= WARNING ================ > Makefile:190: 'SUBDIRS' will be removed after Linux 5.3 > Makefile:191: Please use 'M=' or 'KBUILD_EXTMOD' instead > Makefile:192: ========================================== > > Signed-off-by: Masahiro Yamada > --- > > Documentation/kbuild/kbuild.txt | 7 +------ > Makefile | 4 ++++ > drivers/mtd/maps/scx200_docflash.c | 7 ------- For the docflash driver Acked-by: Boris Brezillon > drivers/watchdog/scx200_wdt.c | 7 ------- > samples/connector/Makefile | 2 +- > 5 files changed, 6 insertions(+), 21 deletions(-) > > diff --git a/Documentation/kbuild/kbuild.txt b/Documentation/kbuild/kbuild.txt > index 8390c36..c9e3d93 100644 > --- a/Documentation/kbuild/kbuild.txt > +++ b/Documentation/kbuild/kbuild.txt > @@ -81,12 +81,7 @@ KBUILD_EXTMOD > -------------------------------------------------- > Set the directory to look for the kernel source when building external > modules. > -The directory can be specified in several ways: > -1) Use "M=..." on the command line > -2) Environment variable KBUILD_EXTMOD > -3) Environment variable SUBDIRS > -The possibilities are listed in the order they take precedence. > -Using "M=..." will always override the others. > +Setting "M=..." takes precedence over KBUILD_EXTMOD. > > KBUILD_OUTPUT > -------------------------------------------------- > diff --git a/Makefile b/Makefile > index 370d13b..57be5fb 100644 > --- a/Makefile > +++ b/Makefile > @@ -186,6 +186,10 @@ endif > # Old syntax make ... SUBDIRS=$PWD is still supported > # Setting the environment variable KBUILD_EXTMOD take precedence > ifdef SUBDIRS > + $(warning ================= WARNING ================) > + $(warning 'SUBDIRS' will be removed after Linux 5.3) > + $(warning Please use 'M=' or 'KBUILD_EXTMOD' instead) > + $(warning ==========================================) > KBUILD_EXTMOD ?= $(SUBDIRS) > endif > > diff --git a/drivers/mtd/maps/scx200_docflash.c b/drivers/mtd/maps/scx200_docflash.c > index f1c1f73..7f1a0e6 100644 > --- a/drivers/mtd/maps/scx200_docflash.c > +++ b/drivers/mtd/maps/scx200_docflash.c > @@ -216,10 +216,3 @@ static void __exit cleanup_scx200_docflash(void) > > module_init(init_scx200_docflash); > module_exit(cleanup_scx200_docflash); > - > -/* > - Local variables: > - compile-command: "make -k -C ../../.. SUBDIRS=drivers/mtd/maps modules" > - c-basic-offset: 8 > - End: > -*/ > diff --git a/drivers/watchdog/scx200_wdt.c b/drivers/watchdog/scx200_wdt.c > index 836377c..ec4063e 100644 > --- a/drivers/watchdog/scx200_wdt.c > +++ b/drivers/watchdog/scx200_wdt.c > @@ -262,10 +262,3 @@ static void __exit scx200_wdt_cleanup(void) > > module_init(scx200_wdt_init); > module_exit(scx200_wdt_cleanup); > - > -/* > - Local variables: > - compile-command: "make -k -C ../.. SUBDIRS=drivers/char modules" > - c-basic-offset: 8 > - End: > -*/ > diff --git a/samples/connector/Makefile b/samples/connector/Makefile > index fe3c854..6ad7162 100644 > --- a/samples/connector/Makefile > +++ b/samples/connector/Makefile > @@ -14,4 +14,4 @@ HOSTCFLAGS_ucon.o += -I$(objtree)/usr/include > all: modules > > modules clean: > - $(MAKE) -C ../.. SUBDIRS=$(CURDIR) $@ > + $(MAKE) -C ../.. M=$(CURDIR) $@