diff --git a/include/interpreters/prun.h b/include/prun.h similarity index 95% rename from include/interpreters/prun.h rename to include/prun.h index e895e9902..d440fb3d6 100644 --- a/include/interpreters/prun.h +++ b/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 @@ -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/interpreters/Kconfig b/interpreters/Kconfig index 0464b6c77..e95215517 100644 --- a/interpreters/Kconfig +++ b/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/interpreters/Make.defs b/interpreters/Make.defs index 17364be39..5d808d5d6 100644 --- a/interpreters/Make.defs +++ b/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/system/Kconfig b/system/Kconfig index 0de5807d3..5b6c4102b 100644 --- a/system/Kconfig +++ b/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/system/Make.defs b/system/Make.defs index 33a40c0aa..af20390a5 100644 --- a/system/Make.defs +++ b/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/interpreters/prun/.gitignore b/system/prun/.gitignore similarity index 100% rename from interpreters/prun/.gitignore rename to system/prun/.gitignore diff --git a/interpreters/prun/Kconfig b/system/prun/Kconfig similarity index 55% rename from interpreters/prun/Kconfig rename to system/prun/Kconfig index 1f8ba4695..131a7b2aa 100644 --- a/interpreters/prun/Kconfig +++ b/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/interpreters/prun/Makefile b/system/prun/Makefile similarity index 98% rename from interpreters/prun/Makefile rename to system/prun/Makefile index 941284fae..63fc1ad74 100644 --- a/interpreters/prun/Makefile +++ b/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 diff --git a/interpreters/prun/README.txt b/system/prun/README.txt similarity index 100% rename from interpreters/prun/README.txt rename to system/prun/README.txt diff --git a/interpreters/prun/prun.c b/system/prun/prun.c similarity index 99% rename from interpreters/prun/prun.c rename to system/prun/prun.c index 23235074e..d1af40bfb 100644 --- a/interpreters/prun/prun.c +++ b/system/prun/prun.c @@ -44,7 +44,7 @@ #include #include -#include +#include #include "pexec.h" #include "pedefs.h" diff --git a/interpreters/prun/prun.h b/system/prun/prun.h similarity index 100% rename from interpreters/prun/prun.h rename to system/prun/prun.h