CheryPick SWDEV-442738 - Static package generation for rocm-core

Change-Id: I8e55f4cc3e476a9b4f3d73c02bab51c70b936bcc

SWDEV-442738 - ROCM-CORE Static Package Pre/Post Script

Change-Id: Ie55ffc98dfc60d9cb01b7a6df7a5fe1a890bc771


[ROCm/rocm-core commit: be3728bd33]
This commit is contained in:
AravindanC authored and Nirmal Unnikrishnan committed 2024-09-04 13:52:49 -05:00
1 bovenliggende 862d9c7409
commit 06eefbd1e2
3 files changed
+86 -26

No files matched your search

@@ -124,6 +124,7 @@ static int getROCmBase(char *buf)
// If Environment Variable is not set
// use dl APIs to get target lib path
// and get rocm base install path using the lib Path.
#if BUILD_SHARED_LIBS
sprintf(libFileName, "lib%s.so", TARGET_LIBRARY_NAME);
void *handle=dlopen(libFileName,RTLD_NOW);
if (!handle){
@@ -157,6 +158,7 @@ static int getROCmBase(char *buf)
return PathLinuxRuntimeErrors;
}
*end = '\0';
#endif
/* Length of Path String up to Parent Directoy (ROCm Base Path)
* with trailing '/'.*/