mirror of
https://git.yoctoproject.org/meta-raspberrypi
synced 2026-05-07 04:58:12 +00:00
pitft: Add basic support for PiTFT
Add basic support for PiTFT display by using device-trees. In order get it working below configurations must be active in local.conf: MACHINE_FEATURES += "pitft" - This will enable SPI bus and i2c device-trees, it will also setup framebuffer for console and x server on PiTFT. [Support #70] Signed-off-by: Petter Mabäcker <petter@technux.se> Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
This commit is contained in:
committed by
Andrei Gherzan
parent
52671faf4f
commit
0d5aff5161
@@ -0,0 +1,5 @@
|
||||
Section "Device"
|
||||
Identifier "Adafruit PiTFT"
|
||||
Driver "fbdev"
|
||||
Option "fbdev" "/dev/fb1"
|
||||
EndSection
|
||||
@@ -1,10 +1,17 @@
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
||||
|
||||
SRC_URI_append_rpi = " file://xorg.conf.d/10-evdev.conf "
|
||||
SRC_URI_append_rpi = " file://xorg.conf.d/10-evdev.conf \
|
||||
file://xorg.conf.d/99-pitft.conf \
|
||||
"
|
||||
|
||||
do_install_append_rpi () {
|
||||
install -d ${D}/${sysconfdir}/X11/xorg.conf.d/
|
||||
install -m 0644 ${WORKDIR}/xorg.conf.d/* ${D}/${sysconfdir}/X11/xorg.conf.d/
|
||||
install -m 0644 ${WORKDIR}/xorg.conf.d/10-evdev.conf ${D}/${sysconfdir}/X11/xorg.conf.d/
|
||||
|
||||
PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}"
|
||||
if [ "${PITFT}" = "1" ]; then
|
||||
install -m 0644 ${WORKDIR}/xorg.conf.d/99-pitft.conf ${D}/${sysconfdir}/X11/xorg.conf.d/
|
||||
fi
|
||||
}
|
||||
|
||||
FILES_${PN}_rpi += "${sysconfdir}/X11/xorg.conf ${sysconfdir}/X11/xorg.conf.d/*"
|
||||
|
||||
Reference in New Issue
Block a user