boardctl: Update for movement of libc/symtab to apps/system

This commit is contained in:
Gregory Nutt
2015-08-23 12:17:10 -06:00
parent c2d10cf875
commit 17b2f07cdb
2 changed files with 15 additions and 8 deletions
+7
View File
@@ -1725,6 +1725,13 @@ config BOARDCTL_RESET
Architecture specific logic must provide the board_reset() Architecture specific logic must provide the board_reset()
interface. interface.
config BOARDCTL_SYMTAB
bool "Enable symbol table interfaces"
default n
depends on EXECFUNCS_HAVE_SYMTAB
---help---
Enables support for the BOARDIOC_SYMTAB boardctl() command.
config BOARDCTL_TSCTEST config BOARDCTL_TSCTEST
bool "Enable touchscreen test interfaces" bool "Enable touchscreen test interfaces"
default n default n
+8 -8
View File
@@ -45,7 +45,7 @@
#include <errno.h> #include <errno.h>
#include <nuttx/board.h> #include <nuttx/board.h>
#include <nuttx/binfmt/canned_symtab.h> #include <nuttx/binfmt/symtab.h>
#ifdef CONFIG_LIB_BOARDCTL #ifdef CONFIG_LIB_BOARDCTL
@@ -130,22 +130,22 @@ int boardctl(unsigned int cmd, uintptr_t arg)
break; break;
#endif #endif
#ifdef CONFIG_LIBC_SYMTAB #ifdef CONFIG_BOARDCTL_SYMTAB
/* CMD: BOARDIOC_SYMTAB /* CMD: BOARDIOC_SYMTAB
* DESCRIPTION: Select a symbol table * DESCRIPTION: Select a symbol table
* ARG: A pointer to an instance of struct symtab_desc_s * ARG: A pointer to an instance of struct boardioc_symtab_s
* (See include/nuttx/binfmt/canned_symtab.h). * CONFIGURATION: CONFIG_BOARDCTL_SYMTAB
* CONFIGURATION: CONFIG_LIBC_SYMTAB
* DEPENDENCIES: None * DEPENDENCIES: None
*/ */
case BOARDIOC_SYMTAB: case BOARDIOC_SYMTAB:
{ {
FAR const struct symtab_desc_s *symdesc = FAR const struct boardioc_symtab_s *symdesc =
(FAR const struct symtab_desc_s *)arg; (FAR const struct boardioc_symtab_s *)arg;
DEBUGASSERT(symdesc != NULL); DEBUGASSERT(symdesc != NULL);
ret = canned_symtab_select(symdesc); exec_setsymtab(symdesc->symtab, symdesc->nsymbols);
ret = OK;
} }
break; break;
#endif #endif