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

Change-Id: I8e55f4cc3e476a9b4f3d73c02bab51c70b936bcc

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

Change-Id: Ie55ffc98dfc60d9cb01b7a6df7a5fe1a890bc771
This commit is contained in:
AravindanC
2024-03-28 08:14:22 -07:00
committed by Nirmal Unnikrishnan
orang tua a5a437e48a
melakukan be3728bd33
3 mengubah file dengan 86 tambahan dan 26 penghapusan
+2
Melihat File
@@ -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 '/'.*/