summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerve Jourdain <herve.jourdain@neuf.fr>2016-07-21 20:32:12 +0800
committerAndrei Gherzan <andrei@gherzan.ro>2016-09-21 16:51:20 +0100
commitba9c4660d6fd972cac25f770c317eeba4bd982ca (patch)
tree9e40cb9b7c6bd451864095fa2bbc1e784143c026
parent5d2722c33b16b7661c5dfa62ffe8e849485ee600 (diff)
downloadmeta-raspberrypi-ba9c4660d6fd972cac25f770c317eeba4bd982ca.tar.gz
rpi-config_git.bb: add v4c overlay to config.txt to support vc4graphics
Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
-rw-r--r--recipes-bsp/bootfiles/rpi-config_git.bb10
1 files changed, 9 insertions, 1 deletions
diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb b/recipes-bsp/bootfiles/rpi-config_git.bb
index 4bc8eb7..f610718 100644
--- a/recipes-bsp/bootfiles/rpi-config_git.bb
+++ b/recipes-bsp/bootfiles/rpi-config_git.bb
@@ -13,12 +13,14 @@ SRC_URI = "git://github.com/Evilpaul/RPi-config.git;protocol=git;branch=master \
13 13
14S = "${WORKDIR}/git" 14S = "${WORKDIR}/git"
15 15
16PR = "r4" 16PR = "r5"
17 17
18PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" 18PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}"
19PITFT22="${@bb.utils.contains("MACHINE_FEATURES", "pitft22", "1", "0", d)}" 19PITFT22="${@bb.utils.contains("MACHINE_FEATURES", "pitft22", "1", "0", d)}"
20PITFT28r="${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", "1", "0", d)}" 20PITFT28r="${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", "1", "0", d)}"
21 21
22VC4GRAPHICS="${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "1", "0", d)}"
23
22inherit deploy 24inherit deploy
23 25
24do_deploy() { 26do_deploy() {
@@ -102,6 +104,12 @@ do_deploy() {
102 echo "# Enable UART" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt 104 echo "# Enable UART" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
103 echo "enable_uart=1" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt 105 echo "enable_uart=1" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
104 fi 106 fi
107
108 # VC4 Graphics support
109 if [ "${VC4GRAPHICS}" = "1" ]; then
110 echo "# Enable VC4 Graphics" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
111 echo "dtoverlay=vc4-kms-v3d,${VC4_CMA_SIZE}" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
112 fi
105} 113}
106 114
107addtask deploy before do_package after do_install 115addtask deploy before do_package after do_install