diff options
| -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 |
