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]
Αυτή η υποβολή περιλαμβάνεται σε:
AravindanC
2024-03-28 08:14:22 -07:00
υποβλήθηκε από Nirmal Unnikrishnan
γονέας 862d9c7409
υποβολή 06eefbd1e2
3 αρχεία άλλαξαν με 86 προσθήκες και 26 διαγραφές
@@ -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 '/'.*/