Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3789537rdb; Thu, 14 Sep 2023 02:41:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFmIfw7bYTrjHc70howk4Gz5BVnUJ312GQhToeNoe2D6h5dsB8DS+roaX2vSvAh/3vMBCKe X-Received: by 2002:a05:6870:6393:b0:1c8:bae6:527d with SMTP id t19-20020a056870639300b001c8bae6527dmr6215971oap.55.1694684486273; Thu, 14 Sep 2023 02:41:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694684486; cv=none; d=google.com; s=arc-20160816; b=cSkc+JFLoZ+MJvz76HHXXCpuyx1+lFRMhiy0mC6PgHIgYIQfwvlV/rO3tjSQsLlHpU Vv1ln5PgVEAi8fTNFoNdj0CDD9ozPvDWDYMxNLiB6eRn0nP6KALvcj/HyPBHJRTiwLPZ b9zKGZeejIdSOJrgT6ZlcF4ejbvdmd1wUUTdHmrAffNedS/Eh6s/rgU3S8EAcEhG9vCK nwU1jeSAK51iLKM2pi8cb+Cn39cbrcFODftYt7U41a/b1Z2UxsDnAuKDVrOKGwnadi+B Q1Qdpe4cWlEimsejtYS+dS5Ke9LbU7Rvi2Yf+nu1gcPL4jjD18GzKjNA45CQqawr1htL OVjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:jabber-id:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=B6JzjjyAnOeVvJXYbel2UTLb45Ha25D0J4hiaKsmUsI=; fh=dJgIOWgAu9rAlxoqiouJEnkL756tUO5mBvjFghlyYWE=; b=gFE6FHPQ/ZerAzrNGrWzOaABNZ3yzHhh1woLbhGoUsBC3U7SEA4aoVFhT+W4PPeTM7 VCh4ISaWL23dPMimV3HBoEY0r+655mgLe7CiX/IwxvWxBmKLbAUXcxyMaPaCNZ2aIjaO me1R/KPlhUWUAyjdK1LKIUuai4DgKPyzwGe90chFYqb4/ckuIovcU68IiHItdX2q6ZDD eN4InIrvDQOgQ+KPT2FqC0mCMyzfkdhXoaveQzU0070UNj9lEn/gi/XEdwC3QRBvCd4u lN5A2UNvITvjun5LY9/in4c+btdfQN/9hFxfylVyneQEvNzt6MGbikE2KqV3DpVoQp0r 1wXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fjasle.eu header.s=mail header.b=WHCWCn54; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fjasle.eu Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id u13-20020a63d34d000000b005650ad0d543si1108382pgi.113.2023.09.14.02.41.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 02:41:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@fjasle.eu header.s=mail header.b=WHCWCn54; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fjasle.eu Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id AD78483033A7; Wed, 13 Sep 2023 20:53:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234394AbjINDxw (ORCPT + 99 others); Wed, 13 Sep 2023 23:53:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234300AbjINDxu (ORCPT ); Wed, 13 Sep 2023 23:53:50 -0400 X-Greylist: delayed 29023 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 13 Sep 2023 20:53:44 PDT Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B392193; Wed, 13 Sep 2023 20:53:44 -0700 (PDT) Received: from leknes.fjasle.eu ([46.142.48.206]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MZTyo-1rC6bK2p78-00WWJr; Thu, 14 Sep 2023 05:52:36 +0200 Received: from localhost.fjasle.eu (kirkenes.fjasle.eu [10.10.0.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by leknes.fjasle.eu (Postfix) with ESMTPS id B8A673E872; Thu, 14 Sep 2023 05:52:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fjasle.eu; s=mail; t=1694663538; bh=vDgINWPBzUIAWMngiKJuCoKZEkx2uCiwIU+aazJc+bA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WHCWCn54HMtTPGfYRBRLjNfPFGwAEBwM+V3IyM0gxSoUWQa2H1UFe2/k0ERiYWDsh RVJt71evYpv1PLxrVFa+0B8L6AM6qhsERl1pvE43i3sh4mWISDr+nlabZzS5tMascS 3SL9LcDQip3ceE56BxDie69X6vae38J56VNTcQjs= Received: by localhost.fjasle.eu (Postfix, from userid 1000) id 3539A5EC7; Thu, 14 Sep 2023 05:51:32 +0200 (CEST) Date: Thu, 14 Sep 2023 05:51:32 +0200 From: Nicolas Schier To: Arnd Bergmann Cc: Arnd Bergmann , Masahiro Yamada , Jonathan Corbet , Sakari Ailus , Javier Martinez Canillas , Nathan Chancellor , Nick Desaulniers , linux-kbuild@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Documentation: kbuild: explain handling optional dependencies Message-ID: References: <20230913113801.1901152-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="pW/TkBCfOsDP79g/" Content-Disposition: inline In-Reply-To: X-Operating-System: Debian GNU/Linux trixie/sid Jabber-ID: nicolas@jabber.no X-Provags-ID: V03:K1:NQOG6acG2KtKAphjAf5wLhsuAeUmx+UQJc8yzRv/bAiDUqlhDVD rJR/D0nu2J7U15lU3cYa4knT2VyzkcBRwYINNqADEGRJXEk90V1y9KhjmusLAJm3P1CXGoG bcrSXFpa4Mycx6RsPgVtEyyLmtuCGIUaS7GMxL6oAmRHCZgXCB9zaJMztIrPLJRX+H7JtKK dplgWqKfZqhq68CfREnGA== UI-OutboundReport: notjunk:1;M01:P0:cYlRSzQeoEk=;R8YmYFFRVt0iX/LhPKlkynWkg5A KKHFL1uoVjR/t6W9IWXvAJ/QFoUEOZW6P0tgrJa3IneOrx0ybe/uocPnb9eFi2LqQkEW7ptBg wu15F2sFlgu6gLoVgLs8WwDDlP62iLouuZ2GDoGbg58ukC+598jZu3Ik4bF8gGZ+BatMUrl/Q gIoX/W+zbmGpy4se0c3JsCEODieSYgnDqqk8NJOX/QKxaKIyK0b6WSv6U3hlGsfID6RRfLLvU N3LImeOhpPmdRmVN87D0ddbaZ9/EqREWFiC4xJvgdeYeCUCV0UcRsbaSQFJMxnlzLyeFw1Tf7 4/t68+EIg9zClvSWWzHc8KNZna0h/5vr9RxGbY29/tHCkVjkmBxHMO7oXyP12lzZeaPo5zygy 576IE4raeyckPVTM6Z3sbS2KDnI4B2/BwRs01nOWjz4sOSMlyt+O0mPIEAgnFUzO5/pzyCLYv YBjeAS7QugN2rvIjk3K4s/1xFI+/Rl3ttARYe30G+cuOK3/c9H9SZLd+tYVxIADOG5SWj4p0s iEMhzrrVag0lgHsi/jjkL6FqW5fElDXIiEfYQu+ewn8nCXQnVHeqOKFA0KA5wDZdH/F+jvhVk 1cxWHuymiDRJHV8NbTzvc+Pk5HSpIt2ffYt/JvAjTQjFc7qR3Hd9ANcyafKb2380ns9o6ytEz sUfOnkLArbAftD1u1V0zT20WiavDMpXQeff6scXziLUGW1+/zcMdn8gRvd8J6ldv11CqxTR2A NhIaJ1HSkfH0M1ewhLzLy6hrk5rj+X5xov3Zqq8YjgRypalXCVIi62uVAv/juQbUPeS9QIKq8 l5nUHt0rYqa3saJpDQ02f5X5yS70MMCeDjPbluOH5zpax0LidOyCEtnrtbweMbxDew9ArWwJi aqN2aVQa2MrMh7Q== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 13 Sep 2023 20:53:54 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email --pW/TkBCfOsDP79g/ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed 13 Sep 2023 23:16:47 GMT, Arnd Bergmann wrote: > On Wed, Sep 13, 2023, at 22:34, Nicolas Schier wrote: > > On Wed, Sep 13, 2023 at 09:55:36PM +0200 Arnd Bergmann wrote: >=20 > >> config FOO > >> - bool "Support for foo hardware" > >> + tristate "Support for foo hardware" > >> depends on BAR || !BAR > > > > ah, thanks, tristate kconfig symbols are really more interesting. But = I am > > still not sure, whether this works as proposed: > > > > With the 'config FOO' above and > > > > config BAR > > tristate "Support for bar feature" > > > > kconfig allows me to choose between these: > > > > BAR=3Dy =3D> FOO=3D{N/m/y} > > BAR=3Dm =3D> FOO=3D{N/m} > > BAR=3Dn =3D> FOO=3D{N/m/y} > > > > But with > > > > config FOO > > tristate "Support for foo hardware" > > depends on !BAR=3Dm > > > > I can choose between: > > > > BAR=3Dy =3D> FOO=3D{N/m/y} > > BAR=3Dm =3D> FOO is not selectable > > BAR=3Dn =3D> FOO=3D{N/m/y} >=20 > That is indeed the point: if BAR=3Dm, we want to be able to pick FOO=3Dm > here, otherwise it is impossible to enabled everything as modules. oh, I misinterpreted your very first sentence; thanks for clarifying it to = me and sorry for the noise. With the minor fixes: Reviewed-by: Nicolas Schier Kind regards, Nicolas --pW/TkBCfOsDP79g/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEh0E3p4c3JKeBvsLGB1IKcBYmEmkFAmUCg0MACgkQB1IKcBYm EmkqMQ//eGegldi6pmfGsvc81ltTfQrq+D5tVf/nFo5oL2HbSXPIlZ627OGtC/hv v9mD91mEB3m/WQG+E/22Y/enjvscqBWpTrJRp4su43U8y6mQcQWZ6QotZgk5YLg4 7k4pZNPkjC2rCTPodec+bKgd1ZIVOCP3xWAY9GTaK08nON2tz/FWppNbRMS6L8De 08y8GqMDn6BT+b0Q89XumCWfemvSzMK7odGAnUbWEfDn9s5wmUDzvdW8PnuOpFGC fq82cJA75xO+TOTwGCqednstyEPov6LLFfEKdOzAwCjGg7sGO7EFUDvo6JuH7YHN K4lmUQ+uq8c8XmMSQ3nceEEy/pZ+qgtVNDDSedJey8p3INkU/A41uQ6LcNq7oFTV 3oW22kTJf3T/MiD+eo5cIjJazKmK9WGOaHgceNWmbVG08TRHeGhriIlvOjPl1JPP 3IC+Ww1mpNTCOktMxUHEpzwjhDgMEKGPmIz3NaULe3NFPNBIpD9+KW/8lMLc9r3Q X0IbqIeRgHG7jjZprzaLlBrDQVO/f2Xmp+5qTKQlQLP9p00plp6AuD+BEp1z/51Y Ydu1SL2+6ocM43a0kgIQ+rjPBMxlPhIs11EKvvU8Kh/hspt/xo2csi6thdlKIseC 8E58CQwd9ysL25IDcq4wpGwgkZ2b2Ie7t7MVoBsC/s1z2QAwyis= =uyPd -----END PGP SIGNATURE----- --pW/TkBCfOsDP79g/--