diff --git a/petalinux-apps/rogue.bb b/petalinux-apps/rogue.bb index 482176d..1d5fe65 100644 --- a/petalinux-apps/rogue.bb +++ b/petalinux-apps/rogue.bb @@ -1,5 +1,5 @@ # -# This file is the rogue recipe. +# This file is the rogue recipe and tested on Petalinux 2024.2 # ROGUE_VERSION = "6.4.3" @@ -51,17 +51,19 @@ RDEPENDS:${PN} += " \ 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