kernel_headers: Explicitly run headers_install under 'sh'
To avoid build failures in the newer Android build systems,
run the headers_install script explicitly under 'sh'.
Change-Id: If30d2bda653c6be443345a2594e9993d9780db21
Signed-off-by: Soumil Shah <soumshah@codeaurora.org>
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
diff --git a/kernel_headers.py b/kernel_headers.py
index 3df0915..65ae1e7 100644
--- a/kernel_headers.py
+++ b/kernel_headers.py
@@ -343,7 +343,7 @@
if verbose:
print('run_headers_install: cmd is %s' % cmd)
- result = subprocess.call(cmd)
+ result = subprocess.call(['sh', headers_install, h, out_h])
if result != 0:
print('error: run_headers_install: cmd %s failed %d' % (cmd, result))