• 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> 
    一勤天下无难事。
  • 相关阅读:
    数据库之小问题
    网络基础
    react-fiber 解析
    【like-react】手写一个类似 react 的框架
    istat menus 序列号
    Git学习
    JavaScript设计模式与开发实践【第一部分】
    javascript 原生bind方法实现
    requirejs 学习
    mac 安装maven+eclipse
  • 原文地址:https://www.cnblogs.com/nowroot/p/14028269.html
Copyright © 2020-2023  润新知