yocto-public/4-workflow/debug.md

536 B

Debugging Yocto builds

# Build $TARGET and display logs on error
bitbake $TARGET -v


# Display all environment variables, how they are
#  set and the functions for building $TARGET
bitbake -e $TARGET

# To filter informations related to a variable
bitbake -e $TARGET | grep "^VARIABLE\b" -B 20


# View packages & their dependencies:
bitbake -u depexp -g $TARGET


# Create a dependency graph for $TARGET
bitbake -g $TARGET

#Convert and open a graph file:
dot -Tsvg $FILE.dot -o /tmp/graph.svg && xdg-open /tmp/graph.svg