|
@@ -42,16 +42,6 @@ define IMX_GPU_VIV_EXTRACT_CMDS
|
|
$(call FREESCALE_IMX_EXTRACT_HELPER,$(IMX_GPU_VIV_DL_DIR)/$(IMX_GPU_VIV_SOURCE))
|
|
$(call FREESCALE_IMX_EXTRACT_HELPER,$(IMX_GPU_VIV_DL_DIR)/$(IMX_GPU_VIV_SOURCE))
|
|
endef
|
|
endef
|
|
|
|
|
|
-# 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.
|
|
|
|
-define IMX_GPU_VIV_BUILD_CMDS
|
|
|
|
- cp -dpfr $(@D)/gpu-core/usr/lib/$(IMX_GPU_VIV_LIB_TARGET)/* $(@D)/gpu-core/usr/lib/
|
|
|
|
- for backend in fb x11 wayland; do \
|
|
|
|
- $(RM) -r $(@D)/gpu-core/usr/lib/$$backend ; \
|
|
|
|
- done
|
|
|
|
-endef
|
|
|
|
-
|
|
|
|
ifeq ($(IMX_GPU_VIV_LIB_TARGET),fb)
|
|
ifeq ($(IMX_GPU_VIV_LIB_TARGET),fb)
|
|
define IMX_GPU_VIV_FIXUP_PKGCONFIG
|
|
define IMX_GPU_VIV_FIXUP_PKGCONFIG
|
|
ln -sf egl_linuxfb.pc $(@D)/gpu-core/usr/lib/pkgconfig/egl.pc
|
|
ln -sf egl_linuxfb.pc $(@D)/gpu-core/usr/lib/pkgconfig/egl.pc
|
|
@@ -72,9 +62,19 @@ define IMX_GPU_VIV_FIXUP_PKGCONFIG
|
|
endef
|
|
endef
|
|
endif
|
|
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.
|
|
|
|
+define IMX_GPU_VIV_BUILD_CMDS
|
|
|
|
+ cp -dpfr $(@D)/gpu-core/usr/lib/$(IMX_GPU_VIV_LIB_TARGET)/* $(@D)/gpu-core/usr/lib/
|
|
|
|
+ for backend in fb x11 wayland; do \
|
|
|
|
+ $(RM) -r $(@D)/gpu-core/usr/lib/$$backend ; \
|
|
|
|
+ done
|
|
|
|
+ $(IMX_GPU_VIV_FIXUP_PKGCONFIG)
|
|
|
|
+endef
|
|
|
|
+
|
|
define IMX_GPU_VIV_INSTALL_STAGING_CMDS
|
|
define IMX_GPU_VIV_INSTALL_STAGING_CMDS
|
|
cp -r $(@D)/gpu-core/usr/* $(STAGING_DIR)/usr
|
|
cp -r $(@D)/gpu-core/usr/* $(STAGING_DIR)/usr
|
|
- $(IMX_GPU_VIV_FIXUP_PKGCONFIG)
|
|
|
|
for lib in egl gbm glesv1_cm glesv2 vg; do \
|
|
for lib in egl gbm glesv1_cm glesv2 vg; do \
|
|
$(INSTALL) -m 0644 -D \
|
|
$(INSTALL) -m 0644 -D \
|
|
$(@D)/gpu-core/usr/lib/pkgconfig/$${lib}.pc \
|
|
$(@D)/gpu-core/usr/lib/pkgconfig/$${lib}.pc \
|