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
.
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
Built Distribution
File details
Details for the file bbclient-0.8.0.tar.gz
.
File metadata
- Download URL: bbclient-0.8.0.tar.gz
- Upload date:
- Size: 29.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.28.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c441749003ae59cb40b22f8979556ce429528c5fc358c65acb6c9eb387eb758 |
|
MD5 | 55e21c0b7ea3c0f6b8d154189fc5b0c9 |
|
BLAKE2b-256 | 8bd68a83736f47fbb21f94821cc5c77b2045b35f9338f42558e29f2fee8d70e0 |
File details
Details for the file bbclient-0.8.0-py3-none-any.whl
.
File metadata
- Download URL: bbclient-0.8.0-py3-none-any.whl
- Upload date:
- Size: 47.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.28.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b51084e218b62fb61c23527265dabeb0b553ed1e91e6afabba659113eabfd12b |
|
MD5 | 1c7b59995fccd7941e4f89aaab017bf7 |
|
BLAKE2b-256 | edfcf533af2b7e30ee191eac0abc8cf7b9c0218b949e47cfcc271dfcfaaaf796 |