Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions meta-rauc-community/conf/layer.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 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 += "meta-rauc-community"
BBFILE_PATTERN_meta-rauc-community = "^${LAYERDIR}/"
BBFILE_PRIORITY_meta-rauc-community = "6"

LAYERDEPENDS_meta-rauc-community = "core rauc"
LAYERSERIES_COMPAT_meta-rauc-community = "styhead walnascar"

RAUC_KEY_FILE ?= "${LAYERDIR}/../files/rauc-example-keys/development-1.key.pem"
RAUC_CERT_FILE ?= "${LAYERDIR}/../files/rauc-example-keys/development-1.cert.pem"
RAUC_KEYRING_FILE ?= "${LAYERDIR}/../files/rauc-example-keys/ca.cert.pem"
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ DESCRIPTION = "RAUC bundle generator"
inherit bundle

RAUC_BUNDLE_COMPATIBLE = "${MACHINE}"
RAUC_BUNDLE_VERSION = "v20200703"
RAUC_BUNDLE_VERSION = "v20250417"
RAUC_BUNDLE_DESCRIPTION = "RAUC Demo Bundle"

RAUC_BUNDLE_FORMAT = "verity"

RAUC_BUNDLE_SLOTS = "rootfs"
RAUC_SLOT_rootfs = "core-image-minimal"
RAUC_SLOT_rootfs = "core-image-base"
RAUC_SLOT_rootfs[fstype] = "ext4"
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI:append = " file://rauc.rules"

do_install:append:() {
install -m 0644 ${UNPACKDIR}/rauc.rules ${D}${sysconfdir}/udev/mount.ignorelist.d/
}
5 changes: 4 additions & 1 deletion meta-rauc-raspberrypi/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ migratability between different layer revision.
I. Adding the meta-rauc-raspberrypi layer to your build
=======================================================

Run 'bitbake-layers add-layer meta-rauc-raspberrypi'
Add meta-rauc-community and meta-rauc-raspberrypi::

bitbake-layers add-layer meta-rauc-community
bitbake-layers add-layer meta-rauc-raspberrypi

II. Build The Demo System
=========================
Expand Down
6 changes: 1 addition & 5 deletions meta-rauc-raspberrypi/conf/layer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@ BBFILE_COLLECTIONS += "meta-rauc-raspberrypi"
BBFILE_PATTERN_meta-rauc-raspberrypi = "^${LAYERDIR}/"
BBFILE_PRIORITY_meta-rauc-raspberrypi = "6"

LAYERDEPENDS_meta-rauc-raspberrypi = "core rauc raspberrypi"
LAYERDEPENDS_meta-rauc-raspberrypi = "core raspberrypi rauc meta-rauc-community"
# For u-boot support for raspberrypi5
# https://git.yoctoproject.org/meta-lts-mixins scarthgap/u-boot branch
LAYERRECOMMENDS_meta-rauc-raspberrypi = "lts-u-boot-mixin"
LAYERSERIES_COMPAT_meta-rauc-raspberrypi = "styhead walnascar"

RAUC_KEY_FILE ?= "${LAYERDIR}/../files/rauc-example-keys/development-1.key.pem"
RAUC_CERT_FILE ?= "${LAYERDIR}/../files/rauc-example-keys/development-1.cert.pem"
RAUC_KEYRING_FILE ?= "${LAYERDIR}/../files/rauc-example-keys/ca.cert.pem"
3 changes: 3 additions & 0 deletions meta-rauc-raspberrypi/recipes-core/udev/files/rpi/rauc.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/dev/mmcblk0p1
/dev/mmcblk0p2
/dev/mmcblk0p3
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
FILESEXTRAPATHS:prepend:rpi := "${THISDIR}/files:"
SRC_URI:append:rpi = " file://raspberrypi-rauc.rules"

do_install:append:rpi() {
install -m 0644 ${UNPACKDIR}/raspberrypi-rauc.rules ${D}${sysconfdir}/udev/mount.ignorelist.d/
}
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"