|
@@ -52,9 +52,9 @@ define IMX_GPU_VIV_FIXUP_PKGCONFIG
|
|
|
endef
|
|
|
else ifeq ($(IMX_GPU_VIV_LIB_TARGET),x11)
|
|
|
define IMX_GPU_VIV_FIXUP_PKGCONFIG
|
|
|
- for lib in egl gbm glesv1_cm glesv2 vg; do \
|
|
|
- ln -sf $${lib}_x11.pc $(@D)/gpu-core/usr/lib/pkgconfig/$${lib}.pc || exit 1; \
|
|
|
- done
|
|
|
+ $(foreach lib,egl gbm glesv1_cm glesv2 vg, \
|
|
|
+ ln -sf $(lib)_x11.pc $(@D)/gpu-core/usr/lib/pkgconfig/$(lib).pc
|
|
|
+ )
|
|
|
endef
|
|
|
endif
|
|
|
|
|
@@ -63,9 +63,9 @@ endif
|
|
|
# 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
|
|
|
+ $(foreach backend,fb x11 wayland, \
|
|
|
+ $(RM) -r $(@D)/gpu-core/usr/lib/$(backend)
|
|
|
+ )
|
|
|
$(IMX_GPU_VIV_FIXUP_PKGCONFIG)
|
|
|
endef
|
|
|
|