[meta-xilinx] ZynqMP causes tons of recipes to fail to parse because of PMU build
Mike Looijmans
mike.looijmans at topic.nl
Fri Aug 18 02:22:41 PDT 2017
On 17-08-17 23:57, Nathan Rossi wrote:
> On 17 August 2017 at 23:12, Mike Looijmans <mike.looijmans at topic.nl> wrote:
>> I'm attempting to revive my build for the MPSOC machines. If one does
>> something like this:
>>
>> MACHINE=zcu102-zynqmp bitbake my-image
>>
>> I get parsing errors like:
>>
>> ERROR: ExpansionError during parsing /home/mike/projects/@@@.bb
>> Traceback (most recent call last):
...
>> bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression
>> was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError:
>> Fetcher failure: The SRCREV_FORMAT variable must be set when multiple SCMs
>> are used.
>
> Looks like a very odd failure, unfortunately I cannot reproduce with
> pyro or master on recipes that use version control or dynamic SRCREV
> features. Could you provide some build config info and if possible the
> recipe that is generating the error?
I made a "bare" clone of oe-core, meta-oe and meta-xilinx. Ran a build, which
went okay.
I copied this recipe into meta-xilinx for parsing, and got the error:
(topic-miami-monitor-lib.bb, fetches a C program from github)
...
SUMMARY = "Example and/or library for reading SOM monitor devices"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=9eef91148a9b14ec7f9df333daebc746"
GITHUB_TOPIC_URI ?= "git://github.com/topic-embedded-products"
SRC_URI = "${GITHUB_TOPIC_URI}/${PN}"
SRCREV = "ef7db896aa7282626431f7ab6723a9a9d62aea93"
inherit gitpkgv
PV = "0+${SRCPV}"
PKGV = "0+${GITPKGV}"
S = "${WORKDIR}/git"
do_install() {
install -d ${D}${bindir}
install -m 755 ${B}/topic-miami-monitor-example ${D}${bindir}
}
...
ERROR: ExpansionError during parsing
/home/mike/projects/xilinx-platform/meta-xilinx/recipes-test/topic/topic-miami-monitor-lib.bb
Traceback (most recent call last):
File "/home/mike/projects/xilinx-platform/bitbake/lib/bb/data_smart.py",
line 412, in DataSmart.expandWithRefs(s='0+${SRCPV}', varname='PV'):
try:
> s = __expand_var_regexp__.sub(varparse.var_sub, s)
try:
File "/home/mike/projects/xilinx-platform/bitbake/lib/bb/data_smart.py",
line 111, in VariableParse.var_sub(match=<_sre.SRE_Match object; span=(2, 10),
match='${SRCPV}'>):
else:
> var = self.d.getVarFlag(key, "_content")
self.references.add(key)
File "/home/mike/projects/xilinx-platform/bitbake/lib/bb/data_smart.py",
line 794, in DataSmart.getVarFlag(var='SRCPV', flag='_content', expand=True,
noweakdefault=False, parsing=False):
cachename = var + "[" + flag + "]"
> value = self.expand(value, cachename)
File "/home/mike/projects/xilinx-platform/bitbake/lib/bb/data_smart.py",
line 436, in DataSmart.expand(s='${@bb.fetch2.get_srcrev(d)}', varname='SRCPV'):
def expand(self, s, varname = None):
> return self.expandWithRefs(s, varname).value
File "/home/mike/projects/xilinx-platform/bitbake/lib/bb/data_smart.py",
line 426, in DataSmart.expandWithRefs(s='${@bb.fetch2.get_srcrev(d)}',
varname='SRCPV'):
except Exception as exc:
> raise ExpansionError(varname, s, exc) from exc
bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression was
${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher
failure: The SRCREV_FORMAT variable must be set when multiple SCMs are used.
...
mike:~/projects/xilinx-platform/build$ cat conf/bblayers.conf
# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
LCONF_VERSION = "7"
# Top dir is three dirs back
LAYERTOPDIR :=
"${@os.path.dirname(os.path.dirname(os.path.dirname(d.getVar('FILE', True))))}"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
BBLAYERS = " \
${LAYERTOPDIR}/oe-core/meta \
${LAYERTOPDIR}/meta-oe/meta-oe \
${LAYERTOPDIR}/meta-xilinx \
"
Kind regards,
Mike Looijmans
System Expert
TOPIC Products
Materiaalweg 4, NL-5681 RJ Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: mike.looijmans at topicproducts.com
Website: www.topicproducts.com
Please consider the environment before printing this e-mail
More information about the meta-xilinx
mailing list