apps/system/ramtest: Make stacksize and priority conigurable.
This commit is contained in:
parent
4e7b17d783
commit
d9805d38e2
@ -8,3 +8,23 @@ config SYSTEM_RAMTEST
|
|||||||
default n
|
default n
|
||||||
---help---
|
---help---
|
||||||
Enable a simple RAM test.
|
Enable a simple RAM test.
|
||||||
|
|
||||||
|
if SYSTEM_RAMTEST
|
||||||
|
|
||||||
|
config SYSTEM_RAMTEST_PROGNAME
|
||||||
|
string "Program name"
|
||||||
|
default "ramtest"
|
||||||
|
depends on BUILD_KERNEL
|
||||||
|
---help---
|
||||||
|
This is the name of the program that will be use when the NSH ELF
|
||||||
|
program is installed.
|
||||||
|
|
||||||
|
config SYSTEM_RAMTEST_PRIORITY
|
||||||
|
int "RAM test task priority"
|
||||||
|
default 100
|
||||||
|
|
||||||
|
config SYSTEM_RAMTEST_STACKSIZE
|
||||||
|
int "RAM test stack size"
|
||||||
|
default 1024
|
||||||
|
|
||||||
|
endif
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# apps/system/ramtest/Makefile
|
# apps/system/ramtest/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2013 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2013, 2017 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@ -39,8 +39,15 @@ include $(APPDIR)/Make.defs
|
|||||||
|
|
||||||
# RAM test
|
# RAM test
|
||||||
|
|
||||||
PRIORITY = SCHED_PRIORITY_DEFAULT
|
CONFIG_SYSTEM_RAMTEST_PRIORITY ?= SCHED_PRIORITY_DEFAULT
|
||||||
STACKSIZE = 768
|
CONFIG_SYSTEM_RAMTEST_STACKSIZE ?= 1024
|
||||||
|
|
||||||
|
APPNAME = ramtest
|
||||||
|
PRIORITY = $(CONFIG_SYSTEM_RAMTEST_PRIORITY)
|
||||||
|
STACKSIZE = $(CONFIG_SYSTEM_RAMTEST_STACKSIZE)
|
||||||
|
|
||||||
|
CONFIG_SYSTEM_RAMTEST_PROGNAME ?= ramtest$(EXEEXT)
|
||||||
|
PROGNAME = $(CONFIG_SYSTEM_RAMTEST_PROGNAME)
|
||||||
|
|
||||||
ASRCS =
|
ASRCS =
|
||||||
CSRCS =
|
CSRCS =
|
||||||
@ -73,9 +80,6 @@ else
|
|||||||
INSTALL_DIR = $(BIN_DIR)
|
INSTALL_DIR = $(BIN_DIR)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CONFIG_XYZ_PROGNAME ?= ramtest$(EXEEXT)
|
|
||||||
PROGNAME = $(CONFIG_XYZ_PROGNAME)
|
|
||||||
|
|
||||||
ROOTDEPPATH = --dep-path .
|
ROOTDEPPATH = --dep-path .
|
||||||
|
|
||||||
# Common build
|
# Common build
|
||||||
@ -111,10 +115,10 @@ endif
|
|||||||
# Register application
|
# Register application
|
||||||
|
|
||||||
ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
|
ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
|
||||||
$(BUILTIN_REGISTRY)$(DELIM)ramtest.bdat: $(DEPCONFIG) Makefile
|
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME).bdat: $(DEPCONFIG) Makefile
|
||||||
$(call REGISTER,"ramtest",$(PRIORITY),$(STACKSIZE),ramtest_main)
|
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
|
||||||
|
|
||||||
context: $(BUILTIN_REGISTRY)$(DELIM)ramtest.bdat
|
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME).bdat
|
||||||
else
|
else
|
||||||
context:
|
context:
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user