[Buildroot] [PATCH] package/gcnano-binaries: Add package config files
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Fri Nov 22 22:16:34 UTC 2019
Hello Jens,
On Fri, 22 Nov 2019 16:00:32 +0100
Jens Kleintje <scooby22 at web.de> wrote:
> Qt needs the package config files for building.
>
> Signed-off-by: Jens Kleintje <scooby22 at web.de>
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...
> ---
> package/gcnano-binaries/gcnano-binaries.mk | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/package/gcnano-binaries/gcnano-binaries.mk b/package/gcnano-binaries/gcnano-binaries.mk
> index 4bfb5ad952..b27571a08c 100644
> --- a/package/gcnano-binaries/gcnano-binaries.mk
> +++ b/package/gcnano-binaries/gcnano-binaries.mk
> @@ -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
... 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.
> 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
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list