[yocto] [meta-raspberrypi][PATCH 2/2] rpi-config: Add video camera control

Gary Thomas gary at mlbassoc.com
Tue Dec 17 08:59:51 PST 2013


Add video camera enable 'VIDEO_CAMERA' for config.txt

Signed-off-by: Gary Thomas <gary at mlbassoc.com>
---
 recipes-bcm/bootfiles/rpi-config_git.bb |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/recipes-bcm/bootfiles/rpi-config_git.bb b/recipes-bcm/bootfiles/rpi-config_git.bb
index 4328070..66a8fa8 100644
--- a/recipes-bcm/bootfiles/rpi-config_git.bb
+++ b/recipes-bcm/bootfiles/rpi-config_git.bb
@@ -52,6 +52,12 @@ do_deploy() {
 	if [ -n "${GPU_MEM_512}" ]; then
 		sed -i '/#gpu_mem_512/ c\gpu_mem_512=${GPU_MEM_512}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt
 	fi
+
+	# Video camera support
+	if [ -n "${VIDEO_CAMERA}" ]; then
+		echo "# Enable video camera" >>${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt
+		echo "start_x=1" >>${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt
+	fi
 }
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
-- 
1.7.9.5




More information about the yocto mailing list