package/gcnano-binaries
v2 cover package/gcnano-binaries
Changes v2: divide patch into 2 parts
PATCH v2 1/2 package/gcnano-binaries: Add package config files
Qt needs the package config files for building.
Signed-off-by Jens Kleintje <[email protected]>
--- package/gcnano-binaries/gcnano-binaries.mk | 6 ++++++ 1 file changed, 6 insertions(+)
package/gcnano-binaries/gcnano-binaries.mk +6 -0
@@ -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
Thomas Petazzoni
AppliedPATCH 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.
Signed-off-by Jens Kleintje <[email protected]>--- 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
PATCH v2 2/2 package/gcnano-binaries: Create directory before copy files
In reply to Jens KleintjeThe directory $(1)/usr/include may not exist before copy files.
Signed-off-by Jens Kleintje <[email protected]>
--- package/gcnano-binaries/gcnano-binaries.mk | 1 + 1 file changed, 1 insertion(+)
package/gcnano-binaries/gcnano-binaries.mk +1 -0
@@ -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
Thomas Petazzoni
AppliedPATCH 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.
Signed-off-by Jens Kleintje <[email protected]>--- 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