You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "gustavonihei (via GitHub)" <gi...@apache.org> on 2023/04/28 20:26:32 UTC

[GitHub] [nuttx] gustavonihei commented on a diff in pull request #9138: libc/string: select arch's libc for kernel/userspace optionally

gustavonihei commented on code in PR #9138:
URL: https://github.com/apache/nuttx/pull/9138#discussion_r1180788621


##########
libs/libc/machine/Kconfig:
##########
@@ -137,6 +137,50 @@ config LIBC_ARCH_ELF_64BIT
 	default n
 	depends on LIBC_ARCH_ELF
 
+config LIBC_ARCH_ALLOW_KERNEL_ONLY
+	bool
+	default n
+
+config LIBC_ARCH_ALLOW_USER_ONLY
+	bool
+	default n
+
+if BUILD_PROTECTED || BUILD_KERNEL
+
+choice LIBC_ARCH_USAGE
+	prompt "libc architecture-specific usage"
+	default LIBC_ARCH_BOTH
+	depends on LIBC_ARCH_ALLOW_KERNEL_ONLY || LIBC_ARCH_ALLOW_USER_ONLY
+
+config LIBC_ARCH_BOTH
+	bool "Use architecture-specific on kernel and userspace"
+	depends on LIBC_ARCH_ALLOW_KERNEL_ONLY
+	depends on LIBC_ARCH_ALLOW_USER_ONLY

Review Comment:
   Unused option, what's the intended use for it?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org