zoukankan      html  css  js  c++  java
  • 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> 
    一勤天下无难事。
  • 相关阅读:
    UVa-133-救济金发放
    UVa-340-猜数字
    UVa-1584-环状序列
    UVa-1585-得分
    UVa-1586-分子量
    BZOJ-3289: Mato的文件管理(莫队算法+树状数组)
    HDU-2824 The Euler function(欧拉函数)
    2017年10月12日22:27:20
    HDU-4715 Difference Between Primes(线性筛法)
    POJ-1185 炮兵阵地(状态压缩DP)
  • 原文地址:https://www.cnblogs.com/nowroot/p/14028269.html
Copyright © 2011-2022 走看看