mirror of
https://git.yoctoproject.org/meta-raspberrypi
synced 2026-01-11 15:00:13 +00:00
meta-raspberrypi: Add Xorg conf for raspberrypi5
Specifying xorg to use the Raspberry Pi 5 GPU prevents boot failures caused by the xorg load framebuffer module. Signed-off-by: Xiaolei Wang <xiaolei.wang@windriver.com>
This commit is contained in:
committed by
Andrei Gherzan
parent
44cb3ba79c
commit
c769753bcf
@@ -0,0 +1,6 @@
|
||||
Section "OutputClass"
|
||||
Identifier "vc4"
|
||||
MatchDriver "vc4"
|
||||
Driver "modesetting"
|
||||
Option "PrimaryGPU" "true"
|
||||
EndSection
|
||||
@@ -3,14 +3,16 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
SRC_URI:append:rpi = " \
|
||||
file://xorg.conf.d/98-pitft.conf \
|
||||
file://xorg.conf.d/99-calibration.conf \
|
||||
file://xorg.conf.d/99-v3d.conf \
|
||||
"
|
||||
do_install:append:rpi () {
|
||||
install -d ${D}/${sysconfdir}/X11/xorg.conf.d/
|
||||
PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}"
|
||||
if [ "${PITFT}" = "1" ]; then
|
||||
install -d ${D}/${sysconfdir}/X11/xorg.conf.d/
|
||||
install -m 0644 ${UNPACKDIR}/xorg.conf.d/98-pitft.conf ${D}/${sysconfdir}/X11/xorg.conf.d/
|
||||
install -m 0644 ${UNPACKDIR}/xorg.conf.d/99-calibration.conf ${D}/${sysconfdir}/X11/xorg.conf.d/
|
||||
fi
|
||||
install -m 0644 ${UNPACKDIR}/xorg.conf.d/99-v3d.conf ${D}/${sysconfdir}/X11/xorg.conf.d/
|
||||
}
|
||||
|
||||
FILES:${PN}:append:rpi = " ${sysconfdir}/X11/xorg.conf.d/*"
|
||||
|
||||
Reference in New Issue
Block a user