mirror of
https://github.com/lingble/meta-tegra.git
synced 2025-10-28 19:12:39 +00:00
46 lines
1.6 KiB
BlitzBasic
46 lines
1.6 KiB
BlitzBasic
DESCRIPTION = "nvpower tool and configuration files"
|
|
L4T_DEB_COPYRIGHT_MD5 = "8dc9729e1dc38aac4adb4bd6f6e3b370"
|
|
|
|
L4T_DEB_TRANSLATED_BPN = "nvidia-l4t-core"
|
|
|
|
require tegra-debian-libraries-common.inc
|
|
|
|
SRC_SOC_DEBS += "${@l4t_deb_pkgname(d, 'init')};subdir=${BP};name=init"
|
|
SRC_SOC_DEBS += "${@l4t_deb_pkgname(d, 'tools')};subdir=${BP};name=tools"
|
|
|
|
MAINSUM = "06e58e0decd9af534b3eeb23958ff9cb95d61079f2af443ec3908957a2d7e82b"
|
|
SRC_URI[init.sha256sum] = "3a396551d88ebebd70b1eae57ed74837e82485c7897ab1c233735f3ea63e8215"
|
|
SRC_URI[tools.sha256sum] = "5e861d7dea1dca2709461e4831946968fe526f31eb87fa205a7b073d2a151ac3"
|
|
|
|
SRC_URI += "\
|
|
file://0001-Drop-bc-usage-and-remove-symlink-creation-functions.patch \
|
|
file://nvpower.init \
|
|
file://nvpower.service \
|
|
"
|
|
|
|
TEGRA_LIBRARIES_TO_INSTALL = "\
|
|
nvidia/libjetsonpower.so \
|
|
"
|
|
|
|
do_install() {
|
|
install_libraries
|
|
install -d ${D}${libexecdir}
|
|
install -d ${D}${sysconfdir}/nvpower/libjetsonpower
|
|
install -m 0755 ${B}/etc/systemd/nvpower.sh ${D}${libexecdir}/
|
|
install -m 0644 ${B}/etc/nvpower/libjetsonpower/${NVPOWER}.conf ${D}${sysconfdir}/nvpower/libjetsonpower/
|
|
install -d ${D}${sysconfdir}/init.d
|
|
install -m 0755 ${UNPACKDIR}/nvpower.init ${D}${sysconfdir}/init.d/nvpower
|
|
install -d ${D}${systemd_system_unitdir}
|
|
install -m 0644 ${UNPACKDIR}/nvpower.service ${D}${systemd_system_unitdir}
|
|
}
|
|
|
|
inherit systemd update-rc.d
|
|
|
|
INITSCRIPT_NAME = "nvpower"
|
|
INITSCRIPT_PARAMS = "defaults"
|
|
SYSTEMD_SERVICE:${PN} = "nvpower.service"
|
|
FILES_SOLIBSDEV = ""
|
|
SOLIBS = ".so*"
|
|
RDEPENDS:${PN} = "bash tegra-nvpmodel"
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|