Yocto中常用命令和知识速查

查看内核代码位置

bitbake -e linux-s32 | grep ^S=

重新编译内核和dtb

bitbake linux-s32 -C compile -f

查找精确的软件包名字

bitbake -s | grep linux

查找软件包任务配置

find -name linux-s32*.bb

查看软件包支持哪些可执行的动作

bitbake <软件包名字> -c listtasks

yocto中rpm包管理

http://static.kancloud.cn/digest/yocto/138638

显示层

bitbake-layers show-layers

显示所有task

bitbake-layers show-recipes

查找软件包:

oe-pkgdata-util find-path /usr/bin/nc.netcat

查看软件包部署哪些文件:

oe-pkgdata-util list-pkg-files

批量查找二进制文件所属的软件包

cat ~/work/f | xargs -d\n -n1 oe-pkgdata-util find-path

f文件内容:
/bin/dnsdomainname
/bin/hostname.net-tools
/bin/su
/bin/su.shadow
... ...

批量查找rootfs里面有没有二进制文件

cat ~/work/binarys | xargs -d\n -n1 find -name | sort

binarys文件内容:
gdb
gdbserver
nc
netcat
... ...