Add video camera enable 'VIDEO_CAMERA' for config.txt
Signed-off-by: Gary Thomas <[email protected]>
---
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
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto