Embedded Linux build systems

Buildroot

override built-in package build steps in external.mk

# Strongswan TPM2 support
#STRONGSWAN_CONF_OPTS += \
#   --enable-tss-tss2=yes \
#   --enable-tpm=yes \

#STRONGSWAN_DEPENDENCIES += tpm2-tss tpm2-abrmd

# Start TPM2 abrmd before Strongswan
define TPM2_ABRMD_INSTALL_INIT_SYSV
    $(INSTALL) -D -m 0755 $(TPM2_ABRMD_PKGDIR)/S80tpm2-abrmd \
        $(TARGET_DIR)/etc/init.d/S38tpm2-abrmd
endef

Yocto

Fundamental concepts:

Good for: Collecting Software BOM

Debug:

bitbake-getvar -r ncurses SRC_URI

bitbake -e ncurses

TODO: Document custom layer

Tips from kc8apf

#linux #embedded #build