Code Monkey home page Code Monkey logo

bitbake-deps's Introduction

Bitbake On Recipe Dependencies

This project provides tools that perform custom tasks or full build on a given recipe's dependencies which are recipes also.

What ?

The idea is the following:

  1. Generate a recipe's dependencies list
  2. Remove the recipe itself from the list to avoid bitbakeing it
  3. Loop through the list and run the full or given task on the recipe

How ?

This project provide two scripts that do the same thing:

  • bitbake-deps.sh: Can be ran from anywhere.
  • bitbake-deps: Must be copied to poky/bitbake/bin to be able to use bitbake library

Shell Solution

  • Usage:
./bitbake-deps.sh target [task]

The shell script provide a DEBUG level that you can activate by setting the variable ENABLE_DEBUG to 1:

ENABLE_DEBUG=1 ./bitbake-deps.sh core-image-minimal

When enabling DEBUG, bitbake output will be shown along side the [DEBUG] log message.

Python Solution

You need to copy the bitbake-deps script to poky/bitbake/bin and resource the oe-ini-build-env script again. Then you can use it like follows:

  • Usage:
bitbake-deps --help
usage: bitbake-deps [-h] -r RECIPE [-t TASK]

Run Tasks on Dependencies

optional arguments:
  -h, --help            show this help message and exit
  -r RECIPE, --recipe RECIPE
                        Recipe name
  -t TASK, --task TASK  Custom task to run on deps
  • Fetch all dependencies of core-image-minimal
bitbake-deps -r core-image-minimal -t do_fetch

Use case examples

  • Fetch all dependencies of an image:
./bitbake-deps.sh core-image-minimal do_fetch
  • Build all dependencies of a given package:
./bitbake-deps.sh virtual/kernel

TODO

  • Complete the Python bitbake-dep script

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.