meson: fix megadriver symlinking
authorDylan Baker <dylan@pnwbakers.com>
Wed, 4 Apr 2018 17:23:02 +0000 (10:23 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Thu, 5 Apr 2018 17:48:38 +0000 (10:48 -0700)
Which should be relative instead of absolute.

Fixes: f7f1b30f81e842db6057591470ce3cb6d4fb2795
       ("meson: extend install_megadrivers script to handle symmlinking")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105567
Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
Reviewed-and-Tested-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
bin/install_megadrivers.py

index 86bfa3591888945a193686c0b22a1a0ca12418b8..7931a544bd27678db2bccaca3f8f696d728e48e7 100755 (executable)
@@ -58,7 +58,7 @@ def main():
             while ext != '.so':
                 if os.path.exists(name):
                     os.unlink(name)
-                os.symlink(driver, name)
+                os.symlink(each, name)
                 name, ext = os.path.splitext(name)
         finally:
             os.chdir(ret)