Hi Christian, > -----Original Message----- > From: [email protected] [mailto:meta-xilinx- > [email protected]] On Behalf Of Christian Dreher > Sent: Friday, February 22, 2019 11:50 AM > To: [email protected] > Subject: [meta-xilinx] Syntax issue with device-tree using thud > > Hi, > > I tried to use meta-xilinx on thud branch, and I got some "SyntaxError: > invalid syntax" > on meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb > > It comes with the changes on meta-xilinx SHA1: > b6f2540b0ab22dba8b90e68f4151e865483d51d9 "device-tree: Consolidate device- > tree recipe and append" > > I read in the commit message it depends on openembedded-core/meta, but I fetch > it, branch thud, from github, which is up-to-date with git.openembedded.org > > If I revert the commit, the recipe parsing passes (but uboot-xlnx fails on > some step > related to device trees), but I don't really understand where to fix the > recipe. > > I know I'm a bit ahead of what Xilinx officially supports (rel-v2018.3 is > told to be > based on Rocko), and for know, what I do works on sumo, but I would like to > know if > the issue is on my side, or if it is known and will be fixed later. > > If it works on your computer and you need my setup, I made something near, > that > allows me to reproduce the issue: > It's based on linaro's Open Embedded Reference Platform Build for 96boards, I > just > added meta-xilinx (thud) and meta-xilinx-tools (2018.3) > > (assuming you're in an empty folder and you've got repo (the android tool) in > your > path) repo init -u https://github.com/dreherch/oe-rpb-manifest -b thud repo > sync - > j16 MACHINE=zcu102-zynqmp DISTRO=rpb source setup-environment bitbake core- > image-minimal > > you can find the repo manifest it uses directly here: > https://github.com/dreherch/oe-rpb-manifest/blob/thud/default.xml > > The error log looks as follow: > ERROR: Unable to parse /home/cdreher/REPO/rpb-github/build- > rpb/conf/../../layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device- > tree.bb > Traceback (most recent call last): > File "/home/cdreher/REPO/rpb-github/bitbake/lib/bb/siggen.py", line 134, in > SignatureGeneratorOEBasicHash.finalise(fn='/home/cdreher/REPO/rpb-github/build- > rpb/conf/../../layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device- > tree.bb', d=<bb.data_smart.DataSmart object at 0x7f79ef6bcc18>, variant=None): > try: > > taskdeps = self._build_data(fn, d) > except bb.parse.SkipRecipe: > File "/home/cdreher/REPO/rpb-github/bitbake/lib/bb/siggen.py", line 111, in > SignatureGeneratorOEBasicHash._build_data(fn='/home/cdreher/REPO/rpb- > github/build-rpb/conf/../../layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device- > tree/device-tree.bb', d=<bb.data_smart.DataSmart object at 0x7f79ef6bcc18>): > ignore_mismatch = ((d.getVar("BB_HASH_IGNORE_MISMATCH") or '') > == '1') > > tasklist, gendeps, lookupcache = bb.data.generate_dependencies(d) > > File "/home/cdreher/REPO/rpb-github/bitbake/lib/bb/data.py", line 394, in > generate_dependencies(d=<bb.data_smart.DataSmart object at 0x7f79ef6bcc18>): > for task in tasklist: > > deps[task], values[task] = build_dependencies(task, keys, > shelldeps, > varflagsexcl, d) > newdeps = deps[task] > File "/home/cdreher/REPO/rpb-github/bitbake/lib/bb/data.py", line 327, in > build_dependencies( [Insert 57kB of key/values here] > logger.warning("Variable %s contains tabs, please > remove these (%s)" > % (key, d.getVar("FILE"))) > > parser.parse_python(value, > filename=varflags.get("filename"), > lineno=varflags.get("lineno")) > deps = deps | parser.references > File "/home/cdreher/REPO/rpb-github/bitbake/lib/bb/codeparser.py", line > 327, in > PythonParser.parse_python(node="\n\t[ -e ${DTS_FILES_PATH}/system.dts ] && rm > ${DTS_FILES_PATH}/system.dts\n bb.build.exec_func('devicetree_do_compile', > d)\n", lineno=1, filename='autogenerated'): > code = compile(check_indent(str(node)), filename, "exec", > > ast.PyCF_ONLY_AST) > > File "autogenerated", line 2 > [ -e ${DTS_FILES_PATH}/system.dts ] && rm ${DTS_FILES_PATH}/system.dts > ^ (the ^ is under the first $ sign) > SyntaxError: invalid syntax >
We have sent a RFC to mailing list, please have a look Thanks, Manju -- _______________________________________________ meta-xilinx mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-xilinx
