diff --git a/docs/src/installing/petalinux.rst b/docs/src/installing/petalinux.rst index 0a406ac7e..3c5aae2db 100644 --- a/docs/src/installing/petalinux.rst +++ b/docs/src/installing/petalinux.rst @@ -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 \ @@ -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 \ @@ -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::