etc: Enable a tty for a serial port by default.
[dragora.git] / patches / mesa / megadriver-symlinks.patch
blobc19c42719422cd301044ad9146bf3349542ec478
1 This converts megadriver installation to use symlinks so that we do
2 not have to deal with skipping the strip stage for some files, as
3 a result simplifying our template greatly.
5 --- a/bin/install_megadrivers.py
6 +++ b/bin/install_megadrivers.py
7 @@ -56,7 +56,7 @@ def main():
8 if os.path.lexists(abs_driver):
9 os.unlink(abs_driver)
10 print('installing {} to {}'.format(args.megadriver, abs_driver))
11 - os.link(master, abs_driver)
12 + os.symlink(os.path.basename(master), abs_driver)
14 try:
15 ret = os.getcwd()
16 @@ -71,8 +71,7 @@ def main():
17 finally:
18 os.chdir(ret)
20 - # Remove meson-created master .so and symlinks
21 - os.unlink(master)
22 + # Remove meson-created symlinks
23 name, ext = os.path.splitext(master)
24 while ext != '.so':
25 if os.path.lexists(name):