binfmt: Decouple builtin from binfs file system

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-02-13 20:07:18 +08:00
committed by Alan Carvalho de Assis
parent 4be416a2a8
commit 47e38eb70f
8 changed files with 14 additions and 38 deletions
+2 -4
View File
@@ -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
+1 -2
View File
@@ -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