All Projects → shantanoo-desai → Yoctoproject Cheatsheet

shantanoo-desai / Yoctoproject Cheatsheet

Licence: mit
One-Stop Repository for all that wish to skim through or deep-dive into Yocto Project

Projects that are alternatives of or similar to Yoctoproject Cheatsheet

Weird proxies
Reverse proxies cheatsheet
Stars: ✭ 701 (+1697.44%)
Mutual labels:  cheatsheet
Python
Python cheatsheet
Stars: ✭ 25 (-35.9%)
Mutual labels:  cheatsheet
Swift Cheatsheet
A quick reference cheat sheet for common, high level topics in Swift.
Stars: ✭ 914 (+2243.59%)
Mutual labels:  cheatsheet
Pi Pwnbox Rogueap
Homemade Pwnbox 🚀 / Rogue AP 📡 based on Raspberry Pi — WiFi Hacking Cheatsheets + MindMap 💡
Stars: ✭ 798 (+1946.15%)
Mutual labels:  cheatsheet
Moleculer Cheatsheets
📚 Cheatsheets for Moleculer microservices framework
Stars: ✭ 22 (-43.59%)
Mutual labels:  cheatsheet
Active Directory Exploitation Cheat Sheet
A cheat sheet that contains common enumeration and attack methods for Windows Active Directory.
Stars: ✭ 870 (+2130.77%)
Mutual labels:  cheatsheet
Py2rs
A quick reference guide for the Pythonista in the process of becoming a Rustacean
Stars: ✭ 690 (+1669.23%)
Mutual labels:  cheatsheet
Llvm Cheatsheet
LLVM, clang, ninja, dyld and others.
Stars: ✭ 36 (-7.69%)
Mutual labels:  cheatsheet
Elm Cheat Sheet
An overview of Elm syntax and features
Stars: ✭ 928 (+2279.49%)
Mutual labels:  cheatsheet
Filterbypass
Browser's XSS Filter Bypass Cheat Sheet
Stars: ✭ 884 (+2166.67%)
Mutual labels:  cheatsheet
Pysheeet
Python Cheat Sheet
Stars: ✭ 6,989 (+17820.51%)
Mutual labels:  cheatsheet
Dotfiles
My dotfiles
Stars: ✭ 19 (-51.28%)
Mutual labels:  cheatsheet
Awesome Cheatsheets
超级速查表 - 编程语言、框架和开发工具的速查表,单个文件包含一切你需要知道的东西 ⚡
Stars: ✭ 7,930 (+20233.33%)
Mutual labels:  cheatsheet
Modern Typescript With Examples Cheat Sheet
Fully printable summary of modern TypeScript language features with extensive examples to help you learn
Stars: ✭ 766 (+1864.1%)
Mutual labels:  cheatsheet
Opencv Cheat Sheet
Opencv cheat sheet for C++
Stars: ✭ 30 (-23.08%)
Mutual labels:  cheatsheet
Cheat.sh
the only cheat sheet you need
Stars: ✭ 27,798 (+71176.92%)
Mutual labels:  cheatsheet
Analysissummary
Vorlesung Analysis für Informatiker WS16/17 an der TUM
Stars: ✭ 10 (-74.36%)
Mutual labels:  cheatsheet
Cheatsheet
Vue.js 2.2 complete API cheatsheet
Stars: ✭ 984 (+2423.08%)
Mutual labels:  cheatsheet
Cheatsheet Docker A4
📖 Docker CheatSheets In A4
Stars: ✭ 32 (-17.95%)
Mutual labels:  cheatsheet
Magit Cheatsheet
Stars: ✭ 13 (-66.67%)
Mutual labels:  cheatsheet

Yocto Project Cheatsheet

A summary of all things one might need to work with Yocto Project. One stop repository for Yocto since there are so many variables and CLIs to work with.

Contributing

Please feel free to add / adapt the list accordingly via PRs. As OE/Yocto Project still has a steep learning-curve, a better way would be to share resources with the community.

Commands

All hints for CLIs like bitbake, bitbake-layers, devtool etc. used within common Yocto Project development

Purpose Command(s)
Populate Classic SDK bitbake -c populate_sdk <IMAGE_NAME>
Populate Extensible SDK bitbake -c populate_sdk_ext <IMAGE_NAME>
Start build from scratch cd $BUILD_DIR && rm -Rf tmp sstate-cache
Supported HW Boards ls sources/meta-<hardware>*/recipes*/conf/machine/*.conf
Supported Images ls sources/meta-<hardware>*/recipes*/images/*.bb
Single PR Server instance bitbake-prserv --host <server_ip> --port <port> --start
Find a package in a layer cd sources && find --name "*busybox*"
Find a recipe in a layer cd sources && find --name "*busybox*.bb*"
Search recipe bitbake-layers show-recipes "gdb*"
Find dependency cache devtool search <RegEx>
Dump global env & find bitbake -e|grep -w DISTRO_FEATURES
Locate source directory bitbake -e <recipe>|grep ^S=
Locate working directory bitbake -e <recipe>|grep ^WORKDIR=
devshell bitbake -c devshell <target>
devpyshell bitbake -c devpyshell <target>
List tasks for a recipe bitbake -c listtasks <target>
Force a build bitbake -f <target>
Force-run a specific task bitbake -c compile -f <target>
Current/given pkg version bitbake --show-versions
Verbose output bitbake -v <target>
Display debug information bitbake -DDD <target>
Send error report send-error-report ${LOG_DIR}/error-report/error-report_${TSTAMP}
Create a new layer yocto-layer create <layer_name>
Add custom layer bitbake-layers add-layer /path/to/your_meta-layer
Remove custom layer bitbake-layers remove-layer /path/to/your_meta-layer
Find all recipe layers bitbake-layers show-recipes
Find all clashing recipe bitbake-layers show-overlayed
Show all bbappend files bitbake-layers show-appends
Flatten all Layers bitbake-layers flatten <output_dir>
Show recipe cross-depends bitbake-layers show-cross-depends
List layer dependencies from OE Index bitbake-layers layerindex-show-depends <layer_name>
Fetch & add layer using OE Index bitbake-layers layerindex-fetch <layer name>

Configuration

All variables that can be added to files like bblayers.conf or local.conf or other configuration files in Yocto.

Purpose File Variable(s)
Add systemd local.conf DISTRO_FEATURES_append = " systemd"
VIRTUAL-RUNTIME_init_manager = "systemd"
Remove sysvinit local.conf DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
VIRTUAL-RUNTIME_initscripts = ""
Add strace local.conf CORE_IMAGE_EXTRA_INSTALL += "strace"
root Login w/o Password local.conf EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
Add gcc local.conf EXTRA_IMAGE_FEATURES ?= "tools-sdk"
Add dropbear-ssh-server local.conf EXTRA_IMAGE_FEATURES ?= "ssh-server-dropbear"
Add virtualization local.conf DISTRO_FEATURES_append = " virtualization"
Persistent Bitbake server local.conf BB_SERVER_TIMEOUT= "n" # n in seconds
Remove build packages local.conf INHERIT += "rm_work"
Exclude packages from cleaning local.conf RM_WORK_EXCLUDE += "recipe_name"
Avoid -dbg packages local.conf INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
Accept FSL's EULA license local.conf ACCEPT_FSL_EULA = "1"
Download Directory local.conf DL_DIR ?= "${BSP_DIR}/downloads/"
Configuring a Pre-mirror local.conf INHERIT += "own-mirrors"
SOURCE_MIRROR_URL = "http://example.com/source-mirror"
tarballs of git repos. local.conf BB_GENERATE_MIRROR_TARBALLS = "1"
Build using Pre-mirrors only local.conf BB_FETCH_PREMIRRORONLY = "1"
Add Package Mgmt. System local.conf EXTRA_IMAGE_FEATURES += "package-management"
Simple PR server local.conf PRSERV_HOST = "<server_ip>:<port>"
Enable build history local.conf INHERIT += "buildhistory"
Store build history in repo. local.conf BUILDHISTORY_COMMIT = "1"
Track image, pkg, SDKs change local.conf BUILDHISTORY_FEATURES = "image" # package or sdk
Track a file for buildhistory local.conf BUILDHISTORY_IMAGE_FILES += "/path/to/file"
Terminal for dev(py)shell local.conf OE_TERMINAL = "screen"
Submit Failed build error local.conf INHERIT += "report-error"
Number of parallel tasks local.conf BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}"
Value of -j in make local.conf PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}"
Add Real-Time Kernel local.conf PREFERRED_PROVIDER_virtual/kernel = "<RT_Kernel_Image_name_from_Meta-Layer>"

Misc.

All miscellaneous resources once can find for understanding the Yocto Project and working with it.

Documentation / Websites

Repositories

Blogs

Videos

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].