From patchwork Fri May 19 07:10:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 100158 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp183246qge; Fri, 19 May 2017 00:11:19 -0700 (PDT) X-Received: by 10.99.9.130 with SMTP id 124mr8864672pgj.22.1495177879728; Fri, 19 May 2017 00:11:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495177879; cv=none; d=google.com; s=arc-20160816; b=wCE1pHxu/k5xPnb9sGHKHPQMlDrXWgbntncB1JJU7ZrbJwkUA0pUCGLTD/V7gC8Ex4 BvIfDx2sMltaxgWdCujhtaWBSV6RLwRdwBfqBKHYqy3H6Vt5xkOrm2xnAC9KcbPMuDLj Ud65etcSmRCR9wisIgwyPJFZh+rxMlselqbf23M5qVSqGzfdRlUmxlST/esGAOzxSUgu j1G/MisM2EMc2xgYO3HkOSdqiAMH4zrjH4OLrcXQuyFGGQujh1fIDW+oJpuIhwtg2a/t mJzEFu/TuBir0ELrJ+/2IYBW3z8d6t5taXloMvbHh9SaJfRhge3uY2LsstXVP1kePO5t x42Q== 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=oCSOKKwElFlV75X5fo8zaI6A6Z2HTGFPrE886jlMau4=; b=wR5t3yz8KRGNkRjuggFZObEtcsyezPEofx5ihCWlYqZRI/TW8sPlrcmhfQftrjpKGX rfq39Wzc+SuCb/sQWA98QEMUyp0ClDBTKi7GKs+IkQSB1Ns90zow6bb+f3sZ+RCT/VcU fQWozRNlcr1KIZsfJqySVooC7rcxdf9Q3hJwUryNqwy3Em4ZDEh3g1maZi+KVFqafypC HocK3KHrAH4C3eDK92UbCwXA/XjNNhz3+R9hzPfLsFps8qCF+x0BpmxNDdsU6u2MN6Y0 do25OjrDQhuGK3bl1NsFDxqhcmkKl91m4oNk+lKGptLIAry9aeoJWH5k8pmbsKoUdTR6 dWbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.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 j17si7471006pfj.239.2017.05.19.00.11.19; Fri, 19 May 2017 00:11:19 -0700 (PDT) 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; 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 S1752747AbdESHLA (ORCPT + 25 others); Fri, 19 May 2017 03:11:00 -0400 Received: from conuserg-07.nifty.com ([210.131.2.74]:23362 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751766AbdESHKx (ORCPT ); Fri, 19 May 2017 03:10:53 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id v4J7AB1M021337; Fri, 19 May 2017 16:10:12 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com v4J7AB1M021337 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1495177812; bh=oCSOKKwElFlV75X5fo8zaI6A6Z2HTGFPrE886jlMau4=; h=From:To:Cc:Subject:Date:From; b=BSitseXhZB+lEKMla7PxvwlNOrTwL3Nv9d5eho3IHbMk8sx4OXfV5hr726H421FgS MVhltfcUeuAWCVX6P7DSHEUcNuLvvdjeZ9Q2Zb4QwptOHhNt0j33spfTcMzR8CyNiI GbZTLorKw5Jgbj08sLf/PpZmCjvMf52hvUOL05/EshewkFoHfhqBDFHwoAu/7ygn7T 5YHjvTy0WTqbp9m3+Mws7nz3N2fbEEJRC0C2F5/6YyBfQDuLO3ZjMABGz/UaHZbU6J RoXYH/EpA3ccTxXRAgnlJVxXtlEO35n1+q/pFm/bsF8wTZD6Ef7ZBD6VgPPlLMc/0r eFGKdarD4+KMA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Thomas De Schampheleire , Thomas Petazzoni , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH] kbuild: add GNU Make version check Date: Fri, 19 May 2017 16:10:06 +0900 Message-Id: <1495177806-24124-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 As Documentation/process/changes.rst says, Kbuild now depends on GNU Make 3.81 or later. If invoked with older versions, it fails with an unclear error message. $ make defconfig HOSTCC scripts/basic/fixdep scripts/Makefile.host:135: *** missing separator. Stop. make: *** [defconfig] Error 2 Stop building with a clearer message: Makefile:16: *** GNU Make >= 3.81 is required. You are running version 3.80. Stop. I borrowed the idea from Buildroot. Signed-off-by: Masahiro Yamada --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.7.4 diff --git a/Makefile b/Makefile index d8b5c4230da0..5baaebf8f23a 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,12 @@ NAME = Fearless Coyote # Comments in this file are targeted only to the developer, do not # expect to learn how to build the kernel reading this file. +# Check Make version (note: this check will break at Make 10.x) +MIN_MAKE_VERSION := 3.81 +ifneq ($(firstword $(sort $(MAKE_VERSION) $(MIN_MAKE_VERSION))),$(MIN_MAKE_VERSION)) +$(error GNU Make >= $(MIN_MAKE_VERSION) is required. You are running version $(MAKE_VERSION)) +endif + # o Do not use make's built-in rules and variables # (this increases performance and avoids hard-to-debug behaviour); # o Look for make include files relative to root of kernel src