Repository navigation
Enable pyxrt cross-compile for edge using sysroot Python headers. - #10048
Merged
Merged
Conversation
Signed-off-by: Srikanth Vuppala <120363307+svup-xilinx@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
svup-xilinx
marked this pull request as draft
September 9, 2026 15:08
Contributor
|
clang-tidy review says "All clean, LGTM! 👍" |
svup-xilinx
marked this pull request as ready for review
September 15, 2026 16:12
chvamshi-xilinx
approved these changes
Sep 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem solved by the commit
Edge/Yocto builds did not build the Python pyxrt module. CMake used the host Python, which does not match the Python headers in the target sysroot, so the module could not be built correctly for the board.
Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered
No bug ID. Found when trying to build pyxrt for edge/Yocto.
How problem was solved, alternative solutions (if any) and why they were rejected
Edge builds now include the Python bindings. For edge, CMake file finds Python and pybind11 headers in the sysroot and builds pyxrt.so against those. Native Linux/Windows still use the old path (find_package(Python3)).
find_package(Python3) was not used on edge because it picks host Python.
Risks (if any) associated the changes in the commit
Low
What has been tested and how, request additional testing if necessary
Yocto and Peta Linux edge builds were tested; pyxrt builds successfully in both.
Documentation impact (if any)
NA