batterydump:move to system dir

Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
This commit is contained in:
dulibo1 2023-11-07 09:53:22 +08:00 committed by CeDeROM
parent 8e938957c2
commit 893ac88f97
4 changed files with 15 additions and 15 deletions

View File

@ -3,26 +3,26 @@
# see the file kconfig-language.txt in the NuttX tools repository.
#
#
config TESTING_BATTERYDUMP
tristate "Battery dump for test"
config SYSTEM_BATTERYDUMP
tristate "Battery dump system tool"
default n
---help---
Enable the battery dump
if TESTING_BATTERYDUMP
if SYSTEM_BATTERYDUMP
config TESTING_BATTERYDUMP_PROGNAME
config SYSTEM_BATTERYDUMP_PROGNAME
string "Program name"
default "batterydump"
---help---
This is the name of the program that will be used when the NSH ELF
program is installed.
config TESTING_BATTERYDUMP_PRIORITY
config SYSTEM_BATTERYDUMP_PRIORITY
int "Battery dump task priority"
default 100
config TESTING_BATTERYDUMP_STACKSIZE
config SYSTEM_BATTERYDUMP_STACKSIZE
int "Battery dump stack size"
default DEFAULT_TASK_STACKSIZE

View File

@ -1,5 +1,5 @@
############################################################################
# apps/testing/batterydump/Make.defs
# apps/system/batterydump/Make.defs
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
@ -18,6 +18,6 @@
#
############################################################################
ifneq ($(CONFIG_TESTING_BATTERYDUMP),)
CONFIGURED_APPS += $(APPDIR)/testing/batterydump
ifneq ($(CONFIG_SYSTEM_BATTERYDUMP),)
CONFIGURED_APPS += $(APPDIR)/system/batterydump
endif

View File

@ -1,5 +1,5 @@
############################################################################
# apps/testing/batterydump/Makefile
# apps/system/batterydump/Makefile
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
@ -20,10 +20,10 @@
include $(APPDIR)/Make.defs
PROGNAME = $(CONFIG_TESTING_BATTERYDUMP_PROGNAME)
PRIORITY = $(CONFIG_TESTING_BATTERYDUMP_PRIORITY)
STACKSIZE = $(CONFIG_TESTING_BATTERYDUMP_STACKSIZE)
MODULE = $(CONFIG_TESTING_BATTERYDUMP)
PROGNAME = $(CONFIG_SYSTEM_BATTERYDUMP_PROGNAME)
PRIORITY = $(CONFIG_SYSTEM_BATTERYDUMP_PRIORITY)
STACKSIZE = $(CONFIG_SYSTEM_BATTERYDUMP_STACKSIZE)
MODULE = $(CONFIG_SYSTEM_BATTERYDUMP)
MAINSRC = batterydump.c

View File

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/batterydump/batterydump.c
* apps/system/batterydump/batterydump.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with