Description
Describe the bug
Building a hello world result in many POSIX kconfigs being enabled or showing in the resulting .config
To Reproduce
Steps to reproduce the behavior:
- west build -b qemu_x86 samples/hello_world
- grep ^CONFIG_POSIX build/zephyr/.config
CONFIG_POSIX_AEP_CHOICE_NONE=y
CONFIG_POSIX_OPEN_MAX=4
CONFIG_POSIX_PAGE_SIZE=0x1000
CONFIG_POSIX_LIMITS_RTSIG_MAX=0
CONFIG_POSIX_MAX_FDS=4
CONFIG_POSIX_MAX_OPEN_FILES=4
Expected behavior
When a feature is disabled, it should not contaminate resulting .config with unrelated options. All Kconfigs of that feature shall be guarded
Impact
Confusion and potential leakge of features...
Logs and console output
grep ^CONFIG_POSIX build/zephyr/.config
CONFIG_POSIX_AEP_CHOICE_NONE=y
CONFIG_POSIX_OPEN_MAX=4
CONFIG_POSIX_PAGE_SIZE=0x1000
CONFIG_POSIX_LIMITS_RTSIG_MAX=0
CONFIG_POSIX_MAX_FDS=4
CONFIG_POSIX_MAX_OPEN_FILES=4
Environment (please complete the following information):
- OS: Linux
- Toolchain: Zephyr SDK
- Commit SHA or Version used: 3.7.-rc2