Skip to content

Commit

Permalink
Update petalinux.rst
Browse files Browse the repository at this point in the history
### Description
- Updating the documentation for Petalinux 2024.2
  • Loading branch information
ruck314 authored Dec 13, 2024
1 parent 65f90cd commit c257fc6
Showing 1 changed file with 23 additions and 16 deletions.
39 changes: 23 additions & 16 deletions docs/src/installing/petalinux.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,27 @@ You will want to replace the file project-spec/meta-user/recipes-apps/rogue/rogu

.. code::
ROGUE_VERSION = "6.4.0"
ROGUE_MD5SUM = "acbd2b178af84776efbd78cdf3f5db7d"
#
# This file is the rogue recipe and tested on Petalinux 2024.2
#
ROGUE_VERSION = "6.4.3"
ROGUE_MD5SUM = "4e7bac5a2098c9b33f6aca5d5ba5a96a"
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}"
PROVIDES = "rogue"
EXTRA_OECMAKE += "-DROGUE_INSTALL=system -DROGUE_VERSION=v${ROGUE_VERSION}"
inherit cmake python3native setuptools3
DEPENDS += " \
python3 \
python3-native \
Expand All @@ -51,7 +55,7 @@ You will want to replace the file project-spec/meta-user/recipes-apps/rogue/rogu
boost \
cmake \
"
RDEPENDS:${PN} += " \
python3-numpy \
python3-pyzmq \
Expand All @@ -63,27 +67,30 @@ You will want to replace the file project-spec/meta-user/recipes-apps/rogue/rogu
python3-json \
python3-logging \
"
FILES:${PN}-dev += "/usr/include/rogue/*"
FILES:${PN} += "/usr/lib/*"
do_configure:prepend() {
do_configure() {
setup_target_config
cmake_do_configure
cmake --build ${B}
bbplain $(cp -vH ${WORKDIR}/build/setup.py ${S}/.)
bbplain $(sed -i "s/..\/python/python/" ${S}/setup.py)
setuptools3_do_configure
}
do_install:prepend() {
do_install() {
setup_target_config
cmake_do_install
}
do_install:append() {
setuptools3_do_install
# Ensure the target directory exists
install -d ${D}${PYTHON_SITEPACKAGES_DIR}
# Install the rogue.so file into the Python site-packages directory
install -m 0755 ${S}/python/rogue.so ${D}${PYTHON_SITEPACKAGES_DIR}
}
Update the ROGUE_VERSION line for an updated version when appropriate. 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

0 comments on commit c257fc6

Please sign in to comment.