Skip to content

Commit

Permalink
bug fix for rogue in newer petalinux
Browse files Browse the repository at this point in the history
  • Loading branch information
ruck314 committed Dec 13, 2024
1 parent 7fbb56d commit 2d21117
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions petalinux-apps/rogue.bb
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2d21117

Please sign in to comment.