bitbake常用命令

分享一些yocto常用命令

http://wiki.kaeilos.com/index.php/Bitbake_options

bitbake

Build package (including creating package)

1
$ bitbake -c cleansstate <pkgname>

Cleans up all the tasks state with regard to the given This =ption is frequently used during the development of new recipes

1
$ bitbake -e <pkgname>

Displays the internal state of variables used by BitBake =E6��示bb有哪些任务

1
$ bitbake <pkgname> -c listtasks

Tasks available for a package/recipe

1
$ bitbake <pkgname> -c rebuild -f

Clean and build again a package

1
$ bitbake <pkgname> -c fetch -f 强制下载代码

Download again the source program 交互模式

1
$ bitbake <pkgname> -c devshell

Expand a gnome xterm ready to raise commands

1
$ bitbake <pkgname> -c clean/compile 编译或者清理单个包

Clean or compile package.

1
$ bitbake package-index

Make package index files for feeds

1
$ bitbake <target_image>

Build image contains task-base packages

1
$ bitbake <target_image> -c buildall -f

Build pending packages for \code{target_image}

1
$ bitbake <target_image> -c rootfs -f

Populate rootfs again for \code{target_image}

1
$ bitbake -e <pkgname> | grep ^S=

Finds the source code. 输出包代码的位置

1
$ bitbake -e <target> | grep ^WORKDIR=

Finds bitbakes’s working directory.

1
$ bitbake -e <image-target> | grep ^IMAGE_FSTYPES=

Finds the image types being build

1
$ bitbake -h

Prints out the following help page

Show package dependencies

1
$bitbake -g <pkg> && cat pn-depends.dot | grep -v -e '-native' | grep -v =igraph | grep -v -e '-image' | awk '{print $1}' | sort | uniq

bitbake-layers

usage: bitbake-layers [arguments]

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Available commands:
help
display general help or help on a specified command
show-recipes =E6��看所有的recipes名字
list available recipes, showing the layer they are provided by
show-cross-depends
figure out the dependency between recipes that crosses a layer =oundary.
show-appends
list bbappend files and recipe files they apply to
flatten
flattens layer configuration into a separate output directory.
show-layers
show current configured layers
show-overlayed
list overlayed recipes (where the same recipe exists in another =ayer)

bitbake-layers show-layers 察看层

bitbake-layers show-overlayed

bitbake agl-demo-platform-crosssdk 编译SDK

bitbake virtual/kernel -c menuconfig 图形化配置内核