Skip to contentSkip to conversation

package/gcnano-binaries

PATCH New Jens Kleintje 2 participants 5 messages Nov 25, 2019

lore
Share & tools
lore
#0 lore raw

v2 cover package/gcnano-binaries

Changes v2: divide patch into 2 parts

#1 lore raw

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

Qt needs the package config files for building.

---
 package/gcnano-binaries/gcnano-binaries.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/gcnano-binaries/gcnano-binaries.mk +6 -0
index 4bfb5ad952..2913e664dc 100644
@@ -48,6 +48,8 @@ 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 \
@@ -55,6 +57,10 @@ define GCNANO_BINARIES_INSTALL
 		cp -a $(@D)/$(GCNANO_BINARIES_USERLAND_SUBDIR)/usr/lib/$(lib).so* $(1)/usr/lib
 	)
 	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

#2 lore raw

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

Quoted 6 lines · On Mon, 25 Nov 2019 11:14:25 +0100 Jens Kleintje <[email protected]> wrote:

Qt needs the package config files for building.

---
 package/gcnano-binaries/gcnano-binaries.mk | 6 ++++++
 1 file changed, 6 insertions(+)

Applied to next, thanks.

Thomas

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

PATCH v2 2/2 package/gcnano-binaries: Create directory before copy files

In reply to Jens Kleintje

The directory $(1)/usr/include may not exist before copy files.

---
 package/gcnano-binaries/gcnano-binaries.mk | 1 +
 1 file changed, 1 insertion(+)
package/gcnano-binaries/gcnano-binaries.mk +1 -0
index 2913e664dc..b27571a08c 100644
@@ -56,6 +56,7 @@ define GCNANO_BINARIES_INSTALL
 			$(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 \

--
2.17.1

#4 lore raw

PATCH v2 2/2 package/gcnano-binaries: Create directory before copy files

Quoted 6 lines · On Mon, 25 Nov 2019 11:14:26 +0100 Jens Kleintje <[email protected]> wrote:

The directory $(1)/usr/include may not exist before copy files.

---
 package/gcnano-binaries/gcnano-binaries.mk | 1 +
 1 file changed, 1 insertion(+)

Applied to next, thanks.

Thomas

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