All of lore.kernel.org
 help / color / mirror / Atom feed
* why conditional assignment of DEPLOY_DIR_IMAGE in bitbake.conf?
@ 2014-07-22 16:36 Robert P. J. Day
  2014-07-22 16:43 ` Christopher Larson
  0 siblings, 1 reply; 4+ messages in thread
From: Robert P. J. Day @ 2014-07-22 16:36 UTC (permalink / raw)
  To: OE Core mailing list


  quite possibly another silly question, but i'm perusing poky's
version of bitbake.conf and i see this:

DEPLOY_DIR ?= "${TMPDIR}/deploy"
DEPLOY_DIR_TAR = "${DEPLOY_DIR}/tar"
DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb"
DEPLOY_DIR_IMAGE ?= "${DEPLOY_DIR}/images/${MACHINE}"
DEPLOY_DIR_TOOLS = "${DEPLOY_DIR}/tools"

  now, what is the value of using "?=" to set DEPLOY_DIR_IMAGE, rather
than just "=". i know what "?=" represents, but i normally expect to
see it in a context where someone might have set it earlier to some
other value, but this is in bitbake.conf, before any of the "include"
or "require" directives to pull in any of the other .conf files. so in
the midst of all those other DEPLOY_DIR_* hard assignments, why is the
images directory a conditional install?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================



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

* Re: why conditional assignment of DEPLOY_DIR_IMAGE in bitbake.conf?
  2014-07-22 16:36 why conditional assignment of DEPLOY_DIR_IMAGE in bitbake.conf? Robert P. J. Day
@ 2014-07-22 16:43 ` Christopher Larson
  2014-07-22 16:53   ` Robert P. J. Day
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Larson @ 2014-07-22 16:43 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: OE Core mailing list

[-- Attachment #1: Type: text/plain, Size: 1439 bytes --]

On Tue, Jul 22, 2014 at 9:36 AM, Robert P. J. Day <rpjday@crashcourse.ca>
wrote:

>   quite possibly another silly question, but i'm perusing poky's
> version of bitbake.conf and i see this:
>
> DEPLOY_DIR ?= "${TMPDIR}/deploy"
> DEPLOY_DIR_TAR = "${DEPLOY_DIR}/tar"
> DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
> DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
> DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb"
> DEPLOY_DIR_IMAGE ?= "${DEPLOY_DIR}/images/${MACHINE}"
> DEPLOY_DIR_TOOLS = "${DEPLOY_DIR}/tools"
>
>   now, what is the value of using "?=" to set DEPLOY_DIR_IMAGE, rather
> than just "=". i know what "?=" represents, but i normally expect to
> see it in a context where someone might have set it earlier to some
> other value, but this is in bitbake.conf, before any of the "include"
> or "require" directives to pull in any of the other .conf files. so in
> the midst of all those other DEPLOY_DIR_* hard assignments, why is the
> images directory a conditional install?
>

s/install/define/

If there's a ?= done before any includes in bitbake.conf, either its
position in the file has changed, or it's set that way to allow the user to
add those variables to the env whitelist and set them in the environment,
as the env is set before bitbake.conf is parsed.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics

[-- Attachment #2: Type: text/html, Size: 2065 bytes --]

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

* Re: why conditional assignment of DEPLOY_DIR_IMAGE in bitbake.conf?
  2014-07-22 16:43 ` Christopher Larson
@ 2014-07-22 16:53   ` Robert P. J. Day
  2014-07-22 17:04     ` Mark Hatle
  0 siblings, 1 reply; 4+ messages in thread
From: Robert P. J. Day @ 2014-07-22 16:53 UTC (permalink / raw)
  To: Christopher Larson; +Cc: OE Core mailing list

[-- Attachment #1: Type: TEXT/PLAIN, Size: 2114 bytes --]

On Tue, 22 Jul 2014, Christopher Larson wrote:

>
> On Tue, Jul 22, 2014 at 9:36 AM, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
>         quite possibly another silly question, but i'm perusing poky's
>       version of bitbake.conf and i see this:
>
>       DEPLOY_DIR ?= "${TMPDIR}/deploy"
>       DEPLOY_DIR_TAR = "${DEPLOY_DIR}/tar"
>       DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
>       DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
>       DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb"
>       DEPLOY_DIR_IMAGE ?= "${DEPLOY_DIR}/images/${MACHINE}"
>       DEPLOY_DIR_TOOLS = "${DEPLOY_DIR}/tools"
>
>         now, what is the value of using "?=" to set DEPLOY_DIR_IMAGE, rather
>       than just "=". i know what "?=" represents, but i normally expect to
>       see it in a context where someone might have set it earlier to some
>       other value, but this is in bitbake.conf, before any of the "include"
>       or "require" directives to pull in any of the other .conf files. so in
>       the midst of all those other DEPLOY_DIR_* hard assignments, why is the
>       images directory a conditional install?
>
>
> s/install/define/

  um, quite so. :-P

> If there's a ?= done before any includes in bitbake.conf, either its
> position in the file has changed, or it's set that way to allow the
> user to add those variables to the env whitelist and set them in the
> environment, as the env is set before bitbake.conf is parsed.

  ah, gotcha. so the obvious question is, who decides which variables
merit this sort of behaviour and which don't? why two variables out of
the DEPLOY_DIR_* variables and not the rest? seems sort of arbitrary.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

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

* Re: why conditional assignment of DEPLOY_DIR_IMAGE in bitbake.conf?
  2014-07-22 16:53   ` Robert P. J. Day
@ 2014-07-22 17:04     ` Mark Hatle
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Hatle @ 2014-07-22 17:04 UTC (permalink / raw)
  To: openembedded-core

On 7/22/14, 11:53 AM, Robert P. J. Day wrote:
> On Tue, 22 Jul 2014, Christopher Larson wrote:
>
>>
>> On Tue, Jul 22, 2014 at 9:36 AM, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
>>          quite possibly another silly question, but i'm perusing poky's
>>        version of bitbake.conf and i see this:
>>
>>        DEPLOY_DIR ?= "${TMPDIR}/deploy"
>>        DEPLOY_DIR_TAR = "${DEPLOY_DIR}/tar"
>>        DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
>>        DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
>>        DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb"
>>        DEPLOY_DIR_IMAGE ?= "${DEPLOY_DIR}/images/${MACHINE}"
>>        DEPLOY_DIR_TOOLS = "${DEPLOY_DIR}/tools"
>>
>>          now, what is the value of using "?=" to set DEPLOY_DIR_IMAGE, rather
>>        than just "=". i know what "?=" represents, but i normally expect to
>>        see it in a context where someone might have set it earlier to some
>>        other value, but this is in bitbake.conf, before any of the "include"
>>        or "require" directives to pull in any of the other .conf files. so in
>>        the midst of all those other DEPLOY_DIR_* hard assignments, why is the
>>        images directory a conditional install?
>>
>>
>> s/install/define/
>
>    um, quite so. :-P
>
>> If there's a ?= done before any includes in bitbake.conf, either its
>> position in the file has changed, or it's set that way to allow the
>> user to add those variables to the env whitelist and set them in the
>> environment, as the env is set before bitbake.conf is parsed.
>
>    ah, gotcha. so the obvious question is, who decides which variables
> merit this sort of behaviour and which don't? why two variables out of
> the DEPLOY_DIR_* variables and not the rest? seems sort of arbitrary.

Who, whoever sends patches with a need.

I know I've used both the DEPLOY_DIR and DEPLOY_DIR_IMAGE before to simplify a 
few things on the command line.. (but I don't use them regularly).

The others being based on those have not caused me problems the few times I've 
wanted to override it from the command line.

--Mark

> rday
>
>
>



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

end of thread, other threads:[~2014-07-22 17:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-22 16:36 why conditional assignment of DEPLOY_DIR_IMAGE in bitbake.conf? Robert P. J. Day
2014-07-22 16:43 ` Christopher Larson
2014-07-22 16:53   ` Robert P. J. Day
2014-07-22 17:04     ` Mark Hatle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.