Skip to content

Instantly share code, notes, and snippets.

@calvinchengx
Created July 21, 2020 05:50
Show Gist options
  • Save calvinchengx/6e5a8749219156ef8745bef7184653ef to your computer and use it in GitHub Desktop.
Save calvinchengx/6e5a8749219156ef8745bef7184653ef to your computer and use it in GitHub Desktop.
This works
# Local configuration for meta-rpi images
# Yocto Project 3.1 Poky distribution [dunfell] branch
# This is a sysvinit system
# mask wireguard from meta-openembedded/meta-networking
# use version in meta-jumpnow to support kernels < 5.6
# with wireguard-linux-compat
BBMASK = "meta-networking/recipes-kernel/wireguard"
LICENSE_FLAGS_WHITELIST = "commercial"
DISTRO_FEATURES = "ext2 wayland opengl usbhost ${DISTRO_FEATURES_LIBC}"
DISTRO_FEATURES_BACKFILL_CONSIDERED += "pulseaudio"
PREFERRED_PROVIDER_jpeg = "libjpeg-turbo"
PREFERRED_PROVIDER_jpeg-native = "libjpeg-turbo-native"
PREFERRED_PROVIDER_udev = "eudev"
VIRTUAL-RUNTIME_init_manager = "sysvinit"
MACHINE_FEATURES_remove = "apm"
MACHINE_FEATURES_append =" vc4graphics"
IMAGE_FSTYPES = "tar.xz"
# Choose the board you are building for
#MACHINE = "raspberrypi"
#MACHINE = "raspberrypi0"
#MACHINE = "raspberrypi0-wifi"
#MACHINE = "raspberrypi2"
MACHINE = "raspberrypi3"
#MACHINE = "raspberrypi4"
#MACHINE = "raspberrypi-cm"
#MACHINE = "raspberrypi-cm3"
# Choices are Image or zImage if NOT using u-boot (no u-boot is the default)
# Choices are uImage or zImage if using u-boot, though if you choose zImage
# with u-boot you will also have to change the boot script boot command
KERNEL_IMAGETYPE = "zImage"
# uncomment for kernels < 5.6
WIREGUARD_COMPAT = "1"
# DISABLE_VC4GRAPHICS = "1"
DISABLE_OVERSCAN = "1"
ENABLE_UART = "1"
ENABLE_RPI3_SERIAL_CONSOLE = "1"
SERIAL_CONSOLES = "115200;ttyAMA0"
# SERIAL_CONSOLES_forcevariable = ""
# default is still 4.19, uncomment the following for 5.4
# PREFERRED_VERSION_linux-raspberrypi = "5.4.%"
# DL_DIR = "/src/oe"
# SSTATE_DIR = "/oe6/rpi/sstate-cache"
# TMPDIR = "/oe6/rpi/tmp-dunfell"
DISTRO = "poky"
PACKAGE_CLASSES = "package_deb"
# i686 or x86_64
SDKMACHINE = "x86_64"
# for no root passwd uncomment the following and comment the two extra user lines
#EXTRA_IMAGE_FEATURES = "debug-tweaks"
# for a root passwd, change jumpnowtek below to your password
INHERIT += "extrausers"
EXTRA_USERS_PARAMS = "usermod -P jumpnowtek root; "
# this will force root to change password on first login
# INHERIT += "chageusers"
# CHAGE_USERS_PARAMS = "chage -d0 root; "
USER_CLASSES = "image-mklibs image-prelink"
PATCHRESOLVE = "noop"
RM_OLD_IMAGE = "1"
INHERIT += "rm_work"
CONF_VERSION = "1"
DISTRO_FEATURES_append = " x11"
TOOLCHAIN_TARGET_TASK_append = " libgl-mesa-dev "
MACHINE_FEATURES_remove = "apm"
LINUX_KERNEL_TYPE = "preempt-rt"
ALSA += " \
libasound \
libavcodec \
libavdevice \
libavfilter \
libavformat \
libavutil \
libpostproc \
libswresample \
libswscale \
alsa-conf \
alsa-state \
alsa-utils \
alsa-utils-scripts \
"
CRYPTODEV = " \
cryptodev-module \
"
IMAGE_INSTALL_append = "\
${ALSA} \
${CRYPTODEV} \
ttf-dejavu-sans \
ttf-dejavu-sans-mono \
ttf-dejavu-sans-condensed \
ttf-dejavu-serif \
ttf-dejavu-serif-condensed \
ttf-dejavu-common \
avahi-daemon \
i2c-tools \
can-utils \
juce-binarybuilder \
rt-tests hwlatdetect \
libwebp \
"
PREFERRED_PROVIDER_virtual/wpebackend = "wpebackend-fdo"
# IMAGE_INSTALL_append = " bbexample hmiapp flutter-engine"
IMAGE_INSTALL_append = " wpewebkit cog"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment