Outils pour utilisateurs

Outils du site


francois:yocto

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
francois:yocto [2018/04/08 15:54] – créée francoisfrancois:yocto [2018/04/08 16:30] (Version actuelle) – francois
Ligne 1: Ligne 1:
 ====== Yocto tips and tricks ====== ====== Yocto tips and tricks ======
 +
 +===== resources =====
 +
 +Un doc donnant les usages habituels de yocto : {{ :francois:boulot:l-813e_1.pdf |Working with Poky and Bitbake}}
 +
 +===== Bitbake =====
 +
 ^ Command ^ Description ^ ^ Command ^ Description ^
-|hob | bitbake frontend/GUI.| +|''hob'' | bitbake frontend/GUI.| 
-|bitbake-layers show-recipes "*-image-*" | Show possible images to bake. Without "*-images-*", it shows ALL recipes| +|''bitbake-layers show-recipes "*-image-*"'' | Show possible images to bake. Without "*-images-*", it shows ALL recipes| 
-|bitbake-layers show-layers | Show layers | +|''bitbake-layers show-layers'' | Show layers | 
-|bitbake –v <image> 2>&1 | tee image_build.log Print (on console) and store verbose baking| +|''bitbake –v <image> 2>&1'' | tee image_build.log Print (on console) and store verbose baking| 
-|bitbake virtual/kernel -c menuconfig| Interactive kernel configuration| +|''bitbake virtual/kernel -c menuconfig''| Interactive kernel configuration| 
-|bitbake <package> -c  devshell| Open a new shell where with neccesary system values already defined for package| +|''bitbake <package> -c  devshell''| Open a new shell where with neccesary system values already defined for package| 
-|bitbake <package> -c listtasks| List all tasks for package| +|''bitbake <package> -c listtasks''| List all tasks for package| 
-|bitbake <package> -c <task>| Execute a particular package's task. Default Tasks names: fetch, unpack, patch, configure, compile, install, package, package_write, and build.| +|''bitbake <package> -c <task>''| Execute a particular package's task. Default Tasks names: fetch, unpack, patch, configure, compile, install, package, package_write, and build.| 
-|bitbake <image> -c fetchall | Fetch sources for a particular image| +|''bitbake <image> -c fetchall'' | Fetch sources for a particular image| 
-|bitbake <image> | Bake an image (add -k to continue building even errors are found in the tasks execution)| +|''bitbake <image>'' | Bake an image (add -k to continue building even errors are found in the tasks execution)| 
-|bitbake <image > -g -u depexp | Show the package dependency for image.| +|''bitbake <image > -g -u depexp'' | Show the package dependency for image.| 
-|bitbake -s || grep <pkg> Check if certain package is present on current Yocto Setup +|''%%bitbake -s | grep <pkg>%%''| Check if certain package is present on current Yocto Setup| 
-|bitbake -g <pkg> && cat pn-depends.dot | grep -v -e '-native' | grep -v digraph | grep -v -e '-image' | awk '{print $1}' | sort | uniq Show package's dependencies +|''%%bitbake -g <pkg> && cat pn-depends.dot | grep -v -e '-native' | grep -v digraph | grep -v -e '-image' | awk '{print $1}' | sort | uniq%%''|Show package's dependencies| 
-bitbake -g <image> && cat pn-depends.dot | grep -v -e '-native' | grep -v digraph | grep -v -e '-image' | awk '{print $1}' | sort | uniq Show image's packages+|''%%bitbake -g <image> && cat pn-depends.dot | grep -v -e '-native' | grep -v digraph | grep -v -e '-image' | awk '{print $1}' | sort | uniq%%''|Show image's packages|
  
 **Example:** To show all packages included on fsl-image-gui **Example:** To show all packages included on fsl-image-gui
   $ bitbake fsl-image-gui -g -u depexp   $ bitbake fsl-image-gui -g -u depexp
-   + 
-> NOTE: This command will open a UI window, so it must be execute on a console inside the host machine (either virtual or native).+> Note: This command will open a UI window, so it must be execute on a console inside the host machine (either virtual or native).
  
 **Example:** To (force) compiling a kernel and then build, type: **Example:** To (force) compiling a kernel and then build, type:
   $ bitbake  linux-imx -f -c compile   $ bitbake  linux-imx -f -c compile
   $ bitbake linux-imx   $ bitbake linux-imx
 +  
 +===== Création du SDK =====
 +
 +  bitbake <image> ‐c populate_sdk
francois/yocto.1523202848.txt.gz · Dernière modification : (modification externe)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki