Skip to contentSkip to conversation

package/gcnano-binaries: Add package config files

PATCH Superseded Jens Kleintje 2 participants 2 messages Nov 22, 2019

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/gcnano-binaries: Add package config files

Qt needs the package config files for building.

---
 package/gcnano-binaries/gcnano-binaries.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/gcnano-binaries/gcnano-binaries.mk +7 -0
index 4bfb5ad952..b27571a08c 100644
@@ -48,13 +48,20 @@ GCNANO_BINARIES_LIBRARIES = \
 
 GCNANO_BINARIES_USERLAND_SUBDIR = gcnano-userland-multi-$(GCNANO_BINARIES_USERLAND_VERSION)
 
+GCNANO_BINARIES_PKG_CONFIGS = egl gbm glesv1_cm glesv2 vg
+
 define GCNANO_BINARIES_INSTALL
 	$(foreach lib,$(GCNANO_BINARIES_LIBRARIES), \
 		$(INSTALL) -D -m 0755 $(@D)/$(GCNANO_BINARIES_USERLAND_SUBDIR)/usr/lib/$(lib).$(GCNANO_BINARIES_LIB_VERSION).multi.release.so \
 			$(1)/usr/lib/$(lib).$(GCNANO_BINARIES_LIB_VERSION).multi.release.so ; \
 		cp -a $(@D)/$(GCNANO_BINARIES_USERLAND_SUBDIR)/usr/lib/$(lib).so* $(1)/usr/lib
 	)
+	mkdir -p $(1)/usr/include
 	cp -a $(@D)/$(GCNANO_BINARIES_USERLAND_SUBDIR)/usr/include/* $(1)/usr/include/
+	$(foreach pkgconfig,$(GCNANO_BINARIES_PKG_CONFIGS), \
+		$(INSTALL) -D -m 0644 $(@D)/$(GCNANO_BINARIES_USERLAND_SUBDIR)/usr/lib/pkgconfig/$(pkgconfig).pc \
+			$(1)/usr/lib/pkgconfig/$(pkgconfig).pc
+	)
 endef
 
 define GCNANO_BINARIES_INSTALL_TARGET_CMDS

--
2.17.1

#1 lore raw

PATCH 1/1 package/gcnano-binaries: Add package config files

Hello Jens,

Quoted 3 lines · On Fri, 22 Nov 2019 16:00:32 +0100 Jens Kleintje <[email protected]> wrote:

Qt needs the package config files for building.

Thanks for this patch, I like this approach better compared to removing the .pc file you're not interested in from the source directory, and then copying all the remaining ones. However...

Quoted 11 lines
---
 package/gcnano-binaries/gcnano-binaries.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/gcnano-binaries/gcnano-binaries.mk +0 -0
index 4bfb5ad952..b27571a08c 100644
@@ -48,13 +48,20 @@ GCNANO_BINARIES_LIBRARIES = \
 
 GCNANO_BINARIES_USERLAND_SUBDIR = gcnano-userland-multi-$(GCNANO_BINARIES_USERLAND_VERSION)

package/gcnano-binaries/gcnano-binaries.mk GCNANO_BINARIES_LIBRARIES = \ · line 59

Quoted 10 lines
package/gcnano-binaries/gcnano-binaries.mk +3 -0
 
+GCNANO_BINARIES_PKG_CONFIGS = egl gbm glesv1_cm glesv2 vg
+
 define GCNANO_BINARIES_INSTALL
 	$(foreach lib,$(GCNANO_BINARIES_LIBRARIES), \
 		$(INSTALL) -D -m 0755 $(@D)/$(GCNANO_BINARIES_USERLAND_SUBDIR)/usr/lib/$(lib).$(GCNANO_BINARIES_LIB_VERSION).multi.release.so \
 			$(1)/usr/lib/$(lib).$(GCNANO_BINARIES_LIB_VERSION).multi.release.so ; \
 		cp -a $(@D)/$(GCNANO_BINARIES_USERLAND_SUBDIR)/usr/lib/$(lib).so* $(1)/usr/lib
 	)
+	mkdir -p $(1)/usr/include

... this is not related to the pkg-config files at all, this is clearly a fix for a mistake in my previous patch. Ideally, it should be a separate patch.

package/gcnano-binaries/gcnano-binaries.mk GCNANO_BINARIES_LIBRARIES = \ · line 65

Quoted 6 lines
package/gcnano-binaries/gcnano-binaries.mk +4 -0
 	cp -a $(@D)/$(GCNANO_BINARIES_USERLAND_SUBDIR)/usr/include/* $(1)/usr/include/
+	$(foreach pkgconfig,$(GCNANO_BINARIES_PKG_CONFIGS), \
+		$(INSTALL) -D -m 0644 $(@D)/$(GCNANO_BINARIES_USERLAND_SUBDIR)/usr/lib/pkgconfig/$(pkgconfig).pc \
+			$(1)/usr/lib/pkgconfig/$(pkgconfig).pc
+	)
 endef

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com