Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame^] | 1 | PYNQ_NOTEBOOK_DIR ?= "${datadir}/notebooks" |
| 2 | |
| 3 | PYNQ_ARCH_arm = "armv7l" |
| 4 | PYNQ_ARCH_aarch64 = "aarch64" |
| 5 | |
| 6 | PYNQ_BUILD_ARCH="${PYNQ_ARCH_${TARGET_ARCH}}" |
| 7 | PYNQ_BUILD_ROOT="${STAGING_DIR_TARGET}" |
| 8 | BBCLASSEXTEND = "native nativesdk" |
| 9 | |
| 10 | PACKAGES += " ${PN}-notebooks" |
| 11 | FILES_${PN}-notebooks += "${PYNQ_NOTEBOOK_DIR}" |
| 12 | |
| 13 | INSANE_SKIP_${PN} += "staticdev dev-so" |
| 14 | inherit python3-dir |
| 15 | |
| 16 | # Used for setup.py on PYNQ |
| 17 | BOARD_NAME_ultra96-zynqmp = "Ultra96" |
| 18 | BOARD_NAME_zcu104-zynqmp = "ZCU104" |
| 19 | |
| 20 | do_compile_prepend() { |
| 21 | export BOARD=${BOARD_NAME} |
| 22 | export PYNQ_BUILD_ARCH=${PYNQ_BUILD_ARCH} |
| 23 | export PYNQ_JUPYTER_NOTEBOOKS=${D}${PYNQ_NOTEBOOK_DIR} |
| 24 | } |
| 25 | |
| 26 | do_install_prepend() { |
| 27 | export BOARD=${BOARD_NAME} |
| 28 | export PYNQ_BUILD_ARCH=${PYNQ_BUILD_ARCH} |
| 29 | export PYNQ_JUPYTER_NOTEBOOKS=${D}${PYNQ_NOTEBOOK_DIR} |
| 30 | install -d ${PYNQ_JUPYTER_NOTEBOOKS} |
| 31 | } |
| 32 | |
| 33 | do_configure_prepend() { |
| 34 | export BOARD=${BOARD_NAME} |
| 35 | export PYNQ_BUILD_ARCH=${PYNQ_BUILD_ARCH} |
| 36 | export PYNQ_JUPYTER_NOTEBOOKS=${D}${PYNQ_NOTEBOOK_DIR} |
| 37 | install -d ${PYNQ_JUPYTER_NOTEBOOKS} |
| 38 | } |