From patchwork Wed Nov 23 15:18:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 25047 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2855404wrr; Wed, 23 Nov 2022 07:25:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf5lG5iT1vKHiC4OtEGuseCtyNfG5PdC/r4WjfcM5Q5Rhzj8mrvF+eWIw0mqnttT5CM2MD+3 X-Received: by 2002:a17:906:60d0:b0:78d:3f87:1725 with SMTP id f16-20020a17090660d000b0078d3f871725mr8198852ejk.492.1669217129556; Wed, 23 Nov 2022 07:25:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669217129; cv=none; d=google.com; s=arc-20160816; b=TBh89MNAIoh/PtnLHLma+UHF/j8H46VWw2F3KYI2LYMSOD424cxC7f7ZP/ickePTfQ M/Bx2W/krTEw/JAoiOLdGUoV1kO12l1D5ossLjpB6Ikkydt9a4MDwOFLLndPj3L5soE5 8N3I6aEzLaiMbAnTmszbElWYD6LFDxXw5HtOm523PruZzzbPqASO154yMwEkvcDtzfH8 WzzlWcHGx3AOnr1kc6FgrRUdJfmeOvVYqut0uRF2En+wButpZXfeVj6WmYwo2l4chjWO bC1EnzyxghzmZtmDjeYH0QSo1r4aNR4vhujrL5fmKGl4glpgZfn/7HxX9iFocav8qZUs PKKA== 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 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.25.05; Wed, 23 Nov 2022 07:25:29 -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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750301021203227654?= X-GMAIL-MSGID: =?utf-8?q?1750301021203227654?= 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)