diff options
author | Jason M. Bills <jason.m.bills@linux.intel.com> | 2020-12-08 00:38:17 +0300 |
---|---|---|
committer | Jason M. Bills <jason.m.bills@linux.intel.com> | 2020-12-08 00:38:17 +0300 |
commit | 8d6ae7f2a817751fad151168fa10ce28ee0869d8 (patch) | |
tree | 281032f7ec07c41589aa094bd165cc2a98f2d3a7 /meta-xilinx/meta-xilinx-pynq/recipes-support/pynq-ultra96-bnn/pynq-ultra96-bnn_1.0.bb | |
parent | c16fb8893b19075db4bcf3b5bf33c1db8c3ca2bd (diff) | |
parent | 5da3c2284560a7e08ffafd03c5b5ba44a3242228 (diff) | |
download | openbmc-8d6ae7f2a817751fad151168fa10ce28ee0869d8.tar.xz |
Merge tag '0.26' of ssh://git-amr-1.devtools.intel.com:29418/openbmc-openbmc into update
Diffstat (limited to 'meta-xilinx/meta-xilinx-pynq/recipes-support/pynq-ultra96-bnn/pynq-ultra96-bnn_1.0.bb')
-rw-r--r-- | meta-xilinx/meta-xilinx-pynq/recipes-support/pynq-ultra96-bnn/pynq-ultra96-bnn_1.0.bb | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/meta-xilinx/meta-xilinx-pynq/recipes-support/pynq-ultra96-bnn/pynq-ultra96-bnn_1.0.bb b/meta-xilinx/meta-xilinx-pynq/recipes-support/pynq-ultra96-bnn/pynq-ultra96-bnn_1.0.bb new file mode 100644 index 000000000..6a69ea210 --- /dev/null +++ b/meta-xilinx/meta-xilinx-pynq/recipes-support/pynq-ultra96-bnn/pynq-ultra96-bnn_1.0.bb @@ -0,0 +1,57 @@ +DESCRIPTION = "Recipe to install BNN notebooks and PYNQ dependencies for ultra96" +SUMMARY = "BNN example jupyter notebooks with PYNQ" + +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://LICENSE;md5=8f625d3c898c18035639b6d6943b6a9c" + +SRC_URI = "git://github.com/Xilinx/BNN-PYNQ.git;protocol=https \ + file://0001-BNN-Notebooks-changed-default-picture-location.patch \ + file://0001-Update-default-notebooks-path-from-home-xilinx-to-us.patch \ +" + +SRCREV = "32eed91994228d1042a16c692047dfe81e47d498" + +inherit xilinx-pynq + +RDEPENDS_${PN}-notebooks += "\ + python3-pynq \ + python3-pillow \ + libstdc++ \ + libcma \ + bash \ +" + +COMPATIBLE_MACHINE = "^$" +COMPATIBLE_MACHINE_ultra96-zynqmp = "ultra96-zynqmp" + +S = "${WORKDIR}/git" + +do_configure[noexec]="1" +do_compile[noexec]="1" + +def get_board(d): + x = str(d.getVar("BOARD_NAME", "True")) + return x.lower() + +do_install () { + JUPYTER_NOTEBOOKS=${D}${PYNQ_NOTEBOOK_DIR} + install -d ${JUPYTER_NOTEBOOKS}/bnn_examples + + install -d ${JUPYTER_NOTEBOOKS}/bnn_examples/bitstreams + install -d ${JUPYTER_NOTEBOOKS}/bnn_examples/bitstreams/${@get_board(d)} + cp -r ${S}/bnn/bitstreams/${@get_board(d)}/* ${JUPYTER_NOTEBOOKS}/bnn_examples/bitstreams/${@get_board(d)}/ + + install -d ${JUPYTER_NOTEBOOKS}/bnn_examples/libraries + install -d ${JUPYTER_NOTEBOOKS}/bnn_examples/libraries/${@get_board(d)} + cp -r ${S}/bnn/libraries/${@get_board(d)}/* ${JUPYTER_NOTEBOOKS}/bnn_examples/libraries/${@get_board(d)}/ + + cp -r ${S}/bnn/params ${JUPYTER_NOTEBOOKS}/bnn_examples/ + cp -r ${S}/bnn/src ${JUPYTER_NOTEBOOKS}/bnn_examples/ + cp -r ${S}/bnn/__init__.py ${JUPYTER_NOTEBOOKS}/bnn_examples/ + cp -r ${S}/bnn/bnn.py ${JUPYTER_NOTEBOOKS}/bnn_examples/ + cp -r ${S}/MANIFEST.in ${JUPYTER_NOTEBOOKS}/bnn_examples/ + cp -r ${S}/setup.py ${JUPYTER_NOTEBOOKS}/bnn_examples/ + + cp -r ${S}/notebooks/* ${JUPYTER_NOTEBOOKS}/bnn_examples/ +} + |