diff --git a/docs/extra-build-config.md b/docs/extra-build-config.md index 380d969..d162abc 100644 --- a/docs/extra-build-config.md +++ b/docs/extra-build-config.md @@ -186,3 +186,19 @@ RaspberryPi3 will have to explicitely set in local.conf: Ref.: * * + +## Manual additions to config.txt + +The `RPI_EXTRA_CONFIG` variable can be used to manually add additional lines to +the `config.txt` file if there is not a specific option above for the +configuration you need. To add multiple lines you must include `\n` separators. +If double-quotes are needed in the lines you are adding you can use single +quotes around the whole string. + +For example, to add a comment containing a double-quote and a configuration +option: + + RPI_EXTRA_CONFIG = ' \n \ + # Raspberry Pi 7\" display/touch screen \n \ + lcd_rotate=2 \n \ + ' diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb b/recipes-bsp/bootfiles/rpi-config_git.bb index ca4160b..49758ac 100644 --- a/recipes-bsp/bootfiles/rpi-config_git.bb +++ b/recipes-bsp/bootfiles/rpi-config_git.bb @@ -127,6 +127,9 @@ do_deploy() { echo "hdmi_cvt 1024 600 60 6 0 0 0" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt echo "hdmi_drive=1" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt fi + + # Append extra config if the user has provided any + echo "${RPI_EXTRA_CONFIG}" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt } do_deploy_append_raspberrypi3-64() {