Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8117220rwb; Tue, 13 Dec 2022 02:22:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf6SyYTIp2kuMpjvKcL4tdPhqkGJ6YzEW03+NWPREYwl4iZXdvbzk7kKHuIy5X3IGhAs76X+ X-Received: by 2002:a17:907:d609:b0:7c1:4fea:cf2 with SMTP id wd9-20020a170907d60900b007c14fea0cf2mr11035455ejc.0.1670926930731; Tue, 13 Dec 2022 02:22:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670926930; cv=none; d=google.com; s=arc-20160816; b=uQBi//a+t2PokLdesIlKTEuuklbBG4OwAedsPgYcsACCighPAM+3u8Xxxdcv7Jvinl YBiutDnaC67Sn7tehdOgi2u/JyQHccGwvTYgyPHpLQ3sBxaucKdvUQA1rFIoWX0ve7sN ZbVOyaNWPb8Rc/NaBlMy7Y1dI9DIazKPmO7E9/a755/eCeejtEq6/lYGrZDRKnoqygu7 OMCosiwL97MejcWwHx1uQo/AC0PXQ1OJvdUm9oseOSYiKyVnVKso3fC+sPGQJT7BlU2E EEB/B+29SHu89gF/0Hio8o2t5dPqyigO2O0NUAN9zin0ssoH+CmRRGVAL4QcM0xWnTfn VrEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yeBceuz8OCIIwFWeJFUfSIxym84cGbYAENv1//aMfLA=; b=UDyBHmGBVJH8Ir+y0dvMvqQAtJawAvaOG0Z8XW8DDK7FES1TE5UVEUhwg0AUpWpH6h KIpuud8kKeo/VakeV6lOijJ9dWlch6P0VgQE88jzCIk40LfszokM2Ui1DDycpQ1Aeseg XKyQdXDVib3cg4+CjD9IoCIBnGB111MECwLPnWy0K8v7eOUvMJw6fd1svUPYVYjcecRT eXW3G9HYTkySUrMKWvH+Q75Zd6U0xXulWfLY5ToTgqMvfL8SNaAOFd1sbGUlX2t8aXoU DiApj5jdG0I8njDzZ4GSPrgSSFCmmrn8+7gFW00SPnw2RfTSTiYBAERgIrBNslvcgSGB AirA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fjasle.eu header.s=mail header.b=5j02RSyc; 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=QUARANTINE dis=NONE) header.from=fjasle.eu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa42-20020a1709076d2a00b007820aa60dc3si8857328ejc.74.2022.12.13.02.21.51; Tue, 13 Dec 2022 02:22:10 -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=@fjasle.eu header.s=mail header.b=5j02RSyc; 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=QUARANTINE dis=NONE) header.from=fjasle.eu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234690AbiLMKFr (ORCPT + 74 others); Tue, 13 Dec 2022 05:05:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231888AbiLMKFo (ORCPT ); Tue, 13 Dec 2022 05:05:44 -0500 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE44E1A22A; Tue, 13 Dec 2022 02:05:36 -0800 (PST) Received: from leknes.fjasle.eu ([46.142.49.245]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M5jA2-1oyzTl1Y2U-007Fcu; Tue, 13 Dec 2022 11:05:07 +0100 Received: by leknes.fjasle.eu (Postfix, from userid 1000) id DD9453C0EE; Tue, 13 Dec 2022 11:05:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fjasle.eu; s=mail; t=1670925906; bh=to4bs5gUDbfpV3AAxLoymUvOMM9J2nSWIXUajtMe3Ak=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=5j02RSycBJPPGPbxtCBeEwt4yyAxuZrOOqRD2oH0Iw1iTTnDIExgT4JJ/sdWy79lw lWHCtfSYfj5s9oKnFQNrMhFhBmZIrqK98IVoiehPl/qbqje7CID6m1NBLyQ5IipH3e sj/zpyRt3ZYo8OmbWJdqdjpyx4S7p14e1+0n9ORI= Date: Tue, 13 Dec 2022 11:05:05 +0100 From: Nicolas Schier To: Nathan Chancellor Cc: Masahiro Yamada , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Nick Desaulniers Subject: Re: [PATCH] kbuild: ensure Make >= 3.82 is used Message-ID: References: <20221211030352.2622425-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:TLaud2aU53BM9FaN1X4YF6U22AjkeFuENS6PaJSyONYhiZpyWSI z3rS545QbRJmQu8DuRoQ4cz6Be/q1OsgLlbfB9ioN/2iO8NujVmMrAsEFsny70Byf2c3X3b VzcEI84J8tiZk8AuF/ogM5ai5qo6vv8YbqJPg6JZgawxRpxvKNcSD0eJ75TDK1WsMB76c2n R4925g6nO5Y69AG7GLT1Q== UI-OutboundReport: notjunk:1;M01:P0:VLghQZ4PUcg=;C6jf9aSg8W4EoQ2iMAIFtRybbSR qzh7kRYZUipsDWLRA8JX7K6IDK33MO7xvsptCw9pt7ATTFCRE/kNDqugViJvvl28ZBE1eZ3xy ZdiWddwwsJW3x3POZDtEw0FsUY6lTd7kLPeblSEjJJ0Y7NcSbmUts5KUOv9QSYimbriwwX1CV wiqoJJ95vE+yR/tYZm+gfcVLP2kKP93BaGCZsksvXfGhXnr8TSPMgWLXzaHKIajM5qWvrsW7R I1Ua8XAVHmMIiXNyIm3iG5kJ4SFFbBjrUy09cxPP/wfZENzKhycBl7pg25CZhMq/4Mf4UGDkP NiHjg0QPNdZBNCkTLXaXonIxE8vfhmjGW+4wjG/VmJVDp/q5u6IsKkRsLh4TfJhcohz2GJl/E 3LyRS1UTldvYHCOMhjroiStF8BrNHdoD/DI/RZOHc6vSLvqIj+yT3YfyTrAQTXd6e8y3aU+KN C8VPJ+J7UlP45UvninxudPJzoG8p/WXCjwbfqmSloNjIku6OTlG2upFKFbRAGqnhqvVLaa2E7 AWO9GuQNQE421worVlokf7oIo3JsJ3VLu9FhmJRbE4mj9URski+i3BnLf45B28W5HZ+9VAFTw A6Vukr5hkMmrs0ctAiZvFkShoxTQBKleBevlzyzF/LzKtiQXgxyjqySwC9aRcA7FDuOGDuyoe 3TqzjP3LngZ4BoXZloKK3Ma3dXtud4c2rhDf/8YyPg== X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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 On Tue, Dec 13, 2022 at 04:58:30AM +0100 Nicolas Schier wrote: > On Mon 12 Dec 2022 10:21:10 GMT, Nathan Chancellor wrote: > > On Sun, Dec 11, 2022 at 12:03:52PM +0900, Masahiro Yamada wrote: > > > 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 > > > > Reviewed-by: Nathan Chancellor > > Reviewed-by: Nicolas Schier > > > > --- > > > > > > 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) > > > > Would it make sense to state what version is needed, similar to the > > Kconfig checks for compiler and binutils? > > Checking against 'undefine' (introduced in make-3.82~38) is quite a > nice way, I think. Otherwise we needed something like > $(filter 3.82% 3.9% 4.% 5.% ..., $(MAKE_VERSION)). > Nathan, sorry, I somehow I read your question completely wrong. I would also appreciate if the minimum make version would be shown in the error message. Kind regards, Nicolas