blob: 645d1da21286e2b7b58c45825285bc74e517cd20 [file] [log] [blame]
Andrew Geissler84ad7c52020-06-27 00:00:16 -05001PYNQ_NOTEBOOK_DIR ?= "${datadir}/notebooks"
2
3PYNQ_ARCH_arm = "armv7l"
4PYNQ_ARCH_aarch64 = "aarch64"
5
6PYNQ_BUILD_ARCH="${PYNQ_ARCH_${TARGET_ARCH}}"
7PYNQ_BUILD_ROOT="${STAGING_DIR_TARGET}"
8BBCLASSEXTEND = "native nativesdk"
9
10PACKAGES += " ${PN}-notebooks"
11FILES_${PN}-notebooks += "${PYNQ_NOTEBOOK_DIR}"
12
13INSANE_SKIP_${PN} += "staticdev dev-so"
14inherit python3-dir
15
16# Used for setup.py on PYNQ
17BOARD_NAME_ultra96-zynqmp = "Ultra96"
18BOARD_NAME_zcu104-zynqmp = "ZCU104"
19
20do_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
26do_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
33do_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}