[Bugfix][VTA] PkgConfig cause crash in PYNQ board due to link library (#3257)
authorHua <allenhjiang@outlook.com>
Sat, 1 Jun 2019 02:42:15 +0000 (19:42 -0700)
committerThierry Moreau <moreau@uw.edu>
Sat, 1 Jun 2019 02:42:15 +0000 (21:42 -0500)
commitf6acf2e5f51f9ac48f8d13e095805b7fe3f74bcf
tree2e76434a96f93a8baf6800e2aca2e8668ddad205
parent1fdf1113887a9f81f4d51e9319eb14d77e832cfc
[Bugfix][VTA] PkgConfig cause crash in PYNQ board due to link library (#3257)

* [Bugfix][VTA] PkgConfig cause crash in PYNQ board due to link library
not exist.

Symptom:
When run vta_get_started.py with pynq board, host crash and
complain "cannot find -lsds_lib" and "cannot find -l:libdma.so"

Reproduce:
At pynq board, delete the ./build/vta_config.json, then run rpc
server.
In host machine run vta_get_started.py, issue would reproduce.

Analysis:
This issue caused by 'PkgConfig' function  still using pynq2.1
library which not exist in pynq2.4 anymore, when a "reconfig_runtime"
logic of rpc_server.py get triggered , the compile would failed due to
link library not exist.

Solution:
change the link library to libcma.so.

* [Document Change][VTA] Change pynq version from 2.3 into 2.4.

Issue:
pynq 2.3 image not available anymore from pynq download page and pynq
2.4 is the current latest image which available in the said website, after
verification, currently VTA work good with pynq 2.4 image, hence update
related document from pynq 2.3 to 2.4.
cmake/modules/VTA.cmake
docs/vta/install.md
vta/python/vta/pkg_config.py