OpenBmc 常用命令汇总

发布时间 2023-10-13 11:28:57作者: 一如既往の

bitbake 相关

bitbake uboot   #  编译u-boot

# 编译系统镜像
bitbake core-image-minimal
bitbake core-image-base
bitbake fsl-image-gui
bitbake fsl-image-qt5
bitbake fsl-image-multimedia

#只下载不编译:
bitbake -c fetchall    core-image-minimal

#跳过错误,继续编译:
bitbake -k core-image-minimal

#查看编译执行task: 
bitbake xx-image -c listtasks

#查找 包:
bitbake -s | grep packagename

#查找包下载地址:
bitbake -e xxx-image | grep ^SRC_URI=

#查看软件依赖关系:
bitbake -g  packagename

#清除编译结果:
bitbake -c clean -v u-boot
bitbake -c cleanall     xx-image            #清除所有编译中间
bitbake -c cleansstate   xx-image            #清除编译 
                   
生成编译 中的配置文件和类文件:
bitbake -e > mybuild.log