diff options
| author | Herve Jourdain <herve.jourdain@neuf.fr> | 2016-07-21 20:32:12 +0800 |
|---|---|---|
| committer | Andrei Gherzan <andrei@gherzan.ro> | 2016-09-21 16:51:20 +0100 |
| commit | ba9c4660d6fd972cac25f770c317eeba4bd982ca (patch) | |
| tree | 9e40cb9b7c6bd451864095fa2bbc1e784143c026 | |
| parent | 5d2722c33b16b7661c5dfa62ffe8e849485ee600 (diff) | |
| download | meta-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.bb | 10 |
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 | ||
| 14 | S = "${WORKDIR}/git" | 14 | S = "${WORKDIR}/git" |
| 15 | 15 | ||
| 16 | PR = "r4" | 16 | PR = "r5" |
| 17 | 17 | ||
| 18 | PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" | 18 | PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" |
| 19 | PITFT22="${@bb.utils.contains("MACHINE_FEATURES", "pitft22", "1", "0", d)}" | 19 | PITFT22="${@bb.utils.contains("MACHINE_FEATURES", "pitft22", "1", "0", d)}" |
| 20 | PITFT28r="${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", "1", "0", d)}" | 20 | PITFT28r="${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", "1", "0", d)}" |
| 21 | 21 | ||
| 22 | VC4GRAPHICS="${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "1", "0", d)}" | ||
| 23 | |||
| 22 | inherit deploy | 24 | inherit deploy |
| 23 | 25 | ||
| 24 | do_deploy() { | 26 | do_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 | ||
| 107 | addtask deploy before do_package after do_install | 115 | addtask deploy before do_package after do_install |
