[riot-notifications] [RIOT-OS/RIOT] cpu/riscv: model Kconfig (#16909)

Leandro Lanzieri notifications at github.com
Tue Sep 28 17:38:53 CEST 2021


@leandrolanzieri commented on this pull request.



> +choice LIBC_IMPLEMENTATION
+    bool "Libc implementation"
+    depends on TEST_KCONFIG
+    default MODULE_NEWLIB if USE_LIBC_NEWLIB
+    default MODULE_PICOLIBC if USE_LIBC_PICOLIBC

I can't find references to this behaviour in the [official docs](https://www.kernel.org/doc/html/latest/kbuild/kconfig-language.html), but in [Zephyr's docs](https://docs.zephyrproject.org/latest/guides/build/kconfig/setting.html#configuring-choices) they mention:

> To change the default symbol of FOO to A, you would add the following definition to Kconfig.defconfig:
> ```
> choice FOO
>     default A
> endchoice
>```
> The Kconfig.defconfig method should be used when the dependencies of the choice might not be satisfied. In that case, you’re setting the default selection whenever the user makes the choice visible.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16909#discussion_r717707490
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210928/1a5457e8/attachment.htm>


More information about the notifications mailing list