Switch to new soong_ui dumpvar-mode

Stop using make directly.

Test: manual tests
Test: development/scripts/symbol.py
Change-Id: I9f75776251b693dbe979989942d2db49768224d2
This commit is contained in:
Dan Willemsen
2017-10-17 14:04:56 -07:00
parent c1c3e5f1d8
commit d3fc8faff6
2 changed files with 3 additions and 11 deletions

View File

@@ -36,9 +36,7 @@ def FindSymbolsDir():
saveddir = os.getcwd()
os.chdir(ANDROID_BUILD_TOP)
try:
cmd = ("CALLED_FROM_SETUP=true BUILD_SYSTEM=build/core "
"SRC_TARGET_DIR=build/target make -f build/core/config.mk "
"dumpvar-abs-TARGET_OUT_UNSTRIPPED")
cmd = "build/soong/soong_ui.bash --dumpvar-mode --abs TARGET_OUT_UNSTRIPPED"
stream = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True).stdout
return os.path.join(ANDROID_BUILD_TOP, stream.read().strip())
finally: