mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 12:49:00 +02:00
rpi-config_git.bb: add v4c overlay to config.txt to support vc4graphics
Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
This commit is contained in:
parent
5d2722c33b
commit
ba9c4660d6
|
@ -13,12 +13,14 @@ SRC_URI = "git://github.com/Evilpaul/RPi-config.git;protocol=git;branch=master \
|
|||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
PR = "r4"
|
||||
PR = "r5"
|
||||
|
||||
PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}"
|
||||
PITFT22="${@bb.utils.contains("MACHINE_FEATURES", "pitft22", "1", "0", d)}"
|
||||
PITFT28r="${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", "1", "0", d)}"
|
||||
|
||||
VC4GRAPHICS="${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "1", "0", d)}"
|
||||
|
||||
inherit deploy
|
||||
|
||||
do_deploy() {
|
||||
|
@ -102,6 +104,12 @@ do_deploy() {
|
|||
echo "# Enable UART" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
echo "enable_uart=1" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
fi
|
||||
|
||||
# VC4 Graphics support
|
||||
if [ "${VC4GRAPHICS}" = "1" ]; then
|
||||
echo "# Enable VC4 Graphics" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
echo "dtoverlay=vc4-kms-v3d,${VC4_CMA_SIZE}" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
fi
|
||||
}
|
||||
|
||||
addtask deploy before do_package after do_install
|
||||
|
|
Loading…
Reference in New Issue
Block a user