-
Notifications
You must be signed in to change notification settings - Fork 25
Downstream patches from Fedora #71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
We set fixed path for firmware installation to avoid copying the firmware outside the /lib/firmware. Using prefix might be very misleading, because user might copy it into
I was able to reproduce the issue only with |
To generate RPMs you can add:
to linux-npu-driver/cmake/packaging/setup.cmake Lines 41 to 48 in bd414f6
Create new file in cmake/packaging/generators/rpm.cmake
And build
|
@xanderlent, I've tried to build rpm packages based on your spec and without "Make firmware respect CMAKE_INSTALL_PREFIX" patch and it seems to work fine for me:
The absolute path for firmware is intentional.
For that cases, I think you can use DESTDIR variable. |
Thank you for the review! I appreciate the information about CMake as I am not particularly familiar with it. I plan to create a revised patchset addressing the comments on this one. I do not have a timeframe yet as my packaging work is a volunteer effort; Please feel free to close this PR as it may be some time before I have revised patches. |
Sure, no problem! I am glad for any help! In the meantime I created a similar change in #76, feel free to pick up it for testing |
Signed-off-by: Alexander F. Lent <[email protected]>
Thanks, I'll look into dropping this patch in the next cycle. It might be a hold-over from when I was manually building the codebase. |
Sure enough, I was able to drop the change to the CMake install directories, since the RPM Macros use DESTDIR. Thanks for the suggestion. |
I wanted to let you folks know about the downstream changes I was making as we work on packaging this driver for Fedora.
When finished, I'd really appreciate any feedback you folks could give, since we prefer to reduce downstream patches when possible. Right now, the driver is incomplete; I'm trying to build the compiler as a separate component to reduce the number of inputs.
Summary of patches:
This adds a partially-finished option that turns off the bundled/vendored libraries as much as possible.
I'm open to alternative approaches to using system dependencies; one other option would be to have several ENABLE_SYSTEM_WHATEVER options like OpenVINO does.
As of v1.16.0, some change to the build process of the validation sub-tree doesn't look for ze_api.h in the system header locations, so the specfile patches the extension headers like so to reference the system headers:
sed -i "s/#include \"ze_api.h\"/#include <level_zero\/ze_api.h>/" third_party/level-zero-npu-extensions/ze_graph_ext.h
Future Work: