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
Create CMake variables for XRT_NPU and XRT_ALVEO in place of NPU and XRT_DKMS_ALVEO. Modify CMake files accordingly.
Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered
Fix CMake file for CPack to create component specific package for single component project. This will be used for NPU builds where ultimately all but the default npu package will be disabled.
How problem was solved, alternative solutions (if any) and why they were rejected
The top level build.sh script defines one of two CMake variables depending on whether
-npu
is specified or not.The variables control the default CMake install component., which for
-npu
will benpu
and otherwise legacyxrt
component. The install components created by CMake result in CPack creating packages with component names appended.Changes will have to be made to submodules built by XRT to honor any install component specified by XRT prior to including the submodule in CMake. Basically the installable pieces of a submodule can be added to any XRT component as desired. Supposedly this will be either the
npu
or defaultxrt
component. The XRT default component is defined insrc/CMakeLists.txt
in theXRT_COMPONENT
CMake variable which is eithernpu
orxrt
depending on build option.This PR renders #8616 obsolete.