[OE-core] BB_SRCREV_POLICY doesn't seem to work

Robert P. J. Day rpjday at crashcourse.ca
Thu Jan 31 10:37:59 UTC 2013


  as a test, i currently have a full core-image-minimal build for an
am180x-evm, so i just did a fetchall to establish a baseline, that
worked fine.

  next, i added:

  BB_NO_NETWORK = "1"

to my site.conf, which failed predictably with:

ERROR: ExpansionError during parsing
/home/rpjday/oe/dist/layers/meta-ti/recipes-bsp/u-boot/u-boot_2013.01.bb:
Failure expanding variable SRCPV, expression was
${@bb.fetch2.get_srcrev(d)} which triggered exception NetworkAccess:
Network access disabled through BB_NO_NETWORK but access requested
with command git ls-remote
git://arago-project.org/git/projects/u-boot-keystone.git
DEV.MCSDK-03.00.00.07 (for url None)
ERROR: Command execution failed: Exited with 1

  ok, so i reverted the BB_NO_NETWORK setting and added to local.conf:

  BB_SRCREV_POLICY := "cache"

predictably, that worked and, according to yesterday's discussion, i
should now be able to do away with network access, so once again:

  BB_NO_NETWORK = "1"

and:

ERROR: ExpansionError during parsing
/home/rpjday/oe/dist/layers/meta-ti/recipes-bsp/u-boot/u-boot_2013.01.bb:
Failure expanding variable SRCPV, expression was
${@bb.fetch2.get_srcrev(d)} which triggered exception NetworkAccess:
Network access disabled through BB_NO_NETWORK but access requested
with command git ls-remote
git://arago-project.org/git/projects/u-boot-keystone.git
DEV.MCSDK-03.00.00.07 (for url None)
ERROR: Command execution failed: Exited with 1

  ok, what have i done wrong?  i thought the whole point of
BB_SRCREV_POLICY was to make the above possible.

rday

-- 

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

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




More information about the Openembedded-core mailing list