mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] How to add a compiler variable from another package?
@ 2015-08-27  7:39 Moritz Warning
  2015-09-28 10:50 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Moritz Warning @ 2015-08-27  7:39 UTC (permalink / raw)
  To: ptxdist

Hi,

I have a package that, when selected, should add a variable to a bunch 
of other packages.

Is this possible?

thanks,
mwarning

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] How to add a compiler variable from another package?
  2015-08-27  7:39 [ptxdist] How to add a compiler variable from another package? Moritz Warning
@ 2015-09-28 10:50 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2015-09-28 10:50 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-09-28 10:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-27  7:39 [ptxdist] How to add a compiler variable from another package? Moritz Warning
2015-09-28 10:50 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox