Skip to content

Commit

Permalink
Merge pull request #89 from Trellis-Logic/master+use-machine-var
Browse files Browse the repository at this point in the history
raspberrypi: use MACHINE variable
  • Loading branch information
leon-anavi authored Apr 2, 2024
2 parents f6db93d + 08bc256 commit 85b4aaa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ DESCRIPTION = "RAUC bundle generator"

inherit bundle

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

Expand Down
2 changes: 1 addition & 1 deletion meta-rauc-raspberrypi/recipes-core/rauc/files/system.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[system]
compatible=RaspberryPi4
compatible=@@MACHINE@@
bootloader=uboot
data-directory=/data/

Expand Down
4 changes: 4 additions & 0 deletions meta-rauc-raspberrypi/recipes-core/rauc/rauc_%.bbappend
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ PACKAGES += "rauc-grow-data-part"

RDEPENDS:${PN}-grow-data-part += "parted"

do_install:prepend() {
sed -i "s|@@MACHINE@@|${MACHINE}|g" ${WORKDIR}/system.conf
}

do_install:append() {
install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/rauc-grow-data-partition.service ${D}${systemd_unitdir}/system/
Expand Down

0 comments on commit 85b4aaa

Please sign in to comment.