nuttx-apps/system/grep/Kconfig
Junbo Zheng 46b8774f7f system/grep: Add grep command with regex support
Add a standalone grep application under apps/system/grep/. It uses the
NuttX libc regex library (regcomp/regexec) to support -i, -n, -v, -r,
-H and -h options plus stdin input and recursive directory search.

SYSTEM_GREP depends on LIBC_REGEX, so the regex library must be enabled
first -- CONFIG_SYSTEM_GREP only becomes selectable once LIBC_REGEX is
turned on.

Signed-off-by: Junbo Zheng <zhengjunbo1@xiaomi.com>
2026-09-09 10:34:10 +08:00

30 lines
653 B
Text

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config SYSTEM_GREP
tristate "system 'grep' command"
default n
depends on LIBC_REGEX
---help---
Enable support for the system 'grep' command (regex-based search).
if SYSTEM_GREP
config SYSTEM_GREP_PROGNAME
string "grep program name"
default "grep"
---help---
This is the name of the program that will be used when the grep
program is installed.
config SYSTEM_GREP_PRIORITY
int "grep task priority"
default 100
config SYSTEM_GREP_STACKSIZE
int "grep stack size"
default DEFAULT_TASK_STACKSIZE
endif