1import os 2import subprocess 3 4 5def mm(path, android_build_top): 6 env = os.environ 7 env['ONE_SHOT_MAKEFILE'] = os.path.join(path, 'Android.mk') 8 9 cmd = [ 10 'make', '-C', android_build_top, '-f', 'build/core/main.mk', 11 'MODULES-IN-' + path.replace('/', '-'), '-B' 12 ] 13 return not subprocess.Popen(cmd, stdout=None, stderr=None, env=env).wait() 14