SWDEV-318551: Adding License file for profiler

Making the new License file, Adding support in the CMakeLists.txt

Change-Id: I785035a780fbfc59951fc27d45f9c1869ffb4fb3
This commit is contained in:
Ammar ELWazir
2022-01-21 12:05:10 -06:00
committed by Ammar Elwazir
parent 6676d60516
commit c19cfbfffd
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -191,6 +191,9 @@ set ( CPACK_PACKAGE_CONTACT "ROCm Profiler Support <dl.ROCm-Profiler.support@amd
set ( CPACK_PACKAGE_DESCRIPTION_SUMMARY "ROCPROFILER library for AMD HSA runtime API extension support" ) set ( CPACK_PACKAGE_DESCRIPTION_SUMMARY "ROCPROFILER library for AMD HSA runtime API extension support" )
set ( CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE" ) set ( CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE" )
# Install license file
install(FILES ${CPACK_RESOURCE_FILE_LICENSE} DESTINATION share/doc/${CPACK_PACKAGE_NAME})
if ( DEFINED ENV{ROCM_LIBPATCH_VERSION} ) if ( DEFINED ENV{ROCM_LIBPATCH_VERSION} )
set ( CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION}.$ENV{ROCM_LIBPATCH_VERSION}" ) set ( CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION}.$ENV{ROCM_LIBPATCH_VERSION}" )
message ( "Using CPACK_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION}" ) message ( "Using CPACK_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION}" )
@@ -218,6 +221,8 @@ else()
endif() endif()
message ( "Using CPACK_RPM_PACKAGE_RELEASE ${CPACK_RPM_PACKAGE_RELEASE}" ) message ( "Using CPACK_RPM_PACKAGE_RELEASE ${CPACK_RPM_PACKAGE_RELEASE}" )
set( CPACK_RPM_PACKAGE_LICENSE "MIT" )
## 'dist' breaks manual builds on debian systems due to empty Provides ## 'dist' breaks manual builds on debian systems due to empty Provides
execute_process( COMMAND rpm --eval %{?dist} execute_process( COMMAND rpm --eval %{?dist}
RESULT_VARIABLE PROC_RESULT RESULT_VARIABLE PROC_RESULT
+1 -1
View File
@@ -1,4 +1,4 @@
Copyright (c) 2018 Advanced Micro Devices, Inc. All rights reserved. Copyright (c) 2018-2022 Advanced Micro Devices, Inc. All rights reserved.
[MITx11 License] [MITx11 License]
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy