system/popen: select PIPES automatically when popen is enabled

Currently SYSTEM_POPEN depends on PIPES being manually enabled by
the user. This is not intuitive since popen() fundamentally requires
pipe support to function.

Change 'depends on NSH_LIBRARY && PIPES' to 'depends on NSH_LIBRARY'
plus 'select PIPES', so that enabling popen automatically pulls in
the pipe driver. This matches the pattern used by other Kconfig
entries such as gs2200m, alt1250, and usrsocktest.

Fixes #11435

Signed-off-by: hanzj <hanzj@xiaomi.com>
This commit is contained in:
hanzj 2026-06-03 22:06:51 +08:00
parent 97802bd9e0
commit a3b593a826

View file

@ -7,7 +7,7 @@ config SYSTEM_POPEN
bool "popen()/pclose()/dpopen()/dpclose() Functions"
default n
select SCHED_WAITPID
depends on PIPES
select PIPES
---help---
Enable support for the popen(), pclose(), dpopen(), and
dpclose() interfaces.