Skip to content

Commit

Permalink
tegra-binaries/tegra-nvpmodel: Use bind-mounted path for configuratio…
Browse files Browse the repository at this point in the history
…n file

... and print active power model to the journal

Signed-off-by: Alexandru Costache <alexandru@balena.io>
  • Loading branch information
acostach committed Oct 21, 2024
1 parent 92f6f08 commit e214537
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Unit]
After=etc-nvpmodel\x2dconfig.mount os-power-mode.service
Requires=etc-nvpmodel\x2dconfig.mount os-power-mode.service

[Service]
ExecStartPost=/usr/bin/os-power-mode -q
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/tegra-nvpmodel:"

SRC_URI += " \
file://nvpmodel-os-deps.conf \
"

do_install:append() {
install -d -m 0755 ${D}${libdir}/systemd/system/nvpmodel.service.d
install -m 0644 ${WORKDIR}/nvpmodel-os-deps.conf \
${D}${libdir}/systemd/system/nvpmodel.service.d/

sed -i 's|/etc/nvpmodel.conf|/etc/nvpmodel-config/nvpmodel.conf|g' ${D}${systemd_system_unitdir}/nvpmodel.service
}

FILES:${PN}:append = " /usr/lib/systemd/system/nvpmodel.service.d/nvpmodel-os-deps.conf "

0 comments on commit e214537

Please sign in to comment.