Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Lang Daniel via buildroot <buildroot@buildroot.org>
Cc: Lang Daniel <d.lang@abatec.at>,
	"tuzakli.refik@gmail.com" <tuzakli.refik@gmail.com>,
	Gary Bisson <bisson.gary@gmail.com>
Subject: Re: [Buildroot] [PATCH 2/3] package/freescale-imx/imx-gpu-viv: add IMX8 framebuffer support
Date: Sat, 14 Jan 2023 23:04:27 +0100	[thread overview]
Message-ID: <20230114230427.1ccfc5ac@windsurf> (raw)
In-Reply-To: <VI1P190MB0493F59C8F6F866D287232FC9FFF9@VI1P190MB0493.EURP190.PROD.OUTLOOK.COM>

On Tue, 10 Jan 2023 09:33:14 +0000
Lang Daniel via buildroot <buildroot@buildroot.org> wrote:

> According to meta-freescale [0] the framebuffer output can be enabled on
> IMX8 by using the wayland libraries together with egl.pc.
> 
> Tested on an imx8mn by running kmscube. EGL and GLES support detected.

Indeed. I've seen something similar on the Vivante binaries used on
STM32MP1 platforms, where the "framebuffer" libs are linked against
libwayland even though they don't use it.

> -# Libraries are linked against libdrm, except framebuffer output on ARM
> +# Libraries are linked against libdrm and wayland, except framebuffer output on ARM
>  ifneq ($(IMX_GPU_VIV_LIB_TARGET)$(BR2_arm),fby)
> -IMX_GPU_VIV_DEPENDENCIES += libdrm
> -endif
> -
> -ifeq ($(IMX_GPU_VIV_LIB_TARGET),wayland)
> -IMX_GPU_VIV_DEPENDENCIES += wayland
> +IMX_GPU_VIV_DEPENDENCIES += libdrm wayland
>  endif
>  
>  define IMX_GPU_VIV_EXTRACT_CMDS
>       $(call NXP_EXTRACT_HELPER,$(IMX_GPU_VIV_DL_DIR)/$(IMX_GPU_VIV_SOURCE))
>  endef
>  
> -ifeq ($(IMX_GPU_VIV_LIB_TARGET),fb)
> +ifeq ($(IMX_GPU_VIV_LIB_TARGET)$(BR2_arm),fby)
> +IMX_GPU_VIV_BACKEND_DIR = fb
>  define IMX_GPU_VIV_FIXUP_PKGCONFIG
>       ln -sf egl_linuxfb.pc $(@D)/gpu-core/usr/lib/pkgconfig/egl.pc
>  endef
> -else ifeq ($(IMX_GPU_VIV_LIB_TARGET),wayland)
> +else
> +# Framebuffer output on IMX8 (ARM64) uses egl.pc
> +# and the same libraries as the wayland backend.
> +IMX_GPU_VIV_BACKEND_DIR = wayland
> +ifeq ($(IMX_GPU_VIV_LIB_TARGET),wayland)
>  define IMX_GPU_VIV_FIXUP_PKGCONFIG
>       ln -sf egl_wayland.pc $(@D)/gpu-core/usr/lib/pkgconfig/egl.pc
>  endef
>  endif
> +endif

On this second part I'm a bit confused because in the "fb" case on
ARM64 you're don't have any egl.pc pkgconfig fixup. Are you sure this
is normal?

Indeed the code you have does this:

if framebuffer output and ARM:
	install egl.pc as a symlink to egl_linuxfb.pc
else:
	if wayland output:
		install egl.pc as a symlink to egl_wayland.pc

which means that in the framebuffer case on ARM64, you're not
installing any egl.pc symlink. Is this really OK?

Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2023-01-14 22:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-10  9:33 [Buildroot] [PATCH 2/3] package/freescale-imx/imx-gpu-viv: add IMX8 framebuffer support Lang Daniel via buildroot
2023-01-14 22:04 ` Thomas Petazzoni via buildroot [this message]
2023-01-16  8:01   ` Lang Daniel via buildroot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230114230427.1ccfc5ac@windsurf \
    --to=buildroot@buildroot.org \
    --cc=bisson.gary@gmail.com \
    --cc=d.lang@abatec.at \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=tuzakli.refik@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox