Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3201139imu; Fri, 23 Nov 2018 23:59:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vr8Yjl7EIOoGGXJolaRrmCVl6x4NISl5uC6dv2YAbekd9kswvMrpeyHUjXlK7ZlUjsKSUs X-Received: by 2002:a17:902:704b:: with SMTP id h11mr4228118plt.157.1543046390003; Fri, 23 Nov 2018 23:59:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543046389; cv=none; d=google.com; s=arc-20160816; b=aBdV8bzhq4LpsfuwGq8KC5fJrNhfxIfpgZDK8a7d0aKkfoEoRd8JFKRcY/cguzhLHx PoE+JBR3+B0U+Otv6dCsGkwWuWdIWEqMm5gC92WpR9+D2BmO87d194gGTqZWNVyR2XOk NHY7LyMRAavlHQ3bpxv1sT984SDCywodDuGSWzDHJ45rcG3xptKFwxRhxQqu34qVC+bh jFw81C8FbvKmxZBvK1rjb2GDuE+ELnSN5jRc0zH50pyrgnceNwT1Cs8TmyM9nwPyJiMH uUEs4ZzW8bNVdZBefMIK44lCaIoFqjlhrk9KiT019v8yBsnQLRwg85AtP+4RnJqIzMOH IpsA== 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=rjSEgBVNK/gpelsn4q8187smIXI2eDzmxWKFg5to3H4=; b=hW6frqpqG75urIAnraU12xpXn88RpjqPZCzgoTLMfaTYA6sdYM8+EpiMC0TPlcWWGD eGMjni+XaIxLz+kP0a3XrUTEDV23wN/9KRdPbVCMO9TRkizLmjtRQe+hYx8omGz947iL RFVwbLb2n3onogxcKcgEPXrlbysn4flrIriqGi0vSe00/fYvmHWjkg6YY4veIxY4baWX YLPP0dhcPUcPIEnJBatVJu+E4lU77uz2kds0rK2Yx7vOEmI0nvMJ/9iIbga0SpH8S4Qg ucogrusPu/9SmKN+fmDJMF2kL1puh7txKOH8f9w+PE9liiTRnbUC085n/KgUsS5fkJQa LLiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=P6mlD+Md; 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 b2si54764422pgq.275.2018.11.23.23.59.35; Fri, 23 Nov 2018 23:59:49 -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=P6mlD+Md; 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 S2408183AbeKWPqt (ORCPT + 99 others); Fri, 23 Nov 2018 10:46:49 -0500 Received: from conssluserg-01.nifty.com ([210.131.2.80]:50187 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408172AbeKWPqt (ORCPT ); Fri, 23 Nov 2018 10:46:49 -0500 Received: from mail-vk1-f178.google.com (mail-vk1-f178.google.com [209.85.221.178]) (authenticated) by conssluserg-01.nifty.com with ESMTP id wAN53lcb001007; Fri, 23 Nov 2018 14:03:47 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com wAN53lcb001007 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1542949428; bh=rjSEgBVNK/gpelsn4q8187smIXI2eDzmxWKFg5to3H4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=P6mlD+MdlyhLZ1OM1gxjCAOhGaVpnhLkbRQo0k7JJdxcN4j4DLfTsCSbqeuOXmpwl n4OPM6pcZOtH4N42nCr81KHV+oSPMAZfo6UllwL4GPLa0cTkHyqBXO3ZwfVYN+NlkV tYuIH4ucrVHhAVMWLVrkUDKLP4NOf7umRYtLr0l/2jda+pgC/X0WhUjpZz8lFjQjEZ tD7bxBtqa9TgqhtMT1KFJjkNBeLb+Es/mxefHhEX+Bu3nm2KFU3LizZeBEeQakbRM3 i7JOMQ8sZp2QSN3YLtGufLeHMX+RVPTk8BxEPltI0Nk1XFcIliRDEnRIx5e2m02VqX YhPJXpqHoJReA== X-Nifty-SrcIP: [209.85.221.178] Received: by mail-vk1-f178.google.com with SMTP id t132so1654498vkc.3; Thu, 22 Nov 2018 21:03:47 -0800 (PST) X-Gm-Message-State: AA+aEWYYiaIEdYy6cvMiJrY6xudlurad3E+N6obApVNjllo5UujJvqtR cm0R19LvMjzfXNnZVhKG1BI5RRymSeIPPK6Zrhk= X-Received: by 2002:a1f:5e47:: with SMTP id s68mr5416332vkb.64.1542949426569; Thu, 22 Nov 2018 21:03:46 -0800 (PST) MIME-Version: 1.0 References: <1542726258-8418-1-git-send-email-yamada.masahiro@socionext.com> <20181120162543.GB4765@roeck-us.net> In-Reply-To: <20181120162543.GB4765@roeck-us.net> From: Masahiro Yamada Date: Fri, 23 Nov 2018 14:03:10 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kbuild: announce removal of SUBDIRS if used To: Guenter Roeck Cc: Linux Kbuild mailing list , Sam Ravnborg , =?UTF-8?B?TWFyZWsgVmHFoXV0?= , linux-watchdog@vger.kernel.org, wim@linux-watchdog.org, "open list:DOCUMENTATION" , jim.cromie@gmail.com, Jonathan Corbet , Linux Kernel Mailing List , Michal Marek , Brian Norris , Richard Weinberger , linux-mtd , David Woodhouse , Boris Brezillon 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 Wed, Nov 21, 2018 at 1:25 AM Guenter Roeck wrote: > > On Wed, Nov 21, 2018 at 12:04:18AM +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 > > --- Applied to linux-kbuild. > > Documentation/kbuild/kbuild.txt | 7 +------ > > Makefile | 4 ++++ > > drivers/mtd/maps/scx200_docflash.c | 7 ------- > > drivers/watchdog/scx200_wdt.c | 7 ------- > > For watchdog: > > Acked-by: Guenter Roeck > > > 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) $@ > > -- > > 2.7.4 > > -- Best Regards Masahiro Yamada