Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4965122rwb; Sat, 10 Dec 2022 19:48:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Wh8Msvf+XOdjt5n3OIT5x4TjCpsXAkiPtGiAOne40Ss+vbNhjcHfWmOLoGJVGGQ5RtlEu X-Received: by 2002:a05:6a20:101d:b0:aa:23f9:7314 with SMTP id a29-20020a056a20101d00b000aa23f97314mr21092766pzd.46.1670730508982; Sat, 10 Dec 2022 19:48:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670730508; cv=none; d=google.com; s=arc-20160816; b=P8Mclvn3e0KIXSTcHiDD++h4UrjbVoKAMP0Z42ZCYY9kXYXcNFRkFny4EVB6rff4lr peUmqERZHHHIjVnhADrwuH7sLCTbx4VkbKqgM4GjSVkq+6/S/waVXPws17IKSrw9haen fM6x7NAKCju2uR3Fm5FPw/1kjTpg9iSpF0Oi2t5Y2ttVksN9FDr+WSLACxLu2CyqW4JY tFpeFjAhRTiPKNr78UFF84r2GtFqrNSZOAFpuBn/JT3zWOx1A3p4uPJV+0JGeE+sMSaL ivZ+d6LhSp8ZPDfoeOfVSGv+vTh6GcGfuAnHnIkd9Z3CgFtq4LNRMXVLZL2XANYONG54 IKdw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=uJFXerKNyvEfn7d5vanhGOL40C09ySFmgUv+3KWdq58=; b=HVQnk3eVfaDhtq3M+JSlKFzxfGQFzaSWBZ4gJkxSlQhZzyy5+JawIwIG/Am8MjlhoC yyMTHlzAOE+xUZ5lQppGN7kSsrKnzefAogr15XQfMqYZjJy0Mk4foZk2WWYuhxiSL8lV Z+BM3w1ZAdaEcuVKsxTUa5ni0ZtPLz4k/GjWnzqQ0J+AWyLIip4WvMkhoBqm0PEme/qo G7yarJZi2gYPdixG/nkXDcmaKMGghk5UblgTAtHqVuersULPXuP/Q1ny+su2bu/xCzTk RnFg8wp4G7APJCxldFg1nfquYvrh9adbz88dzRwyhHi/DMILuZPb1Ud2fnkP7QQTQTlV xnSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cIJtLunh; 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 n68-20020a632747000000b00478b771fa15si5878113pgn.232.2022.12.10.19.48.17; Sat, 10 Dec 2022 19:48:28 -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=cIJtLunh; 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 S229777AbiLKDEE (ORCPT + 76 others); Sat, 10 Dec 2022 22:04:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbiLKDEC (ORCPT ); Sat, 10 Dec 2022 22:04:02 -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 0B2D8FD37; Sat, 10 Dec 2022 19:04:02 -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 BBC84B80937; Sun, 11 Dec 2022 03:04:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 13B32C433EF; Sun, 11 Dec 2022 03:03:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670727839; bh=KRNswHAYO1IcuR9kG0iBZlhOuhjVaWb06YuN0ImwPlE=; h=From:To:Cc:Subject:Date:From; b=cIJtLunhw2FQPzxttbW8f+vSGCrdQiBhGtcgwyNa6vH/80dogQvDn3eDg0d4p45nV /GDnjqqHgwbrFLkdC2pZofiaByQrBWWT7SOjUf6PmB3Kbsib5d9vMIva32cTVTwI38 KWEE2cWUhKPQCCwJROjnYlUej+mlGyK12hyq+VpqQGfwnjIBxVCMZPQB0dQV8PBKm8 F4cbP4IujgmRZ39TRQr44r70fogKnMqC2dTNnGAF9pb0ns6kWEAc8sh4pN9XNV0MK0 7H23efSSwnevuGV05ag2WMTwLaPL2aDUoBFVEaPH695IyBAtlLIRe9y/b3xzcXPX2k BEJihBtEgnZrA== 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] kbuild: ensure Make >= 3.82 is used Date: Sun, 11 Dec 2022 12:03:52 +0900 Message-Id: <20221211030352.2622425-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.34.1 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 Documentation/process/changes.rst notes the minimal GNU Make version, but it is not checked anywhere. We could check $(MAKE_VERSION), but another simple way is to check $(.FEATURES) since the feature list always grows although this way is not always possible. For example Make 4.0 through 4.2 have the same set of $(.FEATURES). Signed-off-by: Masahiro Yamada --- Changes in v3: - Check the version in a different way Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 2dda1e9a717a..66dfc5751470 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,11 @@ NAME = Hurr durr I'ma ninja sloth # Comments in this file are targeted only to the developer, do not # expect to learn how to build the kernel reading this file. +# Ensure Make >= 3.82 +ifeq ($(filter undefine,$(.FEATURES)),) +$(error Make $(MAKE_VERSION) is too old) +endif + $(if $(filter __%, $(MAKECMDGOALS)), \ $(error targets prefixed with '__' are only for internal use)) -- 2.34.1