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>
This commit is contained in:
Soumil Shah 2020-12-02 18:30:21 -08:00 committed by Gerrit - the friendly Code Review server
parent d45271c30a
commit 37a114cbf2

View file

@ -344,7 +344,7 @@ def run_headers_install(verbose, gen_dir, headers_install, prefix, h):
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))