Skip to content

POSIX kconfigs show up although POSIX APIs is not being used #75843

@nashif

Description

@nashif

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:

  1. west build -b qemu_x86 samples/hello_world
  2. 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

Metadata

Metadata

Assignees

Labels

area: POSIXPOSIX API LibrarybugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions