From patchwork Sat Nov 26 22:56:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 13056602 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 CE70EC47088 for ; Sat, 26 Nov 2022 22:56:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229686AbiKZW4r (ORCPT ); Sat, 26 Nov 2022 17:56:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229612AbiKZW4n (ORCPT ); Sat, 26 Nov 2022 17:56:43 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93130140E2; Sat, 26 Nov 2022 14:56:42 -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 500FFB80A36; Sat, 26 Nov 2022 22:56:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1ADDC433D7; Sat, 26 Nov 2022 22:56:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669503400; bh=1TveETKu7sAKWh+ej+xoHr1gzM/i4XbkZ6CR9I8Eia4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KkDBMd5kPkQdz5ZARbkK/WCiOsJ9+y5NCndrZ6R4AF+8PBvzMpmGGfyj5KOWacYmt sMAhzUN/71rXyWIanUbGX1AwycvLBN9o3zsIcaFbxdTHADU09z6cWP2XjVH3RX/uS0 UFAZcwqybSsiGjXcABxLM4j65dVmNqKDfw1Jhfw6xD5rvYTU0kSyslTOxvKwu/Hcuu 2UEM5dWiHiR3p4xBtUh2tl/NTYMNBavwZYfnrPvLkpSjQyPOYKzo2kTMKMZ8w45rl2 p0tVF47wPnq+K78P3dlgMelmha4kbO+zjC99iuGDVXI2C/1na9d+Xc6xFDPS72UXZW vOqofj2v/SgBA== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Nicolas Schier , Nathan Chancellor , Nick Desaulniers Subject: [PATCH v3 5/5] kbuild: check Make version Date: Sun, 27 Nov 2022 07:56:24 +0900 Message-Id: <20221126225624.751661-5-masahiroy@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221126225624.751661-1-masahiroy@kernel.org> References: <20221126225624.751661-1-masahiroy@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org This is implemented based on test-le. It will work until GNU Make 10 is released. Signed-off-by: Masahiro Yamada Reviewed-by: Nicolas Schier --- (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)