Skip to main content

Tools for Zephyr Kconfig files

Project description

Zephyr KConfig

Various tools/helpers/cli to assist with Zephyr's KConfig

Run / Install

Run via uvx

# always fetches the latest version
uvx --from zepyhr-kconfig --help

Install as a tool (via uv)

# installs the current version
uv tool install zephyr-kconfig

Above also install zkc cli (also accessible via zephyr-kconfig if you have conflict with zkc)

# examples - (zkc is an alias to zephyr-kconfig)
zkc --help
zephyr-kconfig --help

Add to your project

uv add zephyr-kconfig --dev

and then run the cli via

uv run zkc --help

Features

Below examples are assuming you are running the tool globally

Note - uvx does sandboxing (virtualenv) for you so no need to worry

Get info on a KConfig item

# get the description as JSON output for CONFIG_LWM2M_SHELL
uvx zepyhr-kconfig --release 4.3.0 get CONFIG_LWM2M_SHELL

Example output

A partial CONFIG spec will get all items that start with the provided input for example CONFIG_LWM2M_ will output all L2M2M config items

Use --exact to get the info on CONFIG_LWM2M only

Use --metadata to get some extra fields (such as linenr, menupath etc)

Use --indent -1 to remove any indentation (default is 2)

Get deps on a KConfig item

# get the dependencies for CONFIG_LWM2M_SHELL
uvx zepyhr-kconfig --release 4.3.0 deps CONFIG_LWM2M_SHELL

For above example output would be:

CONFIG_LWM2M && CONFIG_NETWORKING

The input symbol should be exact

Pretty Print KConfig item(s)

# show the description of symbol(s)
uvx zepyhr-kconfig --release 4.3.0 pprint CONFIG_LWM2M_SHELL

Use --exact to print only one symbol

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zephyr_kconfig-0.2.1.tar.gz (77.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zephyr_kconfig-0.2.1-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file zephyr_kconfig-0.2.1.tar.gz.

File metadata

  • Download URL: zephyr_kconfig-0.2.1.tar.gz
  • Upload date:
  • Size: 77.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zephyr_kconfig-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1f6c70d321be847548e03581959d04fa905cef1d8a92526e7f54aacb0b34a2fc
MD5 d7ddf2fce40def51694641461d92aa57
BLAKE2b-256 cb1fab717afaed4c06bdd5158212e4991c588552ec3d8eac3317a8747266e8bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for zephyr_kconfig-0.2.1.tar.gz:

Publisher: publish.yaml on ksachdeva/zephyr-kconfig

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zephyr_kconfig-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: zephyr_kconfig-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zephyr_kconfig-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 410bb30e5f3e2d8c24768063c5ebef0f9190cd33f6ec82c56283ce6bdc6d2b53
MD5 77bc1dddf5e52d7e04fdc3b920f4c864
BLAKE2b-256 720c09d88561657bcd86a3202c0624057d865b2187b154d546ec5f5f1580c07d

See more details on using hashes here.

Provenance

The following attestation bundles were made for zephyr_kconfig-0.2.1-py3-none-any.whl:

Publisher: publish.yaml on ksachdeva/zephyr-kconfig

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page