mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
builtin: Remove HAVE_BUILTIN_CONTEXT macro
it's enough to decide which code should be compiled with CONFIG_BUILTIN and CONFIG_FS_BINFS Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
8b054dba98
commit
fe5cb9529d
+2
-2
@@ -147,7 +147,7 @@ void binfmt_freeargv(FAR struct binary_s *bin);
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#if defined(CONFIG_FS_BINFS) && defined(HAVE_BUILTIN_CONTEXT)
|
#ifdef CONFIG_FS_BINFS
|
||||||
int builtin_initialize(void);
|
int builtin_initialize(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -162,7 +162,7 @@ int builtin_initialize(void);
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#if defined(CONFIG_FS_BINFS) && defined(HAVE_BUILTIN_CONTEXT)
|
#ifdef CONFIG_FS_BINFS
|
||||||
void builtin_uninitialize(void);
|
void builtin_uninitialize(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ void binfmt_initialize(void)
|
|||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
#if defined(CONFIG_FS_BINFS) && defined(HAVE_BUILTIN_CONTEXT)
|
#ifdef CONFIG_FS_BINFS
|
||||||
ret = builtin_initialize();
|
ret = builtin_initialize();
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-2
@@ -53,7 +53,7 @@
|
|||||||
#include <nuttx/binfmt/binfmt.h>
|
#include <nuttx/binfmt/binfmt.h>
|
||||||
#include <nuttx/lib/builtin.h>
|
#include <nuttx/lib/builtin.h>
|
||||||
|
|
||||||
#ifdef HAVE_BUILTIN_CONTEXT
|
#ifdef CONFIG_FS_BINFS
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Function Prototypes
|
* Private Function Prototypes
|
||||||
@@ -191,4 +191,4 @@ void builtin_uninitialize(void)
|
|||||||
unregister_binfmt(&g_builtin_binfmt);
|
unregister_binfmt(&g_builtin_binfmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* HAVE_BUILTIN_CONTEXT */
|
#endif /* CONFIG_FS_BINFS */
|
||||||
|
|||||||
@@ -52,16 +52,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_BUILTIN
|
#ifdef CONFIG_BUILTIN
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Pre-processor Definitions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/* This logic is not usable in the KERNEL build from within the kernel. */
|
|
||||||
|
|
||||||
#if !defined(CONFIG_BUILD_KERNEL) || !defined(__KERNEL__)
|
|
||||||
# define HAVE_BUILTIN_CONTEXT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Types
|
* Public Types
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
@@ -43,8 +43,6 @@
|
|||||||
|
|
||||||
#include <nuttx/lib/builtin.h>
|
#include <nuttx/lib/builtin.h>
|
||||||
|
|
||||||
#ifdef HAVE_BUILTIN_CONTEXT
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@@ -77,5 +75,3 @@ FAR const struct builtin_s *builtin_for_index(int index)
|
|||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* HAVE_BUILTIN_CONTEXT */
|
|
||||||
|
|||||||
@@ -48,8 +48,6 @@
|
|||||||
|
|
||||||
#include <nuttx/lib/builtin.h>
|
#include <nuttx/lib/builtin.h>
|
||||||
|
|
||||||
#ifdef HAVE_BUILTIN_CONTEXT
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@@ -83,5 +81,3 @@ FAR const char *builtin_getname(int index)
|
|||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* HAVE_BUILTIN_CONTEXT */
|
|
||||||
|
|||||||
@@ -52,8 +52,6 @@
|
|||||||
|
|
||||||
#include <nuttx/lib/builtin.h>
|
#include <nuttx/lib/builtin.h>
|
||||||
|
|
||||||
#ifdef HAVE_BUILTIN_CONTEXT
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@@ -92,5 +90,3 @@ int builtin_isavail(FAR const char *appname)
|
|||||||
|
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* HAVE_BUILTIN_CONTEXT */
|
|
||||||
|
|||||||
Reference in New Issue
Block a user