mirror of
https://github.com/lingble/meta-tegra.git
synced 2025-10-28 19:12:39 +00:00
29 lines
933 B
BlitzBasic
29 lines
933 B
BlitzBasic
DESCRIPTION = "nvpmodel tool and configuration files"
|
|
L4T_DEB_COPYRIGHT_MD5 = "3645db3702a43fb4e9dd820db0ed2d98"
|
|
|
|
L4T_DEB_TRANSLATED_BPN = "nvidia-l4t-nvpmodel"
|
|
|
|
require tegra-debian-libraries-common.inc
|
|
|
|
MAINSUM = "7e6b9fd7b0ab74606e086540f9f21afa9d092989b6c831561a35b090389b1c93"
|
|
|
|
DEPENDS = "tegra-libraries-core"
|
|
|
|
# When left unset, l4t default setting will be used
|
|
NVPMODEL_CONFIG_DEFAULT ??= ""
|
|
|
|
do_install() {
|
|
install -d ${D}${sbindir}
|
|
install -d ${D}${sysconfdir}/nvpmodel
|
|
install -m 0755 ${B}/usr/sbin/nvpmodel ${D}${sbindir}/
|
|
install -m 0644 ${B}/etc/nvpmodel/${NVPMODEL}.conf ${D}${sysconfdir}/nvpmodel.conf
|
|
if [ -n "${NVPMODEL_CONFIG_DEFAULT}" ]; then
|
|
sed -i -e "s/PM_CONFIG DEFAULT=[0-9]\+/PM_CONFIG DEFAULT=${NVPMODEL_CONFIG_DEFAULT}/" ${D}${sysconfdir}/nvpmodel.conf
|
|
fi
|
|
}
|
|
|
|
FILES:${PN} = "${sbindir}/nvpmodel ${sysconfdir}"
|
|
INSANE_SKIP:${PN} = "ldflags"
|
|
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|