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

Add an example of implementing rauc on a rockchip board. Adding the meta-rauc layer, adding 'rauc' to DISTRO_FEATURES, and enabling RK_RAUC_DEMO will build an image using the example provided in dynamic-layers/rk-rauc-demo. This example uses a simple A/B + D scheme (i.e. two root partitions and a non-updated /data partition). Repartitioning occurs automatically on first boot thanks to systemd's 'repart' mechanism. NOTE: - this example only works with systemd If you wish to provide your own implementation, simply add the meta-rauc layer, add 'rauc' to DISTRO_FEATURES, don't enable RK_RAUC_DEMO, and provide your own implementation in a separate layer. Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de> Signed-off-by: Trevor Woerner <twoerner@gmail.com>
28 lines
948 B
Plaintext
28 lines
948 B
Plaintext
# Copyright (C) 2014 NEO-Technologies
|
|
# Released under the MIT license (see COPYING.MIT for the terms)
|
|
|
|
# We have a conf and classes directory, add to BBPATH
|
|
BBPATH .= ":${LAYERDIR}"
|
|
|
|
# We have recipes-* directories, add to BBFILES
|
|
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend"
|
|
|
|
BBFILE_COLLECTIONS += "rockchip"
|
|
BBFILE_PATTERN_rockchip = "^${LAYERDIR}/"
|
|
BBFILE_PRIORITY_rockchip = "1"
|
|
|
|
# This should only be incremented on significant changes that will
|
|
# cause compatibility issues with other layers
|
|
LAYERVERSION_rockchip = "1"
|
|
LAYERSERIES_COMPAT_rockchip = "scarthgap"
|
|
LAYERDEPENDS_rockchip = "core meta-arm"
|
|
|
|
BBFILES_DYNAMIC += " \
|
|
qt5-layer:${LAYERDIR}/dynamic-layers/qt5-layer/*/*/*.bb \
|
|
qt5-layer:${LAYERDIR}/dynamic-layers/qt5-layer/*/*/*.bbappend \
|
|
"
|
|
BBFILES_DYNAMIC += " \
|
|
rauc:${LAYERDIR}/dynamic-layers/rk-rauc-demo/*/*/*.bb \
|
|
rauc:${LAYERDIR}/dynamic-layers/rk-rauc-demo/*/*/*.bbappend \
|
|
"
|