From 2468d015fefb53337f39414e7ab5a951a57a0885 Mon Sep 17 00:00:00 2001 From: Dan Shi Date: Mon, 6 Jan 2020 15:47:57 -0800 Subject: Pass auto_gen_config setting in Android.bp to makefile Bug: none Test: local test with fuzzy_fastboot Change-Id: I2c62f6fb58737538ef9e1e9fcbe63e03dfa7ee91 --- python/androidmk.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'python/androidmk.go') diff --git a/python/androidmk.go b/python/androidmk.go index aae7cedc9..8e8e8efbf 100644 --- a/python/androidmk.go +++ b/python/androidmk.go @@ -76,6 +76,10 @@ func (p *testDecorator) AndroidMk(base *Module, ret *android.AndroidMkData) { p.testConfig.String()) } } + + if !BoolDefault(p.binaryProperties.Auto_gen_config, true) { + fmt.Fprintln(w, "LOCAL_DISABLE_AUTO_GENERATE_TEST_CONFIG := true") + } }) base.subAndroidMk(ret, p.binaryDecorator.pythonInstaller) } -- cgit v1.2.3-59-g8ed1b