Hi Raphael,

> -----Original Message-----
> From: Raphael Cotty [mailto:[email protected]]
> Sent: Monday, January 09, 2017 2:35 PM
> To: Manjukumar Harthikote Matha
> Cc: [email protected]
> Subject: Re: [meta-xilinx] [meta-xilinx-tools]
>
> Hi,
>
> I've attached the recipe for python3-pyyaml and my modified xsctyaml.bbclass
>

I sent a patch as RFC, please review it for python3-pyyaml.

>
> Now after having installed Xilinx SDK 2016.4 I still get the same error for 
> the fsbl
> recipe:
>

After using the pyyaml recipe (3.0 version) along with the change you did in 
meta-xilinx-tools, I was able to build fsbl.
Please confirm if it is working for you as well

Thanks
Manju

> | DEBUG: Executing python function sysroot_cleansstate
> | DEBUG: Python function sysroot_cleansstate finished
> | DEBUG: Executing shell function do_configure MISC_ARG is -yamlconf
> | /home/raphael/src/yocto/morty/poky/build/tmp-glibc/work/cortexa9hf-neo
> | n-cascade-linux-gnueabi/fsbl/0.2+xilinx+gitAUTOINC+a931a8d447-r0/fsbl.
> | yaml
> | APP_ARG is  -app "Zynq FSBL"
> | cmd is: xsct
> | /home/raphael/src/yocto/morty/poky/build/tmp-glibc/work/cortexa9hf-neo
> | n-cascade-linux-gnueabi/fsbl/0.2+xilinx+gitAUTOINC+a931a8d447-r0/app.t
> | cl -ws
> | /home/raphael/src/yocto/morty/poky/build/tmp-glibc/work/cortexa9hf-neo
> | n-cascade-linux-gnueabi/fsbl/0.2+xilinx+gitAUTOINC+a931a8d447-r0
> | -pname fsbl -rp
> | /home/raphael/src/yocto/morty/poky/build/tmp-glibc/work/cortexa9hf-neo
> | n-cascade-linux-gnueabi/fsbl/0.2+xilinx+gitAUTOINC+a931a8d447-r0/git
> | -processor ps7_cortexa9_0 -hdf
> | /home/raphael/src/yocto/morty/poky/build/tmp-glibc/deploy/images/casca
> | de-zynq7/Xilinx-cascade-zynq7.hdf -arch 32  -app "Zynq FSBL" -yamlconf
> | /home/raphael/src/yocto/morty/poky/build/tmp-glibc/work/cortexa9hf-neo
> | n-cascade-linux-gnueabi/fsbl/0.2+xilinx+gitAUTOINC+a931a8d447-r0/fsbl.
> | yaml
> | invalid command name "setws"
> |     while executing
> | "setws $params(ws)"
> |     invoked from within
> | "if { $params(ws) ne "" } {
> |     #Local Work Space available
> |     setws $params(ws)
> |     if { [catch {importprojects $params(ws)} result] } {
> |         puts "XSCTHELPER IN..."
> |     (file
> | "/home/raphael/src/yocto/morty/poky/build/tmp-glibc/work/cortexa9hf-ne
> | on-cascade-linux-gnueabi/fsbl/0.2+xilinx+gitAUTOINC+a931a8d447-r0/app.
> | tcl" line 111)
>
>
>
> Thanks
>
> Raphael
>
>
> 2017-01-09 18:03 GMT+01:00 Manjukumar Harthikote Matha
> <[email protected] <mailto:manjukumar.harthikote-
> [email protected]> >:
>
>
>       Hi Raphael,
>
>       > -----Original Message-----
>       > From: Raphael Cotty [mailto:[email protected]
> <mailto:[email protected]> ]
>       > Sent: Monday, January 09, 2017 6:17 AM
>       > To: Manjukumar Harthikote Matha
>       > Cc: [email protected] <mailto:[email protected]>
>       > Subject: Re: [meta-xilinx] [meta-xilinx-tools]
>       >
>       > Hi Manju,
>       >
>       >
>       > I added python3-pyyaml_3.12.bb <http://python3-pyyaml_3.12.bb>
> <http://python3-pyyaml_3.12.bb>  copied from
>       > python-pyyaml_3.12.bb <http://python-pyyaml_3.12.bb>  <http://python-
> pyyaml_3.12.bb>  with this change:
>       > 6c6
>       > < DEPENDS = "libyaml python-cython-native"
>       > ---
>       > > DEPENDS = "libyaml python3-cython-native"
>       > 17c17
>       > < inherit distutils
>       > ---
>       > > inherit setuptools3
>       >
>       >
>       > Then I changed xsctyaml.bbclass:
>       > -do_create_yaml[depends] = "python-pyyaml-
> native:do_populate_sysroot"
>       > +do_create_yaml[depends] = "python3-pyyaml-
> native:do_populate_sysroot"
>       >
>       This fails for me :( saying
>       ERROR: Nothing PROVIDES 'python3-pyyaml-native'. Close matches:
>
>       >
>       > Now it fails when running the app.tcl script with xsct with this 
> error: invalid
>       > command name "setws"
>       >
>       > I suspect my version xsct (v2015.4) is too old for the 
> met-xilinx-tools
> repository
>       > (2016.4)
>       >
>       Yes we need to use 2016.4 tools with 2016.4 release. Backward
> compatibility of tools is not guaranteed to work.
>
>       Thanks
>       Manju
>
>       > So I am updating vivado tools...
>       >
>       >
>       > Thanks
>       >
>       > Raphael
>       >
>       >
>       >
>       > 2017-01-09 0:51 GMT+01:00 Manjukumar Harthikote Matha
>       > <[email protected]
> <mailto:[email protected]>
> <mailto:manjukumar.harthikote- <mailto:manjukumar.harthikote->
>       > [email protected] <mailto:[email protected]> > >:
>       >
>       >
>       >       Hi Raphael,
>       >
>       >       > -----Original Message-----
>       >       > From: [email protected] 
> <mailto:meta-xilinx-
> [email protected]>  <mailto:meta-xilinx- <mailto:meta-xilinx->
>       > [email protected] <mailto:[email protected]> >
> [mailto:meta-xilinx- <mailto:meta-xilinx->  <mailto:meta-xilinx- 
> <mailto:meta-xilinx-
> > >
>       >       > [email protected] <mailto:[email protected]>
> <mailto:[email protected] <mailto:[email protected]> > ] On
>       > Behalf Of Raphael Cotty
>       >       > Sent: Sunday, January 08, 2017 7:21 AM
>       >       > To: [email protected] <mailto:meta-
> [email protected]>  <mailto:[email protected] <mailto:meta-
> [email protected]> >
>       >       > Subject: Re: [meta-xilinx] [meta-xilinx-tools]
>       >       >
>       >       > After some investigation I found that from yocto 2.2 (morty) 
> the
> minimum
>       > version
>       >       > for python is 3.4.0.
>       >       >
>       >       > Package python_pyyaml is compiled with python2.7.
>       >       >
>       >       >
>       >       > I am trying to update python_pyyaml to be build with python3
> without
>       > success, for
>       >       > the moment.
>       >       >
>       >
>       >       I am working on the same issue, I have update the python-pyyaml
> recipe to
>       > be built with python 3.5 (Morty version of python) but the import 
> still fails.
>       >
>       >       I changed only couple of lines
>       >       DEPENDS = "libyaml python3-cython-native" and inherit 
> distutils3 in
> meta-
>       > python/recipes-devtools/python/python-pyyaml_3.12.bb <http://python-
> pyyaml_3.12.bb>  <http://python-
>       > pyyaml_3.12.bb <http://pyyaml_3.12.bb> >  recipe
>       >
>       >       Thanks
>       >       Manju
>       >       > 2016-12-17 14:05 GMT+01:00 Raphael Cotty
> <[email protected] <mailto:[email protected]>
>       > <mailto:[email protected] <mailto:[email protected]> >
>       >       > <mailto:[email protected]
> <mailto:[email protected]>  <mailto:[email protected]
> <mailto:[email protected]> > >
>
>       > >:
>       >
>       >       >
>       >       >
>       >       >       I am trying to build to build the fsbl from 
> meta-xilinx-tools but I
> get this
>       >       > error:
>       >       >
>       >       >       ERROR: fsbl-0.2+xilinx+gitAUTOINC+a931a8d447-r0
> do_create_yaml:
>       > Error
>       >       > executing a python function in exec_python_func() 
> autogenerated:
>       >       >
>       >       >       The stack trace of python calls that resulted in this
> exception/failure
>       > was:
>       >       >       File: 'exec_python_func() autogenerated', lineno: 2, 
> function:
>       > <module>
>       >       >            0001:
>       >       >        *** 0002:do_create_yaml(d)
>       >       >            0003:
>       >       >       File: '/home/raphael/src/yocto/morty/poky/meta-xilinx-
>       >       > tools/classes/xsctyaml.bbclass', lineno: 24, function: 
> do_create_yaml
>       >       >            0020:
>       >       >            0021:python do_create_yaml() {
>       >       >            0022:    import sys, os
>       >       >            0023:
>       >       > os.sys.path.append(os.path.join(d.getVar('STAGING_DIR_NATIVE',
>       >       > True),d.getVar('PYTHON_SITEPACKAGES_DIR', True)[1::]))
>       >       >        *** 0024:    import yaml
>       >       >            0025:    yaml_dict = {}
>       >       >            0026:
>       >       >            0027:    appconfig = (d.getVar("YAML_APP_CONFIG", 
> True) or
>       > "").split()
>       >       >            0028:    if appconfig:
>       >       >       File: '/home/raphael/src/yocto/morty/poky/build/tmp-
>       >       > glibc/sysroots/x86_64-linux/usr/lib/python2.7/site-
>       > packages/yaml/__init__.py',
>       >       > lineno: 2, function: <module>
>       >       >            0001:
>       >       >        *** 0002:from error import *
>       >       >            0003:
>       >       >            0004:from tokens import *
>       >       >            0005:from events import *
>       >       >            0006:from nodes import *
>       >       >       Exception: ImportError: No module named 'error'
>       >       >
>       >       >
>       >       >       My build configuration:
>       >       >       BB_VERSION        = "1.32.0"
>       >       >       BUILD_SYS         = "x86_64-linux"
>       >       >       NATIVELSBSTRING   = "Ubuntu-16.04"
>       >       >       TARGET_SYS        = "arm-cascade-linux-gnueabi"
>       >       >       MACHINE           = "cascade-zynq7"
>       >       >       DISTRO            = "cascade"
>       >       >       DISTRO_VERSION    = "3.2.0"
>       >       >       TUNE_FEATURES     = "arm armv7a vfp  neon        
> callconvention-
> hard
>       >       > cortexa9"
>       >       >       TARGET_FPU        = "hard"
>       >       >       meta
>       >       >       meta-poky
>       >       >       meta-yocto-bsp    =
>       > "morty:73454473d7c286c41ee697f74052fed03c79f9f5"
>       >       >       meta-xilinx       =
>       > "master:abad77439a8f0aab1157d046720df8c541d1a885"
>       >       >       meta-xilinx-tools =
>       > "master:5ef795d3e4cf2f57cb63cc2bbab41dd753a8463d"
>       >       >       meta-qt5          =
>       > "morty:9aa870eecf6dc7a87678393bd55b97e21033ab48"
>       >       >       meta              =
> "morty:c8d96b10ee3bc2eae0fd269d2564286fd0bc82ed"
>       >       >       meta-oe
>       >       >       meta-python       =
>       > "morty:659d9d3f52bad33d7aa1c63e25681d193416d76e"
>       >       >
>       >       >
>       >       >       Thanks
>       >       >
>       >       >
>       >       >       Raphael
>       >       >
>       >       >
>       >
>       >
>       >
>       >
>       >       This email and any attachments are intended for the sole use of 
> the
> named
>       > recipient(s) and contain(s) confidential information that may be
> proprietary,
>       > privileged or copyrighted under applicable law. If you are not the 
> intended
> recipient,
>       > do not read, copy, or forward this email message or any attachments.
> Delete this
>       > email message and any attachments immediately.
>       >
>       >
>       >
>
>
>
>       This email and any attachments are intended for the sole use of the 
> named
> recipient(s) and contain(s) confidential information that may be proprietary,
> privileged or copyrighted under applicable law. If you are not the intended 
> recipient,
> do not read, copy, or forward this email message or any attachments. Delete 
> this
> email message and any attachments immediately.
>
>
>



This email and any attachments are intended for the sole use of the named 
recipient(s) and contain(s) confidential information that may be proprietary, 
privileged or copyrighted under applicable law. If you are not the intended 
recipient, do not read, copy, or forward this email message or any attachments. 
Delete this email message and any attachments immediately.

-- 
_______________________________________________
meta-xilinx mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-xilinx

Reply via email to