summaryrefslogtreecommitdiff
path: root/recipes-core/hdmi-hotplug/hdmi-hotplug.bb
blob: 3e3a580a81e90a4628e4f2c28966b19a35917a3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
SECTION = "core"
SUMMARY = "Use xrandr after a HDMI hotplug event to switch the display on"
# The license is meant for this recipe and the files it installs.
# RNDIS is part of the kernel, udhcpd is part of busybox
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

PR = "r1"

PACKAGE_ARCH = "all"

SRC_URI = " \
    file://hdmi.rules \
    file://hdmi.sh \
"

do_install() {
    install -d ${D}/${sysconfdir}/udev/rules.d
    install -m 0644 ${WORKDIR}/hdmi.rules ${D}/${sysconfdir}/udev/rules.d/

    install -d ${D}/${sysconfdir}/udev/scripts
    install -m 0755 ${WORKDIR}/hdmi.sh ${D}/${sysconfdir}/udev/scripts/
}