This project provides tools that perform custom tasks or full build on a given recipe's dependencies which are recipes also.
The idea is the following:
- Generate a recipe's dependencies list
- Remove the recipe itself from the list to avoid
bitbakeing it - Loop through the list and run the full or given task on the recipe
This project provide two scripts that do the same thing:
bitbake-deps.sh: Can be ran from anywhere.bitbake-deps: Must be copied topoky/bitbake/binto be able to usebitbakelibrary
- 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-minimalWhen enabling DEBUG, bitbake output will be shown along side the [DEBUG] log message.
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- 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- Complete the Python
bitbake-depscript