diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2015-11-02 08:09:32 +0100 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2015-11-02 08:59:10 +0100 |
commit | 1ab627137edd3b05803280b5c682eca8dba6e0e2 (patch) | |
tree | b9a1e005c19a159fb1bd267a3bdc2f211f65ba7b /recipes-core/nv-conf/nv-conf-systemd.bb | |
parent | 735f0e1ad49fb2087c3387671b4c080b4a198d44 (diff) |
nv-conf-systemd: cpu hot-plug configuration and startup
Systemd startup script for NVIDIA T30 CPU hot-plug configuration.
Diffstat (limited to 'recipes-core/nv-conf/nv-conf-systemd.bb')
-rw-r--r-- | recipes-core/nv-conf/nv-conf-systemd.bb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes-core/nv-conf/nv-conf-systemd.bb b/recipes-core/nv-conf/nv-conf-systemd.bb new file mode 100644 index 0000000..c592bc3 --- /dev/null +++ b/recipes-core/nv-conf/nv-conf-systemd.bb @@ -0,0 +1,32 @@ +SECTION = "sysinit" +SUMMARY = "NVIDIA T30 CPU hot-plug configuration and startup" +RDEPENDS_${PN} = "" +# The license is meant for this recipe and the files it installs. +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690" + +PR = "r1" + +inherit allarch systemd + +SRC_URI = " \ + file://nv-conf.sh \ + file://nv-conf.service \ +" + +do_install() { + install -d ${D}/${bindir} + install -m 0755 ${WORKDIR}/nv-conf.sh ${D}/${bindir}/ + + install -d ${D}${systemd_unitdir}/system/ + install -m 0644 ${WORKDIR}/nv-conf.service ${D}${systemd_unitdir}/system +} + +FILES_${PN} += " \ + ${systemd_unitdir}/system \ +" + +NATIVE_SYSTEMD_SUPPORT = "1" +SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_SERVICE_${PN} = "nv-conf.service" + |