M7350/oe-core/meta-msm/recipes/udev/udev_182.bbappend
2024-09-09 08:57:42 +00:00

31 lines
1.3 KiB
Plaintext

PR = "r21"
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
#re-use non-perf settings
BASEMACHINE = "${@d.getVar('MACHINE', True).replace('-perf', '')}"
#SRC_URI += "file://do-not-install-unnecessary-udev-rules.patch"
SRC_URI_append_msm8960 += " file://${BASEMACHINE}/local.rules"
SRC_URI_append_msm8974 += "file://${BASEMACHINE}/local.rules \
file://${BASEMACHINE}/set-dev-nodes.sh"
SRC_URI_append_msm8610 += "file://${BASEMACHINE}/local.rules \
file://${BASEMACHINE}/set-dev-nodes.sh"
SRC_URI_append_msm8226 += "file://${BASEMACHINE}/local.rules \
file://${BASEMACHINE}/set-dev-nodes.sh"
do_install_append_msm8974 () {
install -d ${D}${sysconfdir}/udev/scripts/
install -m 0755 ${FILESEXTRAPATHS}/${BASEMACHINE}/set-dev-nodes.sh ${D}${sysconfdir}/udev/scripts/set-dev-nodes.sh
}
do_install_append_msm8610 () {
install -d ${D}${sysconfdir}/udev/scripts/
install -m 0755 ${FILESEXTRAPATHS}/${BASEMACHINE}/set-dev-nodes.sh ${D}${sysconfdir}/udev/scripts/set-dev-nodes.sh
}
do_install_append_msm8226 () {
install -d ${D}${sysconfdir}/udev/scripts/
install -m 0755 ${FILESEXTRAPATHS}/${BASEMACHINE}/set-dev-nodes.sh ${D}${sysconfdir}/udev/scripts/set-dev-nodes.sh
}