android: add working run script

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-01-30 00:00:00 +00:00
parent 64dbf624db
commit 5b39fd2129
4 changed files with 55 additions and 7 deletions

View File

@@ -60,10 +60,12 @@ https://github.com/cirosantilli/linux-kernel-module-cheat#android
# The crappy android build system requires
# https://stackoverflow.com/questions/7040592/calling-the-source-command-from-subprocess-popen
self.sh.run_cmd('''\
. build/envsetup.sh
lunch aosp_{}-eng
{}
USE_CCACHE=1 make -j {}
'''.format(self.env['android_arch'], self.env['nproc']),
'''.format(
self.env['android_shell_setup'],
self.env['nproc']
),
cwd=self.env['android_dir'],
executable=shutil.which('bash'),
shell=True,