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 X-Spam-Level: ** X-Spam-Status: No, score=2.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 669AAC433DB for ; Sat, 20 Mar 2021 19:07:33 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BE2816193D for ; Sat, 20 Mar 2021 19:07:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BE2816193D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94) (envelope-from ) id 1lNgwF-0005j8-BO; Sat, 20 Mar 2021 15:07:07 -0400 Received: from mout.gmx.net ([212.227.15.19]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lNgwD-0005j3-5M for kernelnewbies@kernelnewbies.org; Sat, 20 Mar 2021 15:07:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1616267220; bh=Q06QQ3/Z1FsudtmPR4+dsKKGnBwjJOhMgpHIjEGEf+E=; h=X-UI-Sender-Class:From:To:Subject:Date; b=cGifGe1Bh5f11qxZnaT9kE8pv+QbkzgMuDYfHv8YU2q4BUc51iZ67wdOzrLNaRLAX t3EJIHe9xmY6WphHwqQojadhOP5iVBMdHEXKs1uZnS+WCe3WXPYPX6JW5TAjYfAW6a DOMXWYwXb6WpXO1fpCvnIIvWFNZ4glxhaY1E0llg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [89.247.100.94] ([89.247.100.94]) by web-mail.gmx.net (3c-app-gmx-bs17.server.lan [172.19.170.69]) (via HTTP); Sat, 20 Mar 2021 20:07:00 +0100 MIME-Version: 1.0 Message-ID: From: Martin Herdeis To: Kernelnewbies Subject: make menuconfig Date: Sat, 20 Mar 2021 20:07:00 +0100 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:55u1jnb7e1igWeAgU+kyQTBN14RPGZaP+6MEDcQI9WKAT1If9yr6DGdV9vNC65X846cC6 1xCTTcvgTzD+vR3DzAapUZCNiD4LzbRLI4oeT9G+VadiSjgY9X1JNV4meWeGZ1UUyF1aLBIuLbcM UrIhSe5uB0J8PMUQpO0d3s3+bGQO6jXDZ0GZnX/61SH7wfpyLyjPW8KSpucB0nT4fB2BEWv+2rpe jkBXBW3fleRX/pGn3px4HpjUmiOo3jFqePyg7ueVjVBn1pJO4ixpm62tM9vut9RW8+yRnCi7+yJM Ss= X-UI-Out-Filterresults: notjunk:1;V03:K0:nBmucj9tk10=:G84FyBfl7KVnFgV3qW+TfX oayN0EP6IEJOzWVsdLTa7yI++2bk2YRg6jZTzgzbOVySFxPnOVty6nDCaYN9q3ObEU+TQVPdg PbR7NONmVp9jQkU1UftlIAxAryjFjdwdsldUYBYsQY5vsjFLcFvOlidN8b6BZEyVhsXfaTvBX Xfs9TpSJ12Sr3KAp96b2zSR0GitvO1N/uYT56CewEej1e+gkY6etWeTonLgqSJoSzTw7XBg8A ZTUqe/a8d1y22YWWzC8Gt7Uqx8A8F4YnAjlpw2qAfghl8JiaPZCfhzGqLuLU598yTJtJ8vit/ hqaxiPMFx7Ct7u7jQZ8ZXNLYbU6teJhdApShhYag8B9gsiW+H2K0bH+TUzoD0CZUylrHoMutz kiFMVs5T1WhBZegjt1Ztoz3XOjYga8+xH3Jez8f6f80xId0qnLQ9CB7m4bVzWQ1G96pnmBD4Y 411zZfL+l6DT1zXCffbm94UQlADqbg72sS0EqhcOBPTggdGW9MyWNrMxEYtrz1sb/qbCOmV+R dngWBw5hi/ITBEnWJzvRffo5us2eoghKFZUE9Wo3oCxH2oa39lut5ISvMumNtHCck+5De5qHp ljb25cl44W1VM= X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============6304594379138505190==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============6304594379138505190== Content-Type: text/html; charset=UTF-8
Hello,
 
I am trying to learn more about the kernel build system and due to that I tried the following in the top level Kconfig file right at the beginning:
 
config FOO
        tristate
        prompt "FOO"
config BAR
        tristate "BAR" if FOO
        default y
 
Then I do a make menuconfig and choose the config option FOO with "m" then the config option BAR shows up with "y". if I exit and save this constellation m/y shows up in the .config file. But as I understand the logic the value of the config option FOO defines the upper level for the value of the config option BAR.
 
When I do just a make menuconfig again both options show up as m even though in the .config file they are still saved as y/m.
 
Is that a problem with the default value of BAR? Am I not supposed to give it a default value out of range when FOO is m?
 
 
Thank you,
 
Martin
--===============6304594379138505190== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============6304594379138505190==--