Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1632258pxb; Thu, 4 Mar 2021 17:01:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJxej+DcoNOF46wOR1zwDHPHaeP5ahIy+A1GkcSJO52IsKu1SczxeV0XIkmsg1dar41I4Dwd X-Received: by 2002:a05:6638:12cf:: with SMTP id v15mr6820356jas.77.1614906086526; Thu, 04 Mar 2021 17:01:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614906086; cv=none; d=google.com; s=arc-20160816; b=z+4WJXWQupKpe6RHDLuzr6zIuo/giWvIrYiZFC07KGWcRtF8BwPZjehK8tBgG4LkDv sp85Mo+TUbNxcRr7/u3iDOfCMGOgYBVcK7WR5H+Bl7k0NlhkztCVmVlwx7Jb2qxOsrqX t6PdE+GN9/4w8qIrS76i4VoJBdzd2LglmxDzPVhwlDo2kFtrN6+ETqt7isyCnZt83lB0 eF57j14I5HwjcTcF4yZ0/vK+mpvEFoFM4YG3jQQGKbij06T/lmRm//vooIR2l+/KMo4A nqjD6So2CyKA2av36FE+ui0yrhAcwAiPCKBRLHMqnCQb1fBggZhzZPRhF56D6AEfrBWq 2U4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature:dkim-signature; bh=k860LBQGdADMjxhqzIecdSjk0pIb0QfN8r7kroY5+DA=; b=NS6Wi8N9L1HO/IBHI3xIhoUA2LhT1KAnempZeGXuYBsTfHGMqEHELpO2gc9xJrjwI6 RYcIPp4gpjkBJhUf/2GiatKINgqupkwppjJCR0J/RUDMFc9hK9D9EAqzOCF4EhTSry3z b5dlqE+Uw9iZ223ac42wtnqUQ1lifynqYGhgko/9IP8t+WYMrIcB2DJFEBaGvA/11MM6 dMQA9GoAb6l+bR1Pl5z+EDRcl89rYZeH3SOSBzlrx1tvIjr/vohspcnqUdz0bBfXNNhT 3gwB+50Tbe9p0z7G0HLsCTWr/yjU9P7b5t8oMk+VFM6jX6Vl5b5mU8l9z+MAds2j/PxU wZ8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=pogIiULd; dkim=pass header.i=@fluxnic.net header.s=2016-12.pbsmtp header.b=DU6XQrt+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l15si757762ilh.134.2021.03.04.17.01.12; Thu, 04 Mar 2021 17:01:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=pogIiULd; dkim=pass header.i=@fluxnic.net header.s=2016-12.pbsmtp header.b=DU6XQrt+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241375AbhCDWLI (ORCPT + 99 others); Thu, 4 Mar 2021 17:11:08 -0500 Received: from pb-smtp2.pobox.com ([64.147.108.71]:59301 "EHLO pb-smtp2.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240691AbhCDWKr (ORCPT ); Thu, 4 Mar 2021 17:10:47 -0500 Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 0ABBE97DCD; Thu, 4 Mar 2021 17:10:06 -0500 (EST) (envelope-from nico@fluxnic.net) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sasl; bh=cWl3vaUcn8eCVnVHDPCAenNYgfs=; b=pogIiU LdV3qAMuofiPnmpjUzPC5xIQzEXjz4NC6rddNecOuXIIU/phxgDFWK3TNrMfJsFg K3w/46R7zmkvs/y1jL5QfbAIQ6lJh5NJyqsLxxvwcUdnx3Z7iRdlyM1JUgeTZ4kQ 2ABJ8WLEn9UdOaO4IsyJcrmX+s/CcYtfi+un4= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id C888197DCA; Thu, 4 Mar 2021 17:10:05 -0500 (EST) (envelope-from nico@fluxnic.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=fluxnic.net; h=date:from:to:cc:subject:in-reply-to:message-id:references:mime-version:content-type; s=2016-12.pbsmtp; bh=FHu7CSiHhDUgzsaZzuH8y0LAX0JIO4pxhbnmV+gQoAw=; b=DU6XQrt+qYHE7ZDfoEJ+IYwa3fCKBR95gy/C7dU7UnoNX8AP4iFFbNS/GAFw2XP5L/6qQpeZtXylegFJdwiMe06NdNvSU7enEDdTLCqdzNJFGnLdciR1LA840PTVYgZXdSPKIqN3IKnn744lgKZlFtqIVz7gJ2/d36fjJEHoDes= Received: from yoda.home (unknown [24.203.50.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 6A9B297DC5; Thu, 4 Mar 2021 17:10:04 -0500 (EST) (envelope-from nico@fluxnic.net) Received: from xanadu.home (xanadu.home [192.168.2.2]) by yoda.home (Postfix) with ESMTPSA id 87BF22DA015E; Thu, 4 Mar 2021 17:10:02 -0500 (EST) Date: Thu, 4 Mar 2021 17:10:02 -0500 (EST) From: Nicolas Pitre To: Masahiro Yamada cc: linux-kbuild@vger.kernel.org, clang-built-linux@googlegroups.com, Nick Desaulniers , Nathan Chancellor , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4] kbuild: collect minimum tool versions into scripts/tool-version.sh In-Reply-To: <20210303183333.46543-2-masahiroy@kernel.org> Message-ID: <798s9r5n-5nr8-1p1s-837-s07p72q72031@syhkavp.arg> References: <20210303183333.46543-1-masahiroy@kernel.org> <20210303183333.46543-2-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Pobox-Relay-ID: 5F66614C-7D36-11EB-8D3A-74DE23BA3BAF-78420484!pb-smtp2.pobox.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 4 Mar 2021, Masahiro Yamada wrote: > The kernel build uses various tools, many of which are provided by the > same software suite, for example, LLVM and Binutils. > > When we raise the minimal version of Clang/LLVM, we need to update > clang_min_version in scripts/cc-version.sh and also lld_min_version in > scripts/ld-version.sh. > > In fact, Kbuild can handle CC=clang and LD=ld.lld independently, and we > could manage their minimal version separately, but it does not make > much sense. > > Make scripts/tool-version.sh a central place of minimum tool versions > so that we do not need to touch multiple files. It would be better and self-explanatory if a script that provides the minimum version of a tool was actually called ... min_tool-version.sh or the like. Otherwise one might think it would give e.g. the current version of installed tools. Nicolas