Skip to content

Commit

Permalink
Add support for mender 4
Browse files Browse the repository at this point in the history
Signed-off-by: Carlo Kretzschmann <kretzschmann@3dvisionlabs.com>
  • Loading branch information
cakre committed Jul 25, 2024
1 parent 8756a1b commit 1e73876
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1 @@
EXTRADEPS:tegra = "tegra-bup-payload tegra-uefi-capsules libubootenv-fake mender-update-verifier"
RDEPENDS:${PN} += "${EXTRADEPS}"

FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI:remove:mender-persist-systemd-machine-id = " \
file://mender-client-set-systemd-machine-id.sh \
"
SRC_URI:append:mender-persist-systemd-machine-id = " \
file://tegra-mender-client-set-systemd-machine-id.sh \
file://efi_systemd_machine_id.sh \
"

do_install:prepend:class-target:mender-persist-systemd-machine-id() {
install -d -m 755 ${D}${bindir}
install -m 755 ${WORKDIR}/efi_systemd_machine_id.sh ${D}${bindir}/
cp ${WORKDIR}/tegra-mender-client-set-systemd-machine-id.sh ${WORKDIR}/mender-client-set-systemd-machine-id.sh
}
require mender-tegra.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
EXTRADEPS:tegra = "tegra-bup-payload tegra-uefi-capsules libubootenv-fake mender-update-verifier"
RDEPENDS:${PN} += "${EXTRADEPS}"

FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI:remove:mender-persist-systemd-machine-id = " \
file://mender-client-set-systemd-machine-id.sh \
"
SRC_URI:append:mender-persist-systemd-machine-id = " \
file://tegra-mender-client-set-systemd-machine-id.sh \
file://efi_systemd_machine_id.sh \
"

do_install:prepend:class-target:mender-persist-systemd-machine-id() {
install -d -m 755 ${D}${bindir}
install -m 755 ${WORKDIR}/efi_systemd_machine_id.sh ${D}${bindir}/
cp ${WORKDIR}/tegra-mender-client-set-systemd-machine-id.sh ${WORKDIR}/mender-client-set-systemd-machine-id.sh
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require mender-tegra.inc

FILES:mender-update:append:mender-persist-systemd-machine-id = " \
${bindir}/efi_systemd_machine_id.sh \
"

0 comments on commit 1e73876

Please sign in to comment.