panfrost: Allocate UBOs on the stack, not the heap
[mesa.git] / bin / install_megadrivers.py
index c9ab99a283302e47f8ae699891b5358f4a5c3f3f..470137e0c1dfc42d69e308c474a3c39db2f89464 100644 (file)
@@ -24,7 +24,6 @@
 from __future__ import print_function
 import argparse
 import os
-import shutil
 
 
 def main():
@@ -70,7 +69,14 @@ def main():
                 name, ext = os.path.splitext(name)
         finally:
             os.chdir(ret)
+
+    # Remove meson-created master .so and symlinks
     os.unlink(master)
+    name, ext = os.path.splitext(master)
+    while ext != '.so':
+        if os.path.lexists(name):
+            os.unlink(name)
+        name, ext = os.path.splitext(name)
 
 
 if __name__ == '__main__':