mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
binfmt: Decouple builtin from binfs file system
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
4be416a2a8
commit
47e38eb70f
@@ -54,8 +54,7 @@ extern "C"
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_BUILD_PROTECTED) && defined(CONFIG_FS_BINFS) && \
|
||||
defined(__KERNEL__)
|
||||
#if defined(CONFIG_BUILD_PROTECTED) && defined(__KERNEL__)
|
||||
/* In the PROTECTED build, the builtin arrays are only needed by BINFS.
|
||||
* in this case, the user-space globals are not accessible and must be
|
||||
* provided to the OS via the boardctl(BOARDIOC_BUILTINS) call. In this
|
||||
@@ -108,8 +107,7 @@ EXTERN const int g_builtin_count;
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_BUILD_PROTECTED) && defined(CONFIG_FS_BINFS) && \
|
||||
defined(__KERNEL__)
|
||||
#if defined(CONFIG_BUILD_PROTECTED) && defined(__KERNEL__)
|
||||
void builtin_setlist(FAR const struct builtin_s *builtins, int count);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -134,8 +134,7 @@
|
||||
* ARG: A pointer to an instance of struct boardioc_builtin_s
|
||||
* CONFIGURATION: This BOARDIOC command is always available when
|
||||
* CONFIG_BUILTIN is enabled, but does nothing unless
|
||||
* CONFIG_BUILD_PROTECTED and CONFIG_FS_BINFS are also
|
||||
* selected.
|
||||
* CONFIG_BUILD_PROTECTED is also selected.
|
||||
* DEPENDENCIES: None
|
||||
*
|
||||
* CMD: BOARDIOC_USBDEV_CONTROL
|
||||
|
||||
Reference in New Issue
Block a user