-
Notifications
You must be signed in to change notification settings - Fork 476
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create CMake variables for XRT_NPU and XRT_ALVEO in place of NPU and XRT_DKMS_ALVEO. Modify CMake files accordingly. 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. Signed-off-by: Soren Soe <[email protected]>
- Loading branch information
Showing
8 changed files
with
36 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,9 +19,12 @@ SET(CPACK_ARCHIVE_COMPONENT_INSTALL ON) | |
SET(CPACK_DEB_COMPONENT_INSTALL ON) | ||
SET(CPACK_RPM_COMPONENT_INSTALL ON) | ||
|
||
if (DEFINED NPU) | ||
SET(CPACK_PACKAGE_NAME "npu") | ||
endif() | ||
# For some reason CMake doesn't populate CPACK_COMPONENTS_ALL when the | ||
# project has only one component, this leads to cpack generating | ||
# pacage without component name appended. To work-around this, | ||
# populate the variable explictly. | ||
get_cmake_property(CPACK_COMPONENTS_ALL COMPONENTS) | ||
message("Install components in the project: ${CPACK_COMPONENTS_ALL}") | ||
|
||
# When the rpmbuild occurs for packaging, it uses a default version of | ||
# python to perform a python byte compilation. For the CentOS 7.x OS, this | ||
|
@@ -209,13 +212,4 @@ SET(CPACK_PACKAGE_CONTACT "[email protected]") | |
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Runtime stack for use with AMD platforms") | ||
SET(CPACK_RESOURCE_FILE_LICENSE "${XRT_SOURCE_DIR}/../LICENSE") | ||
|
||
add_custom_target(xrtpkg | ||
echo "COMMAND ${CMAKE_CPACK_COMMAND}" | ||
COMMAND ${CMAKE_CPACK_COMMAND} | ||
COMMAND -mv -f ${CPACK_PACKAGE_FILE_NAME}-xrt.deb ${CPACK_PACKAGE_FILE_NAME}.deb 2> /dev/null | ||
COMMAND -mv -f ${CPACK_PACKAGE_FILE_NAME}-xrt.rpm ${CPACK_PACKAGE_FILE_NAME}.rpm 2> /dev/null | ||
COMMAND -mv -f ${CPACK_PACKAGE_FILE_NAME}-xrt.tar.gz ${CPACK_PACKAGE_FILE_NAME}.tar.gz 2> /dev/null | ||
|
||
) | ||
|
||
INCLUDE(CPack) |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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