-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tegra-binaries/tegra-nvpmodel: Use bind-mounted path for configuratio…
…n file ... and print active power model to the journal Signed-off-by: Alexandru Costache <alexandru@balena.io>
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
layers/meta-balena-jetson/recipes-bsp/tegra-binaries/tegra-nvpmodel/nvpmodel-os-deps.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
15 changes: 15 additions & 0 deletions
15
layers/meta-balena-jetson/recipes-bsp/tegra-binaries/tegra-nvpmodel_36.3.0.bbappend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 " |