mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] How to add a compiler variable from another package?
Date: Mon, 28 Sep 2015 12:50:10 +0200	[thread overview]
Message-ID: <20150928105010.GT26946@pengutronix.de> (raw)
In-Reply-To: <55DEBEBC.6030501@meteocontrol.de>

Hi,

On Thu, Aug 27, 2015 at 09:39:40AM +0200, Moritz Warning wrote:
> I have a package that, when selected, should add a variable to a
> bunch of other packages.
> 
> Is this possible?

What kind of variables? kconfig? make variables to influence the building
the package?
You can always access all PTXCONF_* variables in the makefiles. However,
using PTXCONF variables from another package breaks the dependency
handling, so what I do is something like this:

# this is the package that should trigger the change
config FOO
	tristate
	prompt "foo"
	...


config BAR
	tristate
	prompt "bar"

if BAR

config BAR_FOO
	bool
	default FOO


This way BAR_FOO has the same value as FOO and the package bar is rebuilt
when foo is enabled or disabled. Is that what you're looking for?

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

      reply	other threads:[~2015-09-28 10:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-27  7:39 Moritz Warning
2015-09-28 10:50 ` Michael Olbrich [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=20150928105010.GT26946@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /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