diff options
Diffstat (limited to 'recipes-bsp/bootfiles/rpi-config_git.bb')
| -rw-r--r-- | recipes-bsp/bootfiles/rpi-config_git.bb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb b/recipes-bsp/bootfiles/rpi-config_git.bb index 4cdffca..138cb37 100644 --- a/recipes-bsp/bootfiles/rpi-config_git.bb +++ b/recipes-bsp/bootfiles/rpi-config_git.bb | |||
| @@ -75,6 +75,12 @@ do_deploy() { | |||
| 75 | echo "# Enable SPI bus" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 75 | echo "# Enable SPI bus" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 76 | echo "dtparam=spi=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 76 | echo "dtparam=spi=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 77 | fi | 77 | fi |
| 78 | |||
| 79 | if [ -n "${ENABLE_I2C}" ]; then | ||
| 80 | echo "# Enable I2C" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 81 | echo "dtparam=i2c1=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 82 | echo "dtparam=i2c_arm=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 83 | fi | ||
| 78 | } | 84 | } |
| 79 | 85 | ||
| 80 | addtask deploy before do_package after do_install | 86 | addtask deploy before do_package after do_install |
