Skip to main content

bbclient provides utility commands for bitbake.

Project description

BBClient

BBClient provides command interface for bitbake server.

The typical use case is as follows. You can do it via shell or python easily.

  • Get recipe variable value
  • Get layer info
  • Get image recipes
  • Get all the packages
  • Start a task of packages

For example, see below.
Please note that before using bbclient in shell, you have to initialize env by oe-init-build-env.

# Please note that before using bbclient in shell, you have to initialize env by oe-init-build-env.
$ source oe-init-build-env
$ bbclient find_best_provider gcc
[null, null, null, "/PATH/TO/POKY/meta/recipes-devtools/gcc/gcc_12.1.bb"]

You can do the same with python.

# get recipe file path for specified package
ret: List[str] = client.find_best_provider("gcc")
target_recipe_file_path: str = ret[3]

# parse the recipe file
data_store_index: int = client.parse_recipe_file(target_recipe_file_path)

# get variable in the recipe file
ret: Any = client.data_store_connector_cmd(data_store_index, "getVar", "PN")

System Requirements

  • python: 3.7 or later
  • yocto: dunfell or kirkstone or main

Please note that this command(and also bitbake) doesn't support dunfell with python3.10.
This is because collections.Iterable has not been removed, so dunfell with python3.10 will cause exception.

Installation

pip3 install bbclient

Document

Note For using with shell, we have not documented yet. Please see $bbclient --help.

Development setup

TODO

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

bbclient-0.7.1.tar.gz (27.5 kB view details)

Uploaded Source

Built Distribution

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

bbclient-0.7.1-py3-none-any.whl (45.1 kB view details)

Uploaded Python 3

File details

Details for the file bbclient-0.7.1.tar.gz.

File metadata

  • Download URL: bbclient-0.7.1.tar.gz
  • Upload date:
  • Size: 27.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for bbclient-0.7.1.tar.gz
Algorithm Hash digest
SHA256 8acefff4f10535b05c9e2a40a8763b267c4b5f3642ee65267169e0b2872ac422
MD5 5365f35e47cd3abcace33e2a9b5b1732
BLAKE2b-256 21bd700e810f83c1d891600cbba2dba989a15ba93c09b55e7e152c26ecc5e26f

See more details on using hashes here.

File details

Details for the file bbclient-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: bbclient-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 45.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for bbclient-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ef0f9e0e2611a7eaad3bf617e360e997a22780a4d8b76f4bf346916b1cecc367
MD5 6b6a3c614e2cc5e4481b8214a4a63385
BLAKE2b-256 c238f994d44c4e0f90e12012b418e265f7f8d228a10ac50153d36a9f53be0a81

See more details on using hashes here.

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