diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-05-09 11:09:43 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-05-09 11:09:43 -0600 |
commit | db7257ad4894df88a59100a8849b156029fbcf21 (patch) | |
tree | a9d11941769c64bc9981c87e6a92c214708867a2 /apps | |
parent | 892b3598fffb8e999493cbfa9c8bbf95855b0a48 (diff) | |
download | px4-nuttx-db7257ad4894df88a59100a8849b156029fbcf21.tar.gz px4-nuttx-db7257ad4894df88a59100a8849b156029fbcf21.tar.bz2 px4-nuttx-db7257ad4894df88a59100a8849b156029fbcf21.zip |
Move P-Code execution logic from interpreters/prun to system/prun
Diffstat (limited to 'apps')
-rw-r--r-- | apps/include/prun.h (renamed from apps/include/interpreters/prun.h) | 8 | ||||
-rw-r--r-- | apps/interpreters/Kconfig | 2 | ||||
-rw-r--r-- | apps/interpreters/Make.defs | 4 | ||||
-rw-r--r-- | apps/system/Kconfig | 4 | ||||
-rw-r--r-- | apps/system/Make.defs | 4 | ||||
-rw-r--r-- | apps/system/prun/.gitignore (renamed from apps/interpreters/prun/.gitignore) | 0 | ||||
-rw-r--r-- | apps/system/prun/Kconfig (renamed from apps/interpreters/prun/Kconfig) | 12 | ||||
-rw-r--r-- | apps/system/prun/Makefile (renamed from apps/interpreters/prun/Makefile) | 2 | ||||
-rw-r--r-- | apps/system/prun/README.txt (renamed from apps/interpreters/prun/README.txt) | 0 | ||||
-rw-r--r-- | apps/system/prun/prun.c (renamed from apps/interpreters/prun/prun.c) | 2 | ||||
-rw-r--r-- | apps/system/prun/prun.h (renamed from apps/interpreters/prun/prun.h) | 0 |
11 files changed, 24 insertions, 14 deletions
diff --git a/apps/include/interpreters/prun.h b/apps/include/prun.h index e895e9902..d440fb3d6 100644 --- a/apps/include/interpreters/prun.h +++ b/apps/include/prun.h @@ -1,5 +1,5 @@ /**************************************************************************** - * apps/include/interpreters/prun.h + * apps/include/prun.h * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> @@ -33,8 +33,8 @@ * ****************************************************************************/ -#ifndef __APPS_INCLUDE_INTERPRETERS_PRUN_H -#define __APPS_INCLUDE_INTERPRETERS_PRUN_H +#ifndef __APPS_INCLUDE_PRUN_H +#define __APPS_INCLUDE_PRUN_H /**************************************************************************** * Included Files @@ -87,4 +87,4 @@ int prun(FAR char *exepath, size_t varsize, size_t strsize); } #endif -#endif /* __APPS_INCLUDE_INTERPRETERS_PRUN_H */ +#endif /* __APPS_INCLUDE_PRUN_H */ diff --git a/apps/interpreters/Kconfig b/apps/interpreters/Kconfig index 0464b6c77..e95215517 100644 --- a/apps/interpreters/Kconfig +++ b/apps/interpreters/Kconfig @@ -15,6 +15,4 @@ config INTERPRETERS_PCODE Pascal run-time code. if INTERPRETERS_PCODE -source "$APPSDIR/interpreters/prun/Kconfig" endif - diff --git a/apps/interpreters/Make.defs b/apps/interpreters/Make.defs index 17364be39..5d808d5d6 100644 --- a/apps/interpreters/Make.defs +++ b/apps/interpreters/Make.defs @@ -38,10 +38,6 @@ ifeq ($(CONFIG_INTERPRETERS_PCODE),y) CONFIGURED_APPS += interpreters/pcode endif -ifeq ($(CONFIG_INTERPRETERS_PRUN),y) -CONFIGURED_APPS += interpreters/prun -endif - ifeq ($(CONFIG_INTERPRETERS_FICL),y) CONFIGURED_APPS += interpreters/ficl endif diff --git a/apps/system/Kconfig b/apps/system/Kconfig index 0de5807d3..5b6c4102b 100644 --- a/apps/system/Kconfig +++ b/apps/system/Kconfig @@ -39,6 +39,10 @@ menu "readline()" source "$APPSDIR/system/readline/Kconfig" endmenu +menu "P-Code Support" +source "$APPSDIR/system/prun/Kconfig" +endmenu + menu "Power Off" source "$APPSDIR/system/poweroff/Kconfig" endmenu diff --git a/apps/system/Make.defs b/apps/system/Make.defs index 33a40c0aa..af20390a5 100644 --- a/apps/system/Make.defs +++ b/apps/system/Make.defs @@ -66,6 +66,10 @@ ifeq ($(CONFIG_SYSTEM_NXPLAYER),y) CONFIGURED_APPS += system/nxplayer endif +ifeq ($(CONFIG_SYSTEM_PRUN),y) +CONFIGURED_APPS += sysem/prun +endif + ifeq ($(CONFIG_SYSTEM_RAMTEST),y) CONFIGURED_APPS += system/ramtest endif diff --git a/apps/interpreters/prun/.gitignore b/apps/system/prun/.gitignore index 3e5ec9dcb..3e5ec9dcb 100644 --- a/apps/interpreters/prun/.gitignore +++ b/apps/system/prun/.gitignore diff --git a/apps/interpreters/prun/Kconfig b/apps/system/prun/Kconfig index 1f8ba4695..131a7b2aa 100644 --- a/apps/interpreters/prun/Kconfig +++ b/apps/system/prun/Kconfig @@ -3,12 +3,20 @@ # see misc/tools/kconfig-language.txt. # -config INTERPRETERS_PRUN +config SYSTEM_PRUN bool "Pascal P-Code interpreter" default n depends on INTERPRETERS_PCODE ---help--- Build the Pascal P-Code interpreter / Virtual machine -if INTERPRETERS_PRUN +if SYSTEM_PRUN + +config SYSTEM_PEXEC + bool "Pascal P-Code command" + default n + ---help--- + Generates an NSH built-in task that may be used to execute P-Code + from the NSH command line. + endif diff --git a/apps/interpreters/prun/Makefile b/apps/system/prun/Makefile index 941284fae..63fc1ad74 100644 --- a/apps/interpreters/prun/Makefile +++ b/apps/system/prun/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# apps/interpreters/prun/Makefile +# apps/system/prun/Makefile # # Copyright (C) 2014 Gregory Nutt. All rights reserved. # Author: Gregory Nutt <gnutt@nuttx.org> diff --git a/apps/interpreters/prun/README.txt b/apps/system/prun/README.txt index 8287d6a6d..8287d6a6d 100644 --- a/apps/interpreters/prun/README.txt +++ b/apps/system/prun/README.txt diff --git a/apps/interpreters/prun/prun.c b/apps/system/prun/prun.c index 23235074e..d1af40bfb 100644 --- a/apps/interpreters/prun/prun.c +++ b/apps/system/prun/prun.c @@ -44,7 +44,7 @@ #include <errno.h> #include <debug.h> -#include <apps/interpreters/prun.h> +#include <apps/prun.h> #include "pexec.h" #include "pedefs.h" diff --git a/apps/interpreters/prun/prun.h b/apps/system/prun/prun.h index f9a3b843b..f9a3b843b 100644 --- a/apps/interpreters/prun/prun.h +++ b/apps/system/prun/prun.h |