From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C51F3C4332F for ; Wed, 23 Nov 2022 15:19:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237901AbiKWPTs (ORCPT ); Wed, 23 Nov 2022 10:19:48 -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 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