Please note that User Registration has been temporarily disabled due to a recent increase in automated registrations. If anyone needs an account, please request one here: RequestAccount. Thanks for your patience!
Difference between revisions of "Bitbake cheat sheet"
(New page: ==Intention== This page is intended to make the live of new developers easier. Feel free to add all your usual bitbake commands to this page ==Working with tmp/work== A thing you usually d...) |
(Add some more cheats) |
||
| (7 intermediate revisions by 7 users not shown) | |||
| Line 1: | Line 1: | ||
==Intention== | ==Intention== | ||
| − | This page is intended to make the | + | This page is intended to make the life of new developers easier. Feel free to add all your usual bitbake commands to this page |
| + | |||
| + | ==Start a build== | ||
| + | To get a package build just type | ||
| + | bitbake foo | ||
| + | where foo is the name of the package without any extension or version number. | ||
| + | |||
| + | ==Clean up== | ||
| + | bitbake -c clean foo | ||
| + | This command will clean up your tmp dir for the given package. It is very useful if you work on a new .bb recipe. Without it your changes to the recipe may not work. | ||
| + | |||
==Working with tmp/work== | ==Working with tmp/work== | ||
| − | + | To recompile your source code if you change a line in it. | |
| − | bitbake -f -c foo | + | bitbake -f -c compile foo |
| − | + | The command above recompiled the code for foo. To build the ipk | |
| − | + | use the command below | |
bitbake foo | bitbake foo | ||
| − | + | ||
| + | ==Check Recipe Version== | ||
| + | bitbake -s | grep foo | ||
| + | |||
| + | ==Check Bitbake Version== | ||
| + | bitbake --version | ||
| + | |||
| + | ==Run Bitbake A Little at a Time== | ||
| + | bitbake -n foo | ||
| + | # lists the tasks | ||
| + | bitbake -c taskname foo | ||
| + | |||
[[Category:Dev]] | [[Category:Dev]] | ||
Latest revision as of 19:57, 5 June 2012
Contents |
[edit] Intention
This page is intended to make the life of new developers easier. Feel free to add all your usual bitbake commands to this page
[edit] Start a build
To get a package build just type
bitbake foo
where foo is the name of the package without any extension or version number.
[edit] Clean up
bitbake -c clean foo
This command will clean up your tmp dir for the given package. It is very useful if you work on a new .bb recipe. Without it your changes to the recipe may not work.
[edit] Working with tmp/work
To recompile your source code if you change a line in it.
bitbake -f -c compile foo
The command above recompiled the code for foo. To build the ipk use the command below
bitbake foo
[edit] Check Recipe Version
bitbake -s | grep foo
[edit] Check Bitbake Version
bitbake --version
[edit] Run Bitbake A Little at a Time
bitbake -n foo
# lists the tasks
bitbake -c taskname foo