From patchwork Sun Jun 17 00:07:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 10468103 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DBE4E60532 for ; Sun, 17 Jun 2018 00:08:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CA52328AEC for ; Sun, 17 Jun 2018 00:08:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BCF6A28AF7; Sun, 17 Jun 2018 00:08:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D68DD28A48 for ; Sun, 17 Jun 2018 00:08:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756976AbeFQAIT (ORCPT ); Sat, 16 Jun 2018 20:08:19 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:58218 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756939AbeFQAIS (ORCPT ); Sat, 16 Jun 2018 20:08:18 -0400 Received: from grover.sesame (FL1-125-199-20-195.osk.mesh.ad.jp [125.199.20.195]) (authenticated) by conuserg-09.nifty.com with ESMTP id w5H07Em6031999; Sun, 17 Jun 2018 09:07:15 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com w5H07Em6031999 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1529194035; bh=qttswublYIxKlQXb5xDiAdgenLXL5qiCO3yLLh1JdgE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AS3Iki2ajojegMrh+zijcgy9LiBpXxtq3iUnXEg431eh6wMMkocK0G8c1zoTBOxg5 9Oqa5kiCbJy8HtkhuxVbRv+Dm7sbEr2YWcKTutYaBK1hEiy7EY1Zolw38nywQeLOfa Sbvm1YjyZ2Hue8vYEmo/EXthAAP9EhjDKd0PKBzodvwn58zjKFeNy/Y/WuUnW6y5Ih LxfqO8oZGxoVShga8AzXx9DMPPs0yq876dlxVjiynZxaBWXZVWvcada+mi21hosSKG fq4yUnD0ryaxsZEqMCXVQhRHLoUCAhfypBASLIhcqpjukaNP4rgCdBaTgLNsVF0fgX /z0tcDA10B0MA== X-Nifty-SrcIP: [125.199.20.195] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Sam Ravnborg , Linus Torvalds , Masahiro Yamada , Michal Marek Subject: [PATCH 2/2] kbuild: do not update config for 'make kernelrelease' Date: Sun, 17 Jun 2018 09:07:07 +0900 Message-Id: <1529194027-15752-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529194027-15752-1-git-send-email-yamada.masahiro@socionext.com> References: <1529194027-15752-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 'make kernelrelease' depends on CONFIG_LOCALVERSION(_AUTO), but for the same reason as install targets, we do not want to update the configuration just for printing the kernelrelease string. This is likely to happen if you forget to pass CROSS_COMPILE when running 'make kernelrelease' in the source tree configured for cross-compilation. Signed-off-by: Masahiro Yamada --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f934a81..f4fecda 100644 --- a/Makefile +++ b/Makefile @@ -225,7 +225,8 @@ no-dot-config-targets := $(clean-targets) \ cscope gtags TAGS tags help% %docs check% coccicheck \ $(version_h) headers_% archheaders archscripts \ kernelversion %src-pkg -no-sync-config-targets := $(no-dot-config-targets) install %install +no-sync-config-targets := $(no-dot-config-targets) install %install \ + kernelrelease config-targets := 0 mixed-targets := 0