[yocto] [meta-raspberrypi][PATCH 2/8] Support for vc4 graphics driver: add vc4-kms-v3d to the overlays
Andrei Gherzan
andrei at gherzan.ro
Thu May 19 08:08:49 PDT 2016
On Wed, May 18, 2016 at 08:21:16PM +0800, Herve Jourdain wrote:
> This patch series enables the support for the VC4 graphics driver from Eric Anholt.
> Add vc4-kms-v3d overlay if 'vc4graphics' is in MACHINE_FEATURES.
> (This patch has a dependency on the patch that enables the support of .dtbo overlay files)
>
> Signed-off-by: Herve Jourdain <herve.jourdain at neuf.fr>
> ---
> recipes-bsp/bootfiles/rpi-config_git.bb | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb b/recipes-bsp/bootfiles/rpi-config_git.bb
> index 4bc8eb7..79e436d 100644
> --- a/recipes-bsp/bootfiles/rpi-config_git.bb
> +++ b/recipes-bsp/bootfiles/rpi-config_git.bb
> @@ -19,6 +19,8 @@ PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}"
> PITFT22="${@bb.utils.contains("MACHINE_FEATURES", "pitft22", "1", "0", d)}"
> PITFT28r="${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", "1", "0", d)}"
>
> +VC4GRAPHICS="${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "1", "0", d)}"
> +
> inherit deploy
>
> do_deploy() {
> @@ -102,6 +104,12 @@ do_deploy() {
> echo "# Enable UART" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
> echo "enable_uart=1" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
> fi
> +
> + # VC4 Graphics support
> + if [ "${VC4GRAPHICS}" = "1" ]; then
> + echo "# Enable VC4 Graphics" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
> + echo "dtoverlay=vc4-kms-v3d,cma-256" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
This is definitely not a good idea on rpi0/1. Let's select this based
on RPI version:
CMA_USAGE_raspberrypi = "cma-128"
Or we can set a default variable on this configurable by user. But I
would like to have a warning mechanism. Maybe a python function that
will check if we want to build rpi1 and cma-256 was selected issue a
warning.
> + fi
> }
>
> addtask deploy before do_package after do_install
> --
> 2.7.4
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
--
Andrei Gherzan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160519/dc443b99/attachment.pgp>
More information about the yocto
mailing list