Brian Ma | d421169 | 2023-07-05 10:46:47 +0800 | [diff] [blame] | 1 | SUMMARY = "Program EDID data when use DP connector" |
| 2 | DESCRIPTION = "Add program EDID data support for DDC to SMB internal \ |
| 3 | loopback mode." |
| 4 | PR = "r1" |
| 5 | LICENSE = "Apache-2.0" |
| 6 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| 7 | |
| 8 | inherit obmc-phosphor-systemd |
| 9 | DEPENDS = "systemd python3-edid-json-tool-native" |
| 10 | RDEPENDS:${PN} += "bash" |
| 11 | |
| 12 | SRC_URI = "file://program-edid.service \ |
| 13 | file://program-edid.sh \ |
| 14 | file://edid.json \ |
| 15 | " |
| 16 | |
| 17 | SYSTEMD_PACKAGES = "${PN}" |
| 18 | SYSTEMD_SERVICE:${PN} = "program-edid.service" |
| 19 | SYSTEMD_ENVIRONMENT_FILE:${PN} +="obmc/edid/program_edid" |
| 20 | FILES:${PN} += "/usr/share/edid/edid.bin" |
| 21 | |
| 22 | do_compile() { |
| 23 | json2edid ${WORKDIR}/edid.json ${WORKDIR}/edid.bin |
| 24 | } |
| 25 | |
| 26 | do_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 | } |