We manually install pkg-config files from
$(@D)/gpu-core/usr/lib/pkgconfig to the STAGING_DIR right after
copying the entire $(@D)/gpu-core/usr/* files to STAGING_DIR. This
makes the manual copying of pkg-config files pretty useless.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Reviewed-by: Gary Bisson <gary.bisson@boundarydevices.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
define IMX_GPU_VIV_INSTALL_STAGING_CMDS
cp -r $(@D)/gpu-core/usr/* $(STAGING_DIR)/usr
- for lib in egl gbm glesv1_cm glesv2 vg; do \
- $(INSTALL) -m 0644 -D \
- $(@D)/gpu-core/usr/lib/pkgconfig/$${lib}.pc \
- $(STAGING_DIR)/usr/lib/pkgconfig/$${lib}.pc; \
- done
endef
ifeq ($(BR2_PACKAGE_IMX_GPU_VIV_EXAMPLES),y)