Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7514320rwb; Wed, 23 Nov 2022 07:26:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf4GNj1r4xYlpzISGL6wX7Yvta5ZsUA47apYl1tGrCUx5/WqqL0xtf++MJr0YB63CJDCbMBg X-Received: by 2002:a05:6402:530b:b0:461:f919:caa4 with SMTP id eo11-20020a056402530b00b00461f919caa4mr26219272edb.255.1669217205019; Wed, 23 Nov 2022 07:26:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669217205; cv=none; d=google.com; s=arc-20160816; b=GhZCXPDzJbK4N1x/uyIAUz5yRV15uJ6DKvQ/4aUSKQ1GKIZx7ApHNBAGHOX0tlrxAq EFO0u3Egg4g99FOolydAdxWpVrwrrTBBIFB7hiNwDns11AgIUUIUWFRyokqtWxhP9huq F6UgWx3vDwkgdC3zcg0yhgQU3MzPJ1D8JiwR6pKVWIosoNqctLkQ218GD7pRTVPsbBzV HdJHVnH9RFnsIHfFplNmXUaKuNn/0aCmM3f4fb8u4jmXyXvTpMHVuOFq8uaLuEAWq5ZO 37V/pgrosVt88znIYaRz7kQPMAyn/Z2Ng86tSbUNwoE7GvJDhLN5JeT5N9puXw9j5Bqj vdsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YTXMBgOPNlgcqMhaYtEv4KQRqBIwK6lbzD8+tTGqLTI=; b=avBqG/LqdOIpQ+5aYLN8vONj6PWlDybQm1E/kKSWVOLKqVEImE87k9TJ9Vhd38ILdx lyxmiGi1U7uDnlDhg1H8EhbKw4/FV+TPFAit9H0R6k0WpozsgaLw73UmQp1BZDpn3dkt x4/R3KzDst0HD7lApmgveHxG9rvHbMWZg2H4vJBcNBNrF+Rf0rvwAaxSXG+xUmvHqpqn AsY6ZNcLfIJWYRaTz2f9u6Ge0i4yYI2SrKSW9/UKZETuOaY4j5DBsjm5Uu/InZk+ECuC 59p7xyXhXonoQLRhv978CGRSbuyyojGuvjjd9tXydczVb1S7+qdYJTAF8avuveH5Fc3D 39gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MaWBZskk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs13-20020a170906dc8d00b0078db3ae83d0si11679151ejc.3.2022.11.23.07.26.22; Wed, 23 Nov 2022 07:26:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MaWBZskk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238655AbiKWPTr (ORCPT + 88 others); Wed, 23 Nov 2022 10:19:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238645AbiKWPTj (ORCPT ); Wed, 23 Nov 2022 10:19:39 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF88549B64; Wed, 23 Nov 2022 07:19:30 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 9A394B8201C; Wed, 23 Nov 2022 15:19:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37EFBC433D6; Wed, 23 Nov 2022 15:19:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669216768; bh=TYgZT0UGUrDb3jnlRqypuUU6uixbw+w0KmXfqkCj/Ww=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MaWBZskklIpI/JB9pyv3uj9JVrxpNthVMW9OCVg7JdlrPm9I3l5wStLREBgY7yIDu KseZCUv4wY/W0yY1wOB1ULSvVHI6TANy2oA2l85bV/Oy8FeUMjJtt5Btq696yki63v PZ61+M+vkL35h2ZQURwb6osKWB49ru7xvolIUfH4RRcjnrFB4NGghDLAF901N6C5FI MvsOn7s8b9a6Ni0Uu8Fw1aOYQDcMajS4xVut8GplZhtEzyVvu0BLWTH9pshEQrLISF bZ+voy/9gzYZ+v0GWkUikRJTWKun5uY90RiJpEEh6th86OgHUzUXrtO7A1D+NHpiN7 cyaTUqXthK6Iw== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier Subject: [PATCH v2 5/5] kbuild: check Make version Date: Thu, 24 Nov 2022 00:18:28 +0900 Message-Id: <20221123151828.509565-5-masahiroy@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221123151828.509565-1-masahiroy@kernel.org> References: <20221123151828.509565-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is implemented based on test-le. It will work until GNU Make 10 is released. Signed-off-by: Masahiro Yamada --- (no changes since v1) Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 60ce9dcafc72..797fafbc1b45 100644 --- a/Makefile +++ b/Makefile @@ -368,6 +368,9 @@ else # !mixed-build include $(srctree)/scripts/Kbuild.include +# Check for the minimal Make version +$(if $(call test-lt, $(MAKE_VERSION), 3.82), $(error Make $(MAKE_VERSION) is too old)) + # Read KERNELRELEASE from include/config/kernel.release (if it exists) KERNELRELEASE = $(call read-file, include/config/kernel.release) KERNELVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(SUBLEVEL)))$(EXTRAVERSION) -- 2.34.1