From patchwork Wed Nov 15 09:19:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 118922 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp3270553edl; Wed, 15 Nov 2017 01:21:06 -0800 (PST) X-Google-Smtp-Source: AGs4zMaHQ3q+kvOydvGWJKlv5EKUVroqW6+hIV/9Kp1+w31MK4Ohd9vwx/ifl1Ix3hnlBwLsHXcF X-Received: by 10.159.206.193 with SMTP id x1mr15509062plo.319.1510737666775; Wed, 15 Nov 2017 01:21:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510737666; cv=none; d=google.com; s=arc-20160816; b=OWWzpZ7bkPmv9HMhN5gl7+8LZSE8pZJGFHBAqd5ZAMkiJ8N1PBu4okvJFj7zjojbG8 MsgIeUsvuZiahk6bqDtTVdD2a+0PiB21KEeGhUzkkehkQqGqMXrqF48GdYxH9mMSznac PMAeGDV1oVxIrBGkZ9P+1OXdHVUWyUEiSBGoBTRx/SQa6GVjwNHV5+brUW29a1jnKgY6 yC9jrzbe4wJPq7ytQN2SwFTGAgJH5rAIHDrTdAwnabP3fZsekGf/cFLimtDGcJ7ao49J RlxiXL+tHlTubfGsNDxfZrnWE5PhADftgcOEbSpE9rpHDl1C3uc+H4oadnlSwrYHwp6D 8olw== 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:arc-authentication-results; bh=/E0mmq643sutjAALVEaxjUj9TIv87BIqr6/DruP2ykE=; b=0Bu+yZLsF3EfTid47n+rVXFiIVRnBL4cwDnn3tWqqNm4sCttNUwN0vY+HJ/Vuv/nhd hrt2r+SibSWiUVyocW0h8TKDTxnGrVVrX3u9j0I8j3KLu2f66oc7byiHpS5m3kjE+T/u ShgeAQvUwuPkq87aM6sGf3vVmkwYJuF3RqKbAhboCuVTE5LHfVnoe3W5IBoWIWQY29nS d9p5cRjet9pG4QkV1EvKz64Ul24c6PA0mVtuiXDMERR/47MnNDBjBU/ignpDap0EPqmF Kzn/Jlz9UxCbDTgfm9GNxQ3wuJ+iFMQs2zxSZud1CtFKv0lWLa2TLY98umd1k0nj6wB3 ckuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=de9oDqWG; 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 r8si17366633pgq.305.2017.11.15.01.21.06; Wed, 15 Nov 2017 01:21:06 -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=de9oDqWG; 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 S1756870AbdKOJVC (ORCPT + 28 others); Wed, 15 Nov 2017 04:21:02 -0500 Received: from conuserg-11.nifty.com ([210.131.2.78]:25523 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752787AbdKOJUw (ORCPT ); Wed, 15 Nov 2017 04:20:52 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id vAF9JONe017994; Wed, 15 Nov 2017 18:19:25 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com vAF9JONe017994 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1510737565; bh=/E0mmq643sutjAALVEaxjUj9TIv87BIqr6/DruP2ykE=; h=From:To:Cc:Subject:Date:From; b=de9oDqWGhQXOOPMK3Ht5aYBzdKEnhJTQZn/foghe/28RiD9bm9wL0LZnsFPvQ95BC bV7F9GO8T1Myt7ueLhshANwi0ZonePp+LZKif22y/SuTO/Ah7MVh0Rp6WddZ4DfDao EmtAMYq/IZIm4CCH0vSsNF+jzCKp/SUPivRZ+0g4vcDEzbxx5vI7dgoCjMyYu+AOp2 glOU+lrvwG2CvajXZ/aqpOCBq2MI758dx82ApnoksZM8cYAmhQWVssgy3yokzpzTJE l1Z/lDwOxYgGl/dqRU9BCDtx+zrc9Kr8Q3OOiUQIyz/GkrNcK/ppWlNgA590lVI5Rd RVKlKYRjELN+Q== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Sam Ravnborg , Michal Marek , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH] kbuild: rpm: prompt to use "rpm-pkg" if "rpm" target is used Date: Wed, 15 Nov 2017 18:19:20 +0900 Message-Id: <1510737560-12643-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 The "rpm" has been kept for backward compatibility since pre-git era. I am planning to remove it after the Linux 4.18 release. Annouce the end of the support, prompting to use "rpm-pkg" instead. If you use "rpm", it will work like "rpm-pkg", but warning messages will be displayed as follows: WARNING: "rpm" target will be removed after Linux 4.18 Please use "rpm-pkg" instead. Signed-off-by: Masahiro Yamada --- Makefile | 5 +++-- scripts/package/Makefile | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) -- 2.7.4 diff --git a/Makefile b/Makefile index 37aafbd..c01763e 100644 --- a/Makefile +++ b/Makefile @@ -1336,8 +1336,9 @@ package-dir := scripts/package $(Q)$(MAKE) $(build)=$(package-dir) $@ %pkg: include/config/kernel.release FORCE $(Q)$(MAKE) $(build)=$(package-dir) $@ -rpm: include/config/kernel.release FORCE - $(Q)$(MAKE) $(build)=$(package-dir) $@ +rpm: rpm-pkg + @echo " WARNING: \"rpm\" target will be removed after Linux 4.18" + @echo " Please use \"rpm-pkg\" instead." # Brief documentation of the typical targets used diff --git a/scripts/package/Makefile b/scripts/package/Makefile index c30bcf8..c235349 100644 --- a/scripts/package/Makefile +++ b/scripts/package/Makefile @@ -45,7 +45,7 @@ rm -f $(objtree)/.scmversion # rpm-pkg # --------------------------------------------------------------------------- -rpm-pkg rpm: FORCE +rpm-pkg: FORCE $(MAKE) clean $(CONFIG_SHELL) $(MKSPEC) >$(objtree)/kernel.spec $(call cmd,src_tar,$(KERNELPATH),kernel.spec)