blob: 919e95e0d445e133816ea49ceee0727876356564 [file] [log] [blame]
Patrick Williams8b8bc412016-08-17 15:02:23 -05001FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2
Brad Bishop3a5fbf52017-12-04 02:17:07 -05003SRC_URI_append_rpi = " \
4 file://xorg.conf.d/98-pitft.conf \
5 file://xorg.conf.d/99-calibration.conf \
Brad Bishopd7bf8c12018-02-25 22:55:05 -05006 file://xorg.conf.d/10-noglamor.conf \
7"
Patrick Williams8b8bc412016-08-17 15:02:23 -05008do_install_append_rpi () {
Brad Bishop3a5fbf52017-12-04 02:17:07 -05009 PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}"
Brad Bishop316dfdd2018-06-25 12:45:53 -040010 VC4="${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "1", "0", d)}"
Brad Bishop3a5fbf52017-12-04 02:17:07 -050011 if [ "${PITFT}" = "1" ]; then
12 install -d ${D}/${sysconfdir}/X11/xorg.conf.d/
13 install -m 0644 ${WORKDIR}/xorg.conf.d/98-pitft.conf ${D}/${sysconfdir}/X11/xorg.conf.d/
14 install -m 0644 ${WORKDIR}/xorg.conf.d/99-calibration.conf ${D}/${sysconfdir}/X11/xorg.conf.d/
15 fi
Brad Bishop316dfdd2018-06-25 12:45:53 -040016 if [ "${VC4}" = "1" ]; then
17 install -Dm 0644 ${WORKDIR}/xorg.conf.d/10-noglamor.conf ${D}/${sysconfdir}/X11/xorg.conf.d/10-noglamor.conf
18 fi
Patrick Williams8b8bc412016-08-17 15:02:23 -050019}
Brad Bishop316dfdd2018-06-25 12:45:53 -040020
Patrick Williams8b8bc412016-08-17 15:02:23 -050021FILES_${PN}_rpi += "${sysconfdir}/X11/xorg.conf ${sysconfdir}/X11/xorg.conf.d/*"