GithubHelp home page GithubHelp logo

angrymane / bbclient Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 3.26 MB

provides utility commands for bitbake

License: MIT License

Python 97.71% Shell 1.09% Makefile 0.39% CSS 0.31% Batchfile 0.50%
bitbake yocto

bbclient's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.