Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 0/2] package/gcnano-binaries
@ 2019-11-25 10:14 Jens Kleintje
  2019-11-25 10:14 ` [Buildroot] [PATCH v2 1/2] package/gcnano-binaries: Add package config files Jens Kleintje
  2019-11-25 10:14 ` [Buildroot] [PATCH v2 2/2] package/gcnano-binaries: Create directory before copy files Jens Kleintje
  0 siblings, 2 replies; 5+ messages in thread
From: Jens Kleintje @ 2019-11-25 10:14 UTC (permalink / raw)
  To: buildroot

Changes v2:  divide patch into 2 parts

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH v2 1/2] package/gcnano-binaries: Add package config files
  2019-11-25 10:14 [Buildroot] [PATCH v2 0/2] package/gcnano-binaries Jens Kleintje
@ 2019-11-25 10:14 ` Jens Kleintje
  2019-11-25 17:19   ` Thomas Petazzoni
  2019-11-25 10:14 ` [Buildroot] [PATCH v2 2/2] package/gcnano-binaries: Create directory before copy files Jens Kleintje
  1 sibling, 1 reply; 5+ messages in thread
From: Jens Kleintje @ 2019-11-25 10:14 UTC (permalink / raw)
  To: buildroot

Qt needs the package config files for building.

Signed-off-by: Jens Kleintje <scooby22@web.de>
---
 package/gcnano-binaries/gcnano-binaries.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/gcnano-binaries/gcnano-binaries.mk b/package/gcnano-binaries/gcnano-binaries.mk
index 4bfb5ad952..2913e664dc 100644
--- a/package/gcnano-binaries/gcnano-binaries.mk
+++ b/package/gcnano-binaries/gcnano-binaries.mk
@@ -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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH v2 2/2] package/gcnano-binaries: Create directory before copy files
  2019-11-25 10:14 [Buildroot] [PATCH v2 0/2] package/gcnano-binaries Jens Kleintje
  2019-11-25 10:14 ` [Buildroot] [PATCH v2 1/2] package/gcnano-binaries: Add package config files Jens Kleintje
@ 2019-11-25 10:14 ` Jens Kleintje
  2019-11-25 17:19   ` Thomas Petazzoni
  1 sibling, 1 reply; 5+ messages in thread
From: Jens Kleintje @ 2019-11-25 10:14 UTC (permalink / raw)
  To: buildroot

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

Signed-off-by: Jens Kleintje <scooby22@web.de>
---
 package/gcnano-binaries/gcnano-binaries.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/gcnano-binaries/gcnano-binaries.mk b/package/gcnano-binaries/gcnano-binaries.mk
index 2913e664dc..b27571a08c 100644
--- a/package/gcnano-binaries/gcnano-binaries.mk
+++ b/package/gcnano-binaries/gcnano-binaries.mk
@@ -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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH v2 1/2] package/gcnano-binaries: Add package config files
  2019-11-25 10:14 ` [Buildroot] [PATCH v2 1/2] package/gcnano-binaries: Add package config files Jens Kleintje
@ 2019-11-25 17:19   ` Thomas Petazzoni
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2019-11-25 17:19 UTC (permalink / raw)
  To: buildroot

On Mon, 25 Nov 2019 11:14:25 +0100
Jens Kleintje <scooby22@web.de> wrote:

> Qt needs the package config files for building.
> 
> Signed-off-by: Jens Kleintje <scooby22@web.de>
> ---
>  package/gcnano-binaries/gcnano-binaries.mk | 6 ++++++
>  1 file changed, 6 insertions(+)

Applied to next, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH v2 2/2] package/gcnano-binaries: Create directory before copy files
  2019-11-25 10:14 ` [Buildroot] [PATCH v2 2/2] package/gcnano-binaries: Create directory before copy files Jens Kleintje
@ 2019-11-25 17:19   ` Thomas Petazzoni
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2019-11-25 17:19 UTC (permalink / raw)
  To: buildroot

On Mon, 25 Nov 2019 11:14:26 +0100
Jens Kleintje <scooby22@web.de> wrote:

> The directory $(1)/usr/include may not exist before copy files.
> 
> Signed-off-by: Jens Kleintje <scooby22@web.de>
> ---
>  package/gcnano-binaries/gcnano-binaries.mk | 1 +
>  1 file changed, 1 insertion(+)

Applied to next, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-11-25 17:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-25 10:14 [Buildroot] [PATCH v2 0/2] package/gcnano-binaries Jens Kleintje
2019-11-25 10:14 ` [Buildroot] [PATCH v2 1/2] package/gcnano-binaries: Add package config files Jens Kleintje
2019-11-25 17:19   ` Thomas Petazzoni
2019-11-25 10:14 ` [Buildroot] [PATCH v2 2/2] package/gcnano-binaries: Create directory before copy files Jens Kleintje
2019-11-25 17:19   ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox