Skip to contentSkip to conversation

imx-gpu-viv: install g2d library and header

PATCH New Vincent Stehlé 3 participants 4 messages Oct 12, 2015 – Oct 13, 2015 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 imx-gpu-viv: install g2d library and header

Freescale gpu-viv binaries archive supplies the libraries and headers for accelerated OpenGL ES, OpenCL and OpenVG on i.MX6 platforms.

This binaries archive also supplies a g2d library and its header, which allow to perform accelerated 2D operations on i.MX6 platforms in a simpler manner. Install those as well, as it is useful for some packages, such as e.g. kodi.

---
 package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk | 2 ++
 1 file changed, 2 insertions(+)
package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk +2 -0
index aa1e3b6..bba2934 100644
@@ -64,6 +64,7 @@ endif
 
 define IMX_GPU_VIV_INSTALL_STAGING_CMDS
 	cp -r $(@D)/gpu-core/usr/* $(STAGING_DIR)/usr
+	cp -r $(@D)/g2d/usr/* $(STAGING_DIR)/usr
 	$(IMX_GPU_VIV_FIXUP_FB_HEADERS)
 	for lib in egl glesv2 vg; do \
 		$(INSTALL) -m 0644 -D \
@@ -85,6 +86,7 @@ endif
 define IMX_GPU_VIV_INSTALL_TARGET_CMDS
 	$(IMX_GPU_VIV_INSTALL_EXAMPLES)
 	cp -a $(@D)/gpu-core/usr/lib $(TARGET_DIR)/usr
+	cp -a $(@D)/g2d/usr/lib $(TARGET_DIR)/usr
 	for lib in EGL GAL VIVANTE GLESv2; do \
 		for f in $(TARGET_DIR)/usr/lib/lib$${lib}-*.so; do \
 			case $$f in \
Signature · 1 line
2.5.3
#1 lore raw

PATCH 1/1 imx-gpu-viv: install g2d library and header

Hi Vincent,

Quoted 7 lines · Vincent Stehl?

Freescale gpu-viv binaries archive supplies the libraries and headers for accelerated OpenGL ES, OpenCL and OpenVG on i.MX6 platforms.

This binaries archive also supplies a g2d library and its header, which allow to perform accelerated 2D operations on i.MX6 platforms in a simpler manner. Install those as well, as it is useful for some packages, such as e.g. kodi.

I CC'd you to my patch adding the same libraries back in September:
http://patchwork.ozlabs.org/patch/520309/

The difference between yours and mine is that I added an option to select the G2D libs, not sure if people wants to control it or not but it didn't cost much.

Also I added the gputools as they can be useful when debugging the GPU. Please let me know why you offered another patch.

Thanks,
Gary

#2 lore raw

PATCH 1/1 imx-gpu-viv: install g2d library and header

Quoted 3 lines

From: Gary Bisson <[email protected]>
I CC'd you to my patch adding the same libraries back in September:
http://patchwork.ozlabs.org/patch/520309/

Hi Gary,

You are right; I completely overlooked this patch, sorry. It is better to take you patch, no doubt. Thanks for your work on i.MX6 GPU in buildroot!

Best regards,

V.

#3 lore raw

PATCH 1/1 imx-gpu-viv: install g2d library and header

In reply to Vincent Stehlé

Dear Vincent Stehl?,

Quoted 10 lines · Vincent Stehl?

Freescale gpu-viv binaries archive supplies the libraries and headers for accelerated OpenGL ES, OpenCL and OpenVG on i.MX6 platforms.

This binaries archive also supplies a g2d library and its header, which allow to perform accelerated 2D operations on i.MX6 platforms in a simpler manner. Install those as well, as it is useful for some packages, such as e.g. kodi.

I've applied Gary's patch instead:

http://git.buildroot.net/buildroot/commit/?id=f640a6659f6c5f9c99684a98de006bbccfded128

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com