User Tools

Site Tools


yocto_project

Overview

All sorts of pages related to OE/YP.

OUTLINE (pages to come)

Tools

toaster

wic

bmaptool

Testing/analysis/utility routines

ptest

  • “inherit ptest”
  • DISTRO_FEATURES += “ptest”
  • /usr/lib/<pkg>/ptest
  • ptest-runner

Profiling

Utility routines/scripts

  • bitbake-layers
  • oe-pkgdata-util
  • yocto-check-layer

Initialization manager

  • INIT_MANAGER

Packaging

  • defining packages (PACKAGE_BEFORE_PN)
  • FILES_${PN} = “…”

TO DO

devtool/kernel stuff

Build and install eSDK under ~/pokysdk.

MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-modules"

IMAGE_FEATURES

  • wic (image creator, kickstart files)

* IMAGE_FEATURES/EXTRA_IMAGE_FEATURES (first within recipe, latter in local.conf)

  • image.bbclass
  • core-image.bbclass
  • populate_sdk_base.bbclass
  • rootfs-postcommands.bbclass

Packaging (PACKAGES =+)

  • busybox
  • openssh
  • e2fsprogs
  • psmisc
  • vim

Classes:

  • package
  • lib_package
  • bin_package

Tasks

  • addtask
  • bitbake -c listtasks <recipe>

Adding a new machine

quilt

Install quilt. (dev manual, sec 3.7)

$ quilt new my_upcoming.patch
$ quilt add strace.c
$ ... make changes ...
$ quilt refresh

DO

Security

  • security_flags.inc
  • Minimize footprint
  • Don't include FEATURE debug-tweaks
  • set up passwords with extrausers class
  • meta-security layer
  • static analysis tools for new code
  • secure boot
  • meta-selinux layer (for hardening image)
  • SMACK framework

Misc

  • Rewrite packaging section in dev manual (PACKAGE_BEFORE_PN)
  • do_configure[depends] = … perf recipe for kernel headers
  • RM_WORK_EXCLUDE
  • MACHINEOVERRIDES
  • PARALLEL_MAKE = “”
  • devtool
  • eSDK vs SDK
  • development containers
  • auto upgrade helper
  • recipe reporting system
  • Patchwork
  • AutoBuilder
  • Pseudo
  • workflow
  • sstate
  • structure of WORKDIR
  • logging
  • image (SD card) creation
  • do_deploy() versus do_install() (https://lists.yoctoproject.org/g/yocto/message/48326)
  • recipetool (dev tasks manual)
  • QEMU
  • submitting patches
  • licenses (SPDX)
  • priorities (BBPATH, layers)
  • externalsrc.bbclass
  • SRC_URI subdir
  • PACKAGE_CLASSES
  • multilib/multiconfig
  • sysroots (native vs target)
  • FILESPATH/FILESEXTRAPATHS
  • order of patch application
  • pkgconfig
  • pseudo/LD_PRELOAD
  • bitbake-layers
  • MACHINEOVERRIDES
  • yocto-check-layer
    • lib/checklayer/
  • packagegroup (RDEPENDS, RRECOMMENDS)
  • inherit systemd
  • inherit update-rc.d (sysvinit)
  • appending to tasks
  • installing a post-install script
  • splitting app into multiple packages
  • inherit allarch (os-release)
  • pkg_{preinst, postinst, pkg_prerm, pkg_postrm}
  • [noexec] and other flags
  • dos2unix.bbclass
  • AUH (auto upgrade helper) OR “devtool check-upgrade-status”
  • quilt
  • COMPATIBLE_HOST
yocto_project.txt · Last modified: 2020/06/16 16:55 by rpjday