[oe] [meta-oe][PATCH] libgpiod: put gpio utils into an actual separate package

Khem Raj raj.khem at gmail.com
Mon Jul 29 15:01:45 UTC 2019


Fails to build

https://errors.yoctoproject.org/Errors/Details/255488/

On Sat, Jul 27, 2019 at 1:30 PM Bartosz Golaszewski <brgl at bgdev.pl> wrote:
>
> From: Bartosz Golaszewski <bgolaszewski at baylibre.com>
>
> Currently tools are built conditionally depending on whether the
> corresponding PACKAGECONFIG option has been set and, although they
> live in a separate libgpiod-tools package, the user cannot simply
> select it - he has to additionally extend PACKAGECONFIG. While this
> makes sense for python and C++ bindings, the tools don't have any
> dependencies other the libgpiod. Make libgpiod-tools an actual
> stand-alone package: always build them but install them only if
> user selected libgpiod-tools.
>
> Signed-off-by: Bartosz Golaszewski <bgolaszewski at baylibre.com>
> ---
>  meta-oe/recipes-support/libgpiod/libgpiod.inc | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/meta-oe/recipes-support/libgpiod/libgpiod.inc b/meta-oe/recipes-support/libgpiod/libgpiod.inc
> index 89679cb91..07ce35a7f 100644
> --- a/meta-oe/recipes-support/libgpiod/libgpiod.inc
> +++ b/meta-oe/recipes-support/libgpiod/libgpiod.inc
> @@ -8,11 +8,9 @@ SRC_URI = "https://www.kernel.org/pub/software/libs/libgpiod/${BP}.tar.xz"
>  inherit autotools pkgconfig
>
>  PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,kmod udev"
> -PACKAGECONFIG[tools] = "--enable-tools,--disable-tools,"
> +
> +EXTRA_OECONF = "--enable-tools"
>
>  PACKAGES =+ " ${PN}-tools"
>
>  FILES_${PN}-tools = "${bindir}/*"
> -
> -RRECOMMENDS_TOOLS = "${@bb.utils.contains('PACKAGECONFIG', 'tools', '${PN}-tools', '',d)}"
> -RRECOMMENDS_${PN} += "${RRECOMMENDS_TOOLS}"
> --
> 2.21.0
>


More information about the Openembedded-devel mailing list