list-workarounds: Don't prepend kernel_path to the driver directory

We are changing the cwd, so we just need the relative patch from the
root for the kernel git repo. This allows the script to work from
anywhere.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
Damien Lespiau
2013-05-23 12:11:26 +01:00
parent 1109c5acfd
commit 81ba005381
+1 -1
View File
@@ -91,7 +91,7 @@ if __name__ == '__main__':
% kernel_path)
sys.exit(1)
i915_dir = os.path.join(kernel_path, 'drivers', 'gpu', 'drm', 'i915')
i915_dir = os.path.join('drivers', 'gpu', 'drm', 'i915')
olddir = os.getcwd()
os.chdir(kernel_path)
work_arounds, err = execute(['git', 'grep', '-n',