summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-05-23 12:11:26 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2013-05-23 12:12:54 +0100
commit81ba005381f06283e072a5a5cffd429c83651c53 (patch)
tree53188cb30ee50c34d9dcb20599c26f9d523552cb
parent1109c5acfd58d6f5d7c4b0f1d9961fdc3bfc7732 (diff)
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>
-rwxr-xr-xscripts/list-workarounds2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/list-workarounds b/scripts/list-workarounds
index 687e0e17..3514aed1 100755
--- a/scripts/list-workarounds
+++ b/scripts/list-workarounds
@@ -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',