From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 5/7] package/freescale-imx/imx-gpu-viv: bump to version 6.4.0.p1.0
Date: Tue, 4 Feb 2020 23:10:52 +0100 [thread overview]
Message-ID: <20200204231052.350677e5@windsurf> (raw)
In-Reply-To: <20200203193155.12657-5-tuzakli.refik@gmail.com>
Hello,
(Gary, there is a question for you below.)
On Mon, 3 Feb 2020 22:31:53 +0300
Refik Tuzakli <tuzakli.refik@gmail.com> wrote:
> Signed-off-by: Refik Tuzakli <tuzakli.refik@gmail.com>
I've applied, but with some changes, and they may need further work
from you. See below.
> define IMX_GPU_VIV_BUILD_CMDS
> $(SED) 's/defined(LINUX)/defined(__linux__)/g' $(@D)/gpu-core/usr/include/*/*.h
> - ln -sf libGL.so.1.2 $(@D)/gpu-core/usr/lib/libGL.so
> - ln -sf libGL.so.1.2 $(@D)/gpu-core/usr/lib/libGL.so.1
> - ln -sf libGL.so.1.2 $(@D)/gpu-core/usr/lib/libGL.so.1.2.0
> + ln -sf libGL-$(IMX_GPU_VIV_LIB_TARGET).so $(@D)/gpu-core/usr/lib/libGL.so
> + ln -sf libGL-$(IMX_GPU_VIV_LIB_TARGET).so $(@D)/gpu-core/usr/lib/libGL.so.1
> + ln -sf libGL-$(IMX_GPU_VIV_LIB_TARGET).so $(@D)/gpu-core/usr/lib/libGL.so.1.2
> + ln -sf libGL-$(IMX_GPU_VIV_LIB_TARGET).so $(@D)/gpu-core/usr/lib/libGL.so.1.2.0
The libGL is only available for the wl and x11 backends, not for the fb
backend, so these statements were creating broken symlinks when fb was
the selected backend. So I've added some conditional to only do that
when wl or x11 is used.
> ln -sf libEGL-$(IMX_GPU_VIV_LIB_TARGET).so $(@D)/gpu-core/usr/lib/libEGL.so
> ln -sf libEGL-$(IMX_GPU_VIV_LIB_TARGET).so $(@D)/gpu-core/usr/lib/libEGL.so.1
> ln -sf libEGL-$(IMX_GPU_VIV_LIB_TARGET).so $(@D)/gpu-core/usr/lib/libEGL.so.1.0
> @@ -115,7 +116,7 @@ define IMX_GPU_VIV_INSTALL_TARGET_CMDS
> $(IMX_GPU_VIV_INSTALL_EXAMPLES)
> $(IMX_GPU_VIV_INSTALL_GMEM_INFO)
> cp -a $(@D)/gpu-core/usr/lib $(TARGET_DIR)/usr
> - for lib in EGL GAL GLESv2 VDK; do \
> + for lib in EGL GAL GL GLESv2 VDK vulkan; do \
I have dropped this change. Indeed, the package was not updated to
reflect that it also provides GL support, and there is no really
organized Vulkan support in Buildroot today (except in mesa3d). So
adding these need more work, and should be done in separate commits.
Generally, I am surprised of the "fixes" done to libGL in BUILDS_CMDS
since anyway libGL does not get installed. It was like that, so I kept
it as it is, but I'm not sure why we did that. Gary, do you remember ?
> for f in $(TARGET_DIR)/usr/lib/lib$${lib}-*.so; do \
> case $$f in \
> *-$(IMX_GPU_VIV_LIB_TARGET).so) : ;; \
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2020-02-04 22:10 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-03 19:31 [Buildroot] [PATCH v2 1/7] enable vivante gpu driver for imx8x Refik Tuzakli
2020-02-03 19:31 ` [Buildroot] [PATCH v2 2/7] package/freescale-imx/imx-dpu-g2d: new package imx-dpu-g2d package is used by i.MX 8 and i.MX 8X series instead of imx-vpu or imx-vpu-hantro.With this commit, imx-dpu-g2d is added and is enabled for i.MX 8X Refik Tuzakli
2020-02-03 23:02 ` Thomas Petazzoni
2020-02-10 15:58 ` Gary Bisson
2021-08-05 20:51 ` Thomas Petazzoni
2021-08-06 7:33 ` Gary Bisson
2020-02-03 19:31 ` [Buildroot] [PATCH v2 3/7] availability control for vpu in i.MX families Refik Tuzakli
2020-02-03 23:09 ` Thomas Petazzoni
2020-02-03 19:31 ` [Buildroot] [PATCH v2 4/7] install video encode decode firwmare into target for imx8x Refik Tuzakli
2020-02-03 19:31 ` [Buildroot] [PATCH v2 5/7] package/freescale-imx/imx-gpu-viv: bump to version 6.4.0.p1.0 Refik Tuzakli
2020-02-04 22:10 ` Thomas Petazzoni [this message]
[not found] ` <CAMWBNu68n60JO5X1rUxnb5TD1RvV9FqeghtPLttJSHExkUy3gQ@mail.gmail.com>
2020-02-05 8:39 ` Thomas Petazzoni
2020-02-05 15:54 ` Gary Bisson
2020-02-05 16:48 ` Thomas Petazzoni
2020-02-05 18:44 ` Refik Tuzakli
2020-02-10 15:51 ` Gary Bisson
2020-02-10 15:56 ` Thomas Petazzoni
2020-02-03 19:31 ` [Buildroot] [PATCH v2 6/7] package/freescale-imx/imx-gpu-g2d: " Refik Tuzakli
2020-02-04 22:06 ` Thomas Petazzoni
2020-02-03 19:31 ` [Buildroot] [PATCH v2 7/7] DEVELOPERS: update my entry list Refik Tuzakli
2020-03-15 22:11 ` Thomas Petazzoni
2020-02-03 22:46 ` [Buildroot] [PATCH v2 1/7] enable vivante gpu driver for imx8x Thomas Petazzoni
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=20200204231052.350677e5@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@busybox.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.