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 D71E0C4332F for ; Fri, 18 Nov 2022 19:53:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229451AbiKRTxY (ORCPT ); Fri, 18 Nov 2022 14:53:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231814AbiKRTxX (ORCPT ); Fri, 18 Nov 2022 14:53:23 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFFBDB8F85; Fri, 18 Nov 2022 11:53:22 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 888BB6251B; Fri, 18 Nov 2022 19:53:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51275C4347C; Fri, 18 Nov 2022 19:53:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668801202; bh=jCvzmbRIXG2v1BOityBLpJImGOs/YCfsYemgrFfs7aA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sbJP75T3jcPRTR/gj908EXIbYcArqm1r3Zd30/w7+muYa8r8fBi5VKZuknJ6+i2WN Ay3MhiWJDrXTOfqhLn8J4MRNxcmNxUEN9YufITNGnMEoUOuDVNpp3RUO2/Zftr76Yf sNmxcR86NTp2JROrtlHM/eBUsNoMiXJ2qnUgdN2tL+euM2CJY5D1QZdWpNfsYHAAoj VXZ1wCLoT85T9wEPrrebSD0zojMLfXkHnnQ3uIw1pyDzxyHFMGgG9ftEr6lIXdqbIM NgQkmhx/37scwbSgv63LST3wr9m39jvqG/unz7OY6vmbTi3qMy4aUwmmNw9DEF1sbC 5y81cPtJISopQ== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 6/6] kbuild: check Make version Date: Sat, 19 Nov 2022 04:53:07 +0900 Message-Id: <20221118195307.86049-7-masahiroy@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221118195307.86049-1-masahiroy@kernel.org> References: <20221118195307.86049-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 93e5749ace55..979363590bd7 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