Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp826826imu; Tue, 20 Nov 2018 07:33:14 -0800 (PST) X-Google-Smtp-Source: AJdET5dQYdMDsoAUcrWzjvwXOLhLsypaT2VWLO1dgqDsR+FERK0OvvQqP9Gm2Nt6Q6AHq4QaBEWQ X-Received: by 2002:a62:6143:: with SMTP id v64mr2663117pfb.142.1542727994118; Tue, 20 Nov 2018 07:33:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542727994; cv=none; d=google.com; s=arc-20160816; b=crfoYaImpUCTOsrmlU1Sn3HNMoJrDyzD/q52reoThaWE/wK8K7eP3OvKfOTBaehQ8+ TzAaQhUSiF6yypsJHoSZd2d/gWWlgxjTAwURTCyHNlsP5BNity4ez2WIIy6AXmFvLu1U p5+bU5RdYihFS7us8AxTiYPrGbTiABkn7Hz0srMQ4+qZuhlg8W43DP6uIu/ga8NxolHj HmsqQwUNC7licN0iJreOdmwb27z5tmvg5ku4hmhD0/1q/8PNiZ7PtJz3Iu760gJreEre LHtmrp8duh2rzSnNX7ILqs6JuxG0tUXSRLd7QzCy/Mzv5gvhu0XqEbz8nVQUeT5KZ/nH s0gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=FEX7CPJ1IdIlEA+PQX4kbY3pAwX/D3w2IYYnEjF/3Xc=; b=Z+H9F4t4FEukUzvkK3WhhVXVXH18CNRarMof8W2njFXFnxOhMV6j1cUgnSCKE7AET4 vRNhZkHwsfVbMP5j31kJConL/Yt3qcAhuqH47meDWn0V6w3zFZ0KzhCwxMK2aRtVIxpM PT12vm447ZPRtAHdP08clo5LoQXMzp9r+P7QnuaTv6GT5xWOYPU3VrrjghZnSD/lHmzQ 5JnXGKkSCvemxUumv8uk5h7PonIqAKKFctNc3b3Kzv25/Yi+7HiG6egagZ4NB1ahNZ6O 60CTlp5xV13VFSlS/abd1ld0Nxl0fOh0CL7NROqib8Hyl0GJ6V+83kJ/6nUSCx1tRTDh StLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=uAQ+B47v; 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 f124si12881418pfa.1.2018.11.20.07.32.59; Tue, 20 Nov 2018 07:33:14 -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=uAQ+B47v; 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 S1728115AbeKUBgn (ORCPT + 99 others); Tue, 20 Nov 2018 20:36:43 -0500 Received: from conuserg-10.nifty.com ([210.131.2.77]:24496 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725851AbeKUBgn (ORCPT ); Tue, 20 Nov 2018 20:36:43 -0500 Received: from grover.tkatk1.zaq.ne.jp (zaqdadce369.zaq.ne.jp [218.220.227.105]) (authenticated) by conuserg-10.nifty.com with ESMTP id wAKF4dmo007142; Wed, 21 Nov 2018 00:04:39 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com wAKF4dmo007142 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1542726280; bh=FEX7CPJ1IdIlEA+PQX4kbY3pAwX/D3w2IYYnEjF/3Xc=; h=From:To:Cc:Subject:Date:From; b=uAQ+B47veuLgovvtzP6eCcX3Htqj4ymm/elBhODUyKzCfmD2xoWIwQAQ2KQK1c2au m+U1HDGDczrjvn4PxoTNmzXnbtG2tRQRH4aikxJ/ueiT+vQwYJPB8QB9+LgtXQGcQt EzH0z/thPUHMTfsTWVrT2D9fX8hX1fzNVveSCKcxAW4ioywL5kw03Y1l1WS+fi0Uwc 37ijQ/74jJzSSwZjxeKydyNUdcuNYIf4iM3FIQgGQvzvojXXKig5wZIC+JE2zNxlzh Sc9eAw/Q5S5BV1mnktlGrFivm5Mi1XiZ9Ys9g8nKJDjYnQG0HHzctZWEh9lk8YyG7C Dy+q0lxFidbNQ== X-Nifty-SrcIP: [218.220.227.105] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Sam Ravnborg , Masahiro Yamada , 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 , Boris Brezillon Subject: [PATCH] kbuild: announce removal of SUBDIRS if used Date: Wed, 21 Nov 2018 00:04:18 +0900 Message-Id: <1542726258-8418-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ------- 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) $@ -- 2.7.4