apps/system/lzf: Move the LZF tool from apps/examples/ to apps/system.

This commit is contained in:
Gregory Nutt 2018-03-16 09:10:01 -06:00
parent 947cbf6d7b
commit d1a3a58fbe
5 changed files with 19 additions and 19 deletions

View File

@ -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

View File

@ -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

View File

@ -1,5 +1,5 @@
############################################################################
# apps/examples/lzf/Makefile
# apps/system/lzf/Makefile
#
# Copyright (C) 2018 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
@ -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