Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update petalinux.rst #930

Merged
merged 1 commit into from
Apr 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 40 additions & 13 deletions docs/src/installing/petalinux.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,54 @@ You will want to replace the file project-spec/meta-user/recipes-apps/rogue/rogu

.. code::

ROGUE_VERSION = "5.14.0"
ROGUE_MD5SUM = "ba8146e03f60e463a2aa3d978c1dc46e"
ROGUE_VERSION = "5.18.2"
ROGUE_MD5SUM = "38bf1bc4108eb08fc56ee9017be40c50"

SUMMARY = "Rogue Application"
SECTION = "PETALINUX/apps"
SUMMARY = "Recipe to build Rogue"
HOMEPAGE ="https://github.com/slaclab/rogue"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "https://github.com/slaclab/rogue/archive/v${ROGUE_VERSION}.tar.gz"
SRC_URI[md5sum] = "${ROGUE_MD5SUM}"
S = "${WORKDIR}/rogue-${ROGUE_VERSION}"

DEPENDS += "python3 python3-numpy python3-native python3-numpy-native python3-pyzmq"
DEPENDS += "python3-parse python3-pyyaml python3-click python3-sqlalchemy python3-pyserial"
DEPENDS += "cmake boost zeromq bzip2 python3-jupyter"

S = "${WORKDIR}/rogue-${ROGUE_VERSION}"
PROVIDES = "rogue"
EXTRA_OECMAKE += "-DROGUE_INSTALL=system -DROGUE_VERSION=v${ROGUE_VERSION}"

inherit cmake python3native distutils3 xilinx-pynq setuptools3

FILES_${PN}-dev += "/usr/include/rogue/*"
FILES_${PN} += "/usr/lib/*"
inherit cmake python3native distutils3

DEPENDS += " \
python3 \
python3-native \
python3-numpy \
python3-numpy-native \
python3-pyzmq \
python3-parse \
python3-pyyaml \
python3-click \
python3-sqlalchemy \
python3-pyserial \
bzip2 \
zeromq \
boost \
cmake \
"

RDEPENDS:${PN} += " \
python3-numpy \
python3-pyzmq \
python3-parse \
python3-pyyaml \
python3-click \
python3-sqlalchemy \
python3-pyserial \
python3-json \
python3-logging \
"

FILES:${PN}-dev += "/usr/include/rogue/*"
FILES:${PN} += "/usr/lib/*"

do_configure() {
cmake_do_configure
Expand All @@ -52,6 +77,8 @@ You will want to replace the file project-spec/meta-user/recipes-apps/rogue/rogu
distutils3_do_install
}



Update the ROGUE_VERSION line for an updated version when appropriate (min version is 5.6.1). You will need to first download the tar.gz file and compute the MD5SUM using the following commands if you update the ROGUE_VERSION line:

.. code::
Expand Down