Skip to content

Commit

Permalink
[SWDEV-502001] Added amd_hsmp.h locally
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Williams <[email protected]>
Change-Id: I28e48913743f86fb5fc9082307ec326830d55960
  • Loading branch information
amd-juwillia authored and rocm-devops committed Jan 10, 2025
1 parent cd172c9 commit da5dcf6
Show file tree
Hide file tree
Showing 2 changed files with 419 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,8 @@ if(ENABLE_ESMI_LIB)
execute_process(COMMAND git clone --depth=1 -b esmi_pkg_ver-3.0.3 https://github.com/amd/esmi_ib_library.git ${PROJECT_SOURCE_DIR}/esmi_ib_library)
endif()
if(NOT EXISTS ${PROJECT_SOURCE_DIR}/esmi_ib_library/include/asm/amd_hsmp.h)
file(DOWNLOAD
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/plain/arch/x86/include/uapi/asm/amd_hsmp.h
${PROJECT_SOURCE_DIR}/esmi_ib_library/include/asm/amd_hsmp.h)
file(COPY "${PROJECT_SOURCE_DIR}/include/amd_smi/impl/amd_hsmp.h"
DESTINATION "${PROJECT_SOURCE_DIR}/esmi_ib_library/include/asm")
endif()
add_definitions("-DENABLE_ESMI_LIB=1")
set(ESMI_INC_DIR "${PROJECT_SOURCE_DIR}/esmi_ib_library/include")
Expand Down
Loading

0 comments on commit da5dcf6

Please sign in to comment.