TI中文支持网
TI专业的中文技术问题搜集分享网站

TOOLCHAIN_PATH wrong for AM57xx YOCTO environment

I follow this article http://arago-project.org/wiki/index.php/Setting_Up_Build_Environment#Point_to_the_toolchain_to_use 

cctv@ubuntu:~/tisdk_am57xx/build$ echo $PATH
/home/cctv/tisdk_am57xx/sources/oe-core/scripts:/home/cctv/tisdk_am57xx/sources/meta-ros/scripts:/home/cctv/tisdk_am57xx/sources/meta-browser/scripts:/home/cctv/tisdk_am57xx/sources/bitbake/bin:/home/cctv/tisdk/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/bin:/home/cctv/tisdk/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf:/home/cctv/bin:/home/cctv/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
cctv@ubuntu:~/tisdk_am57xx/build$ export TOOLCHAIN_SYSPATH=/home/cctv/tisdk/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf
cctv@ubuntu:~/tisdk_am57xx/build$cctv@ubuntu:~/tisdk_am57xx/build$cctv@ubuntu:~/tisdk_am57xx/build$cctv@ubuntu:~/tisdk_am57xx/build$cctv@ubuntu:~/tisdk_am57xx/build$ TOOLCHAIN_SYSPATH=/home/cctv/tisdk/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf MACHINE=am57xx-evm bitbake core-image-minimal
ERROR: No valid toolchain in PATH
ERROR: Unable to parse /home/cctv/tisdk_am57xx/sources/bitbake/lib/bb/data_smart.py
Traceback (most recent call last):
  File "/home/cctv/tisdk_am57xx/sources/bitbake/lib/bb/data_smart.py", line 400, in DataSmart.expandWithRefs(s="${@bool(d.getVar('TOOLCHAIN_SYSPATH', d, 1)) and (os.path.exists(d.getVar('TOOLCHAIN_SYSPATH', d, 1)) and os.path.dirname(d.getVar('TOOLCHAIN_SYSPATH', d, 1)) or bb.fatal('No valid toolchain in PATH')) or ''}", varname='TOOLCHAIN_PATH[:=]'):
                 except Exception as exc:
    >                raise ExpansionError(varname, s, exc) from exc
    bb.data_smart.ExpansionError: Failure expanding variable TOOLCHAIN_PATH[:=], expression was ${@bool(d.getVar('TOOLCHAIN_SYSPATH', d, 1)) and (os.path.exists(d.getVar('TOOLCHAIN_SYSPATH', d, 1)) and os.path.dirname(d.getVar('TOOLCHAIN_SYSPATH', d, 1)) or bb.fatal('No valid toolchain in PATH')) or ''} which triggered exception BBHandledException:

cctv@ubuntu:~/tisdk_am57xx/build$ cd $TOOLCHAIN_SYSPATH
cctv@ubuntu:~/tisdk/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf$

What wrong for TOOLCHAIN_PATH ?

Thank you!

Shine:

请问是否有参考过下面的帖子?
e2e.ti.com/…/205230

chuntian cai:

回复 Shine:

我重新构造了一遍,现在可以了,谢谢

赞(0)
未经允许不得转载:TI中文支持网 » TOOLCHAIN_PATH wrong for AM57xx YOCTO environment
分享到: 更多 (0)