From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: Herve Codina <herve.codina@bootlin.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 4/5] package/libshdata: new package
Date: Wed, 3 Nov 2021 16:50:00 +0100 [thread overview]
Message-ID: <20211103165000.2b694680@windsurf> (raw)
In-Reply-To: <20211103073656.1689919-5-herve.codina@bootlin.com>
Hello,
On Wed, 3 Nov 2021 08:36:55 +0100
Herve Codina <herve.codina@bootlin.com> wrote:
> The libshdata library provides lock free shared-memory tools.
>
> https://github.com/Parrot-Developers/libshdata
>
> The provided patch was submitted upstream.
> https://github.com/Parrot-Developers/libshdata/issues/1
This should rather go in the patch itself.
> diff --git a/package/libshdata/Config.in b/package/libshdata/Config.in
> new file mode 100644
> index 0000000000..730fb34dff
> --- /dev/null
> +++ b/package/libshdata/Config.in
> @@ -0,0 +1,23 @@
> +config BR2_PACKAGE_LIBSHDATA
> + bool "libshdata"
> + depends on BR2_TOOLCHAIN_HAS_SYNC_4
> + depends on BR2_TOOLCHAIN_HAS_ATOMIC # libfutils
> + depends on BR2_INSTALL_LIBSTDCPP # libfutils
> + depends on BR2_TOOLCHAIN_HAS_THREADS # libfutils
> + select BR2_PACKAGE_LIBFUTILS
> + help
> + This library provides lock free shared-memory tools
> +
> + https://github.com/Parrot-Developers/libshdata
> +
> +comment "libshdata needs a toolchain w/ C++, threads"
> + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
This needs to go *after* the if ... endif block, or the indentation of
the if ... endif block is broken in menuconfig. Also, you need to
account for the HAS_SYNC_4 and HAS_ATOMIC dependencies.
> +define LIBSHDATA_BUILD_CMDS
> + $(ALCHEMY_TARGET_CONFIGURE_ENV) \
> + $(call ALCHEMY_TARGET_CONFIGURE_SDKS, libfutils) \
> + $(LIBSHDATA_CONF_ENV) \
> + $(ALCHEMY_MAKE) $(LIBSHDATA_TARGETS)
Indentation.
> +endef
> +
> +define LIBSHDATA_INSTALL_STATIC_LIBS
> + $(INSTALL) -m 644 $(@D)/alchemy-out/staging/usr/lib/libshdata.a $(strip $(1))/usr/lib/
> + $(INSTALL) -m 644 $(@D)/alchemy-out/staging/usr/lib/libshdata-section-lookup.a $(strip $(1))/usr/lib/
> +endef
> +
> +define LIBSHDATA_INSTALL_HEADERS
> + cp -Raf $(@D)/include/* $(strip $(1))/usr/include/
> +endef
> +
> +ifeq ($(BR2_STATIC_LIBS),)
> +define LIBSHDATA_INSTALL_SHARED_LIBS
> + $(INSTALL) -m 755 $(@D)/alchemy-out/staging/usr/lib/libshdata.so* $(strip $(1))/usr/lib/
Sot here are two separate static libraries, but only one shared library ?
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2021-11-03 15:50 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-03 7:36 [Buildroot] [PATCH 0/5] Add Alchemy build system and some related libs Herve Codina
2021-11-03 7:36 ` [Buildroot] [PATCH 1/5] package/alchemy: new host package Herve Codina
2021-11-03 15:44 ` Thomas Petazzoni
2021-11-03 17:20 ` Herve Codina
2021-11-03 17:30 ` Thomas Petazzoni
2021-11-03 7:36 ` [Buildroot] [PATCH 2/5] package/ulog: new package Herve Codina
2021-11-03 15:47 ` Thomas Petazzoni
2021-11-03 17:24 ` Herve Codina
2021-11-03 7:36 ` [Buildroot] [PATCH 3/5] package/libfutils: " Herve Codina
2021-11-03 15:47 ` Thomas Petazzoni
2021-11-03 17:31 ` Herve Codina
2021-11-03 7:36 ` [Buildroot] [PATCH 4/5] package/libshdata: " Herve Codina
2021-11-03 15:50 ` Thomas Petazzoni [this message]
2021-11-03 17:49 ` Herve Codina
2021-11-03 7:36 ` [Buildroot] [PATCH 5/5] support/testing/tests/package/test_libshdata: new test Herve Codina
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211103165000.2b694680@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@buildroot.org \
--cc=herve.codina@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox