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.
Metadata
Release files for bbclient 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bbclient-0.8.0.tar.gz | 29.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bbclient-0.8.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 77.3 kB
Release files / bbclient-0.8.0.tar.gz
| Download URL | bbclient-0.8.0.tar.gz |
|---|---|
| Size | 29.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c441749003ae59cb40b22f8979556ce429528c5fc358c65acb6c9eb387eb758
|
|
BLAKE2b-256 checksum How to use checksums |
8bd68a83736f47fbb21f94821cc5c77b2045b35f9338f42558e29f2fee8d70e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / bbclient-0.8.0-py3-none-any.whl
| Download URL | bbclient-0.8.0-py3-none-any.whl |
|---|---|
| Size | 47.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b51084e218b62fb61c23527265dabeb0b553ed1e91e6afabba659113eabfd12b
|
|
BLAKE2b-256 checksum How to use checksums |
edfcf533af2b7e30ee191eac0abc8cf7b9c0218b949e47cfcc271dfcfaaaf796
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|