Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3] tcfagent: new package
Date: Tue, 2 Jan 2018 17:57:06 +0100	[thread overview]
Message-ID: <20180102175706.1181ee14@windsurf.lan> (raw)
In-Reply-To: <CADYdroPpPWkH1600q-u=PZBcZBOrev6Tu8+LEB5jBgTcfHzGKQ@mail.gmail.com>

Hello,

On Tue, 2 Jan 2018 17:34:19 +0100, Norbert Lange wrote:

> before I do the bureaucratic work and more testing,
> there is some mixed information from you and the docs.
> 
> To quote the manual:
> > Target architecture
> >
> > Dependency symbol: BR2_powerpc, BR2_mips, ? (see arch/Config.in)
> > Comment string: no comment to be added  

This is correct. However, we don't want a comment to show up saying
"you need thread support to enable tcf-agent" if anyway tcf-agent is
not available on the currently selected architecture. So the comment is
not about the architecture dependency, but the comment should not be
displayed if the architectures dependencies are not met.

> config BR2_PACKAGE_TCFAGENT
> bool "tcfagent"
> depends on BR2_TOOLCHAIN_HAS_THREADS
> depends on BR2_PACKAGE_TCFAGENT_ARCH_SUPPORTS
> select BR2_PACKAGE_UTIL_LINUX
> select BR2_PACKAGE_UTIL_LINUX_LIBUUID
> help
>   Target Communication Framework Agent is an example application
>   using the Target Communication Framework Library.
> 
>   Target Communication Framework is universal, extensible, simple,
>   lightweight, vendor agnostic framework for tools and targets to
>   communicate for purpose of debugging, profiling, code patching
>   and other device software development needs.
> 
>   tcf-agent is a daemon, which provides TCF services that can be
>   used by local and remote clients.
> 
> config BR2_PACKAGE_TCFAGENT_ARCH
> string
> default "arm"        if BR2_arm || BR2_armeb
> default "a64"        if BR2_aarch64 || BR2_aarch64be
> default "i686"       if BR2_i386 && BR2_ARCH="i686"
> default "i386"       if BR2_i386
> default "x86_64"     if BR2_x86_64
> default "powerpc"    if BR2_powerpc
> default "ppc64"      if BR2_powerpc64 || BR2_powerpc64le
> #   Supported with 1.6, enable when released
> # default "microblaze" if BR2_microblaze || BR2_microblazeel
> 
> config BR2_PACKAGE_TCFAGENT_ARCH_SUPPORTS
> bool
> default y if BR2_PACKAGE_TCFAGENT_ARCH != ""
> 
> comment "tcfagent needs a toolchain w/ threads"

Just add:

	depends on BR2_PACKAGE_TCFAGENT_ARCH_SUPPORTS

here, so that the comment doesn't show up on unsupported architectures.

> depends on !BR2_TOOLCHAIN_HAS_THREADS

Thanks a lot!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

      reply	other threads:[~2018-01-02 16:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-04 11:43 [Buildroot] [PATCH v2] tcfagent: new package Norbert Lange
2017-12-04 12:09 ` [Buildroot] [PATCH v3] " Norbert Lange
2017-12-05  9:41   ` Marcus Folkesson
2017-12-05 10:51     ` Norbert Lange
2017-12-05 12:43       ` Thomas Petazzoni
2017-12-13 13:49   ` Thomas Petazzoni
2017-12-15 13:11     ` Norbert Lange
2018-01-02 16:34       ` Norbert Lange
2018-01-02 16:57         ` Thomas Petazzoni [this message]

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=20180102175706.1181ee14@windsurf.lan \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /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