From d1a3a58fbecefc9112424e7d5ac65a09d5d5703c Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 16 Mar 2018 09:10:01 -0600 Subject: [PATCH] apps/system/lzf: Move the LZF tool from apps/examples/ to apps/system. --- {examples => system}/lzf/.gitignore | 0 {examples => system}/lzf/Kconfig | 18 +++++++++--------- {examples => system}/lzf/Make.defs | 6 +++--- {examples => system}/lzf/Makefile | 14 +++++++------- {examples => system}/lzf/lzf_main.c | 0 5 files changed, 19 insertions(+), 19 deletions(-) rename {examples => system}/lzf/.gitignore (100%) rename {examples => system}/lzf/Kconfig (58%) rename {examples => system}/lzf/Make.defs (95%) rename {examples => system}/lzf/Makefile (86%) rename {examples => system}/lzf/lzf_main.c (100%) diff --git a/examples/lzf/.gitignore b/system/lzf/.gitignore similarity index 100% rename from examples/lzf/.gitignore rename to system/lzf/.gitignore diff --git a/examples/lzf/Kconfig b/system/lzf/Kconfig similarity index 58% rename from examples/lzf/Kconfig rename to system/lzf/Kconfig index 6c455577e..5d16ae835 100644 --- a/examples/lzf/Kconfig +++ b/system/lzf/Kconfig @@ -3,15 +3,15 @@ # see the file kconfig-language.txt in the NuttX tools repository. # -config EXAMPLES_LZF - bool "\"LZF compression tool\" example" +config SYSTEM_LZF + bool "LZF compression tool" default n ---help--- - Enable the \"LZF compression tool\" example + Enable theLZF compression tool -if EXAMPLES_LZF +if SYSTEM_LZF -config EXAMPLES_LZF_PROGNAME +config SYSTEM_LZF_PROGNAME string "Program name" default "lzf" depends on BUILD_KERNEL @@ -19,12 +19,12 @@ config EXAMPLES_LZF_PROGNAME This is the name of the program that will be use when the NSH ELF program is installed. -config EXAMPLES_LZF_PRIORITY - int "LZF task priority" +config SYSTEM_LZF_PRIORITY + int "LZF tool task priority" default 100 -config EXAMPLES_LZF_STACKSIZE - int "LZF stack size" +config SYSTEM_LZF_STACKSIZE + int "LZF tool stack size" default 2048 endif diff --git a/examples/lzf/Make.defs b/system/lzf/Make.defs similarity index 95% rename from examples/lzf/Make.defs rename to system/lzf/Make.defs index 377e1d0c8..c63bae594 100644 --- a/examples/lzf/Make.defs +++ b/system/lzf/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# apps/examples/lzf/Make.defs +# apps/system/lzf/Make.defs # Adds selected applications to apps/ build # # Copyright (C) 2018 Gregory Nutt. All rights reserved. @@ -34,6 +34,6 @@ # ############################################################################ -ifeq ($(CONFIG_EXAMPLES_LZF),y) -CONFIGURED_APPS += examples/lzf +ifeq ($(CONFIG_SYSTEM_LZF),y) +CONFIGURED_APPS += system/lzf endif diff --git a/examples/lzf/Makefile b/system/lzf/Makefile similarity index 86% rename from examples/lzf/Makefile rename to system/lzf/Makefile index e3ae2f54b..1d1f2dcd1 100644 --- a/examples/lzf/Makefile +++ b/system/lzf/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# apps/examples/lzf/Makefile +# apps/system/lzf/Makefile # # Copyright (C) 2018 Gregory Nutt. All rights reserved. # Author: Gregory Nutt @@ -37,12 +37,12 @@ # LZF built-in application info -CONFIG_EXAMPLES_LZF_PRIORITY ?= SCHED_PRIORITY_DEFAULT -CONFIG_EXAMPLES_LZF_STACKSIZE ?= 20480 +CONFIG_SYSTEM_LZF_PRIORITY ?= SCHED_PRIORITY_DEFAULT +CONFIG_SYSTEM_LZF_STACKSIZE ?= 20480 APPNAME = lzf -PRIORITY = $(CONFIG_EXAMPLES_LZF_PRIORITY) -STACKSIZE = $(CONFIG_EXAMPLES_LZF_STACKSIZE) +PRIORITY = $(CONFIG_SYSTEM_LZF_PRIORITY) +STACKSIZE = $(CONFIG_SYSTEM_LZF_STACKSIZE) # LZF compression example tool @@ -50,7 +50,7 @@ ASRCS = CSRCS = MAINSRC = lzf_main.c -CONFIG_EXAMPLES_LZF_PROGNAME ?= lzf$(EXEEXT) -PROGNAME = $(CONFIG_EXAMPLES_LZF_PROGNAME) +CONFIG_SYSTEM_LZF_PROGNAME ?= lzf$(EXEEXT) +PROGNAME = $(CONFIG_SYSTEM_LZF_PROGNAME) include $(APPDIR)/Application.mk diff --git a/examples/lzf/lzf_main.c b/system/lzf/lzf_main.c similarity index 100% rename from examples/lzf/lzf_main.c rename to system/lzf/lzf_main.c