mirror of
git://git.yoctoproject.org/meta-rockchip.git
synced 2025-07-05 05:04:47 +02:00

oe-core has completely re-written the fitImage support starting roughly at commit [1], update meta-rockchip to match. Most of the MACHINEs in meta-rockchip use a fitImage for the kernel, but some don't. Create a boolean variable (RK_KERNEL_FITIMAGE), enabled by default, to keep track of which ones do and which ones don't. Use this variable to decide how to configure various image-related fields. Build tested with all meta-rockchip MACHINEs both with and without RAUC. Run tested on the following with RAUC configured: - nanopi-m4b - nanopi-r2s - radxa-zero-3e - rock-pi-4b - rock-pi-e - rock-pi-s Run tested on the following without RAUC: - radxa-zero-3e - rock-pi-e - rock-pi-s [1] oe-core: 3442d9297dca ("oe-selftest: fitimage: test external dtb") Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de> Signed-off-by: Trevor Woerner <twoerner@gmail.com>
36 lines
1.2 KiB
PHP
36 lines
1.2 KiB
PHP
# meta-rockchip default settings
|
|
MACHINEOVERRIDES =. "${@bb.utils.contains('ROCKCHIP_CLOSED_TPL', '1', 'closed-tpl:', '', d)}"
|
|
MACHINEOVERRIDES =. "rockchip:"
|
|
|
|
# kernel
|
|
# RK_KERNEL_FITIMAGE needs to be set before the next "require ..."
|
|
RK_KERNEL_FITIMAGE ?= "True"
|
|
PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
|
|
KCONFIG_MODE ?= "alldefconfig"
|
|
MACHINE_ESSENTIAL_EXTRA_RDEPENDS_KERNEL = "kernel-devicetree"
|
|
MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "${MACHINE_ESSENTIAL_EXTRA_RDEPENDS_KERNEL}"
|
|
require ${@ 'conf/machine/include/rockchip-fitimage.inc' if bb.utils.to_boolean(d.getVar('RK_KERNEL_FITIMAGE')) else ''}
|
|
KERNEL_IMAGETYPE ?= "zImage"
|
|
|
|
# xserver
|
|
XSERVER = " \
|
|
xserver-xorg \
|
|
xserver-xorg-utils \
|
|
xserver-xorg-xvfb \
|
|
xserver-xorg-extension-glx \
|
|
xserver-xorg-module-libwfb \
|
|
xserver-xorg-module-exa \
|
|
xf86-video-modesetting \
|
|
xf86-input-evdev \
|
|
xf86-input-mouse \
|
|
"
|
|
|
|
# misc
|
|
SERIAL_CONSOLES ?= "1500000;ttyS2"
|
|
RK_CONSOLE_BAUD ?= "${@d.getVar('SERIAL_CONSOLES').split(';')[0]}"
|
|
RK_CONSOLE_DEVICE ?= "${@d.getVar('SERIAL_CONSOLES').split(';')[1].split()[0]}"
|
|
|
|
# Discoverable Partitions Specification (DPS)
|
|
ROOT_DPS:arm = "69dad710-2ce4-4e3c-b16c-21a1d49abed3"
|
|
ROOT_DPS:aarch64 = "b921b045-1df0-41c3-af44-4c6f280d3fae"
|