blob: 163a5ef9063eca7369f2bee6c80e64992668156e [file] [log] [blame]
Brian Mad4211692023-07-05 10:46:47 +08001SUMMARY = "Program EDID data when use DP connector"
2DESCRIPTION = "Add program EDID data support for DDC to SMB internal \
3loopback mode."
4PR = "r1"
5LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
7
8inherit obmc-phosphor-systemd
9DEPENDS = "systemd python3-edid-json-tool-native"
10RDEPENDS:${PN} += "bash"
11
12SRC_URI = "file://program-edid.service \
13 file://program-edid.sh \
14 file://edid.json \
15"
16
17SYSTEMD_PACKAGES = "${PN}"
18SYSTEMD_SERVICE:${PN} = "program-edid.service"
19SYSTEMD_ENVIRONMENT_FILE:${PN} +="obmc/edid/program_edid"
20FILES:${PN} += "/usr/share/edid/edid.bin"
21
22do_compile() {
23 json2edid ${WORKDIR}/edid.json ${WORKDIR}/edid.bin
24}
25
26do_install() {
27 install -d ${D}${bindir}
28 install -m 0755 ${WORKDIR}/program-edid.sh ${D}${bindir}/
29 install -d ${D}${datadir}/edid
30 install -m 0644 -D ${WORKDIR}/edid.bin \
31 ${D}${datadir}/edid/edid.bin
32}