yocto一些认识记录

IMAGE_FSTYPES=“ext3tar.bz2”   


IMAGE_ROOTFS_SIZE  
IMAGE_ROOTFS_ALIGNMENT 
_get_rootfs_size():ROOTFS_SIZE=`du-ks${IMAGE_ROOTFS}`BASE_SIZE=ROOTFS_SIZE*IMAGE_OVERHEAD_FACTORif(BASE_SIZE<IMAGE_ROOTFS_SIZE):IMG_SIZE=IMAGE_ROOTFS_SIZE+IMAGE_ROOTFS_EXTRA_SPACEelse:IMG_SIZE=BASE_SIZE+IMAGE_ROOTFS_EXTRA_SPACEIMG_SIZE=IMG_SIZE+IMAGE_ROOTFS_ALIGNMENT–1IMG_SIZE=IMG_SIZE%IMAGE_ROOTFS_ALIGNMENTreturnIMG_SIZE

log放的地方:
T=“${WORKDIR}/temp”  
log.do_<taskname>.<pid>

show-layers:  

show-recipes  
show-overlayed

执行特定的任务:
bitbake<target>-c<task>  
bitbake busybox-ccompile  

1.Fetch:Retrievethepackagesourcecodearchivesfordownloadsites,orclonesourcerepositoriesaswellasallapplicablepatchesandotherlocalfiles.
2.Unpack:Extractsourcecode,patches,andotherfilesfromtheirarchives.
3.Patch:Applythepatches.
4.Configure:Preparethesourcesforbuildingwithinthetargetenvironment.
5.Build:Compilethesources,archivetheobjectsintolibraries,and/orlinktheobjectsintoexecutableprograms.
6.Install:Copybinariesandauxiliaryfilestotheirtargetdirectoriesofanemulatedsystemenvironment.
7.Package:Createtheinstallationpackages,includinganymanifests,accordingtothechosenpackagemanagementsystems.

$bitbake-b editor.bb-ccompile
$bitbake-beditor.bb—cmd=compile
bitbake—help 

conf/bblayers.conf

conf/layer.conf

BitBakeMasterConfigurationFile(bitbake.conf)  

LayerConfiguration(layer.conf)

BuildEnvironmentConfiguration(local.conf)  

DistributionConfiguration(<distribution-name>.conf)  

MachineConfiguration(<machine-name>.conf)  

yocto-layercreate<layername> 

 

posted @ 2020-11-24 02:02  卷哭你  阅读(398)  评论(0编辑  收藏  举报