Skip to content

Commit

Permalink
use MACHINE instead of static machine version in bundle and system.conf
Browse files Browse the repository at this point in the history
Signed-off-by: Fabien Lahoudere <fabienlahoudere.pro@gmail.com>
  • Loading branch information
aragua committed Jul 2, 2023
1 parent 0a8bda8 commit efca7d8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion meta-rauc-tegra/recipes-core/bundles/update-bundle.bb
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 = "jetson-tx2-devkit"
RAUC_BUNDLE_COMPATIBLE = "${MACHINE}"
RAUC_BUNDLE_VERSION = "v20211104"
RAUC_BUNDLE_DESCRIPTION = "RAUC Demo Bundle"
RAUC_BUNDLE_SLOTS = "rootfs"
Expand Down
2 changes: 1 addition & 1 deletion meta-rauc-tegra/recipes-core/rauc/files/system.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[system]
compatible=jetson-tx2-devkit
compatible=@@MACHINE@@
bootloader=uboot

[keyring]
Expand Down
4 changes: 4 additions & 0 deletions meta-rauc-tegra/recipes-core/rauc/rauc_%.bbappend
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ SRC_URI:append := " \

# additional dependencies required to run RAUC on the target
RDEPENDS:${PN} += "u-boot-fw-utils u-boot-tegra-env"

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

0 comments on commit efca7d8

Please sign in to comment.