* [Buildroot] [PATCH 3/3] package/freescale-imx/imx-gpu-viv: add platform specific drivers
@ 2023-01-10 9:33 Lang Daniel via buildroot
2023-01-14 22:10 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Lang Daniel via buildroot @ 2023-01-10 9:33 UTC (permalink / raw)
To: buildroot@buildroot.org; +Cc: Gary Bisson, tuzakli.refik@gmail.com
Since e8df0f7 (package/freescale-imx/imx-gpu-viv: bump to version 6.4.3.p4.4)
the archive contains platform specific drivers that need to be copied
and included.
Signed-off-by: Daniel Lang <d.lang@abatec.at>
---
package/freescale-imx/imx-gpu-viv/Config.in | 8 ++++++++
package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk | 11 +++++++++++
2 files changed, 19 insertions(+)
diff --git a/package/freescale-imx/imx-gpu-viv/Config.in b/package/freescale-imx/imx-gpu-viv/Config.in
index a245a1d089..89c5bfd634 100644
--- a/package/freescale-imx/imx-gpu-viv/Config.in
+++ b/package/freescale-imx/imx-gpu-viv/Config.in
@@ -77,6 +77,14 @@ if BR2_aarch64
config BR2_PACKAGE_PROVIDES_LIBGBM
default "imx-gpu-viv"
+config BR2_PACKAGE_IMX_GPU_VIV_PLATFORM
+ string
+ default "mx8mn" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN
+ default "mx8mp" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP
+ default "mx8mq" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M
+ default "mx8qm" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8
+ default "mx8qxp" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X
+
endif
config BR2_PACKAGE_IMX_GPU_VIV_EXAMPLES
diff --git a/package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk b/package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk
index 35929b0e5c..52ccbf6f59 100644
--- a/package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk
+++ b/package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk
@@ -51,6 +51,13 @@ endef
endif
endif
+IMX_GPU_VIV_PLATFORM_DIR = $(call qstrip,$(BR2_PACKAGE_IMX_GPU_VIV_PLATFORM))
+ifneq ($(IMX_GPU_VIV_PLATFORM_DIR),)
+define IMX_GPU_VIV_COPY_PLATFORM
+ cp -dpfr $(@D)/gpu-core/usr/lib/$(IMX_GPU_VIV_PLATFORM_DIR)/* $(@D)/gpu-core/usr/lib/
+endef
+endif
+
# Instead of building, we fix up the inconsistencies that exist
# in the upstream archive here. We also remove unused backend files.
# Make sure these commands are idempotent.
@@ -59,6 +66,10 @@ define IMX_GPU_VIV_BUILD_CMDS
$(foreach backend,fb wayland, \
$(RM) -r $(@D)/gpu-core/usr/lib/$(backend)
)
+ $(IMX_GPU_VIV_COPY_PLATFORM)
+ $(foreach platform,mx8mn mx8mp mx8mq mx8qm mx8qxp mx8ulp, \
+ $(RM) -r $(@D)/gpu-core/usr/lib/$(platform)
+ )
$(IMX_GPU_VIV_FIXUP_PKGCONFIG)
endef
--
2.25.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 3/3] package/freescale-imx/imx-gpu-viv: add platform specific drivers
2023-01-10 9:33 [Buildroot] [PATCH 3/3] package/freescale-imx/imx-gpu-viv: add platform specific drivers Lang Daniel via buildroot
@ 2023-01-14 22:10 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-01-14 22:10 UTC (permalink / raw)
To: Lang Daniel via buildroot
Cc: Lang Daniel, tuzakli.refik@gmail.com, Gary Bisson
On Tue, 10 Jan 2023 09:33:39 +0000
Lang Daniel via buildroot <buildroot@buildroot.org> wrote:
> Since e8df0f7 (package/freescale-imx/imx-gpu-viv: bump to version 6.4.3.p4.4)
> the archive contains platform specific drivers that need to be copied
> and included.
>
> Signed-off-by: Daniel Lang <d.lang@abatec.at>
> ---
> package/freescale-imx/imx-gpu-viv/Config.in | 8 ++++++++
> package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk | 11 +++++++++++
> 2 files changed, 19 insertions(+)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-01-14 22:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-10 9:33 [Buildroot] [PATCH 3/3] package/freescale-imx/imx-gpu-viv: add platform specific drivers Lang Daniel via buildroot
2023-01-14 22:10 ` Thomas Petazzoni via buildroot
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.