diff options
| author | Jiyong Park <jiyong@google.com> | 2019-07-07 12:39:16 +0900 |
|---|---|---|
| committer | Jiyong Park <jiyong@google.com> | 2019-07-07 13:57:10 +0900 |
| commit | 0a573d798ffa8941b8028e76d0f6a6951863a6e4 (patch) | |
| tree | bdd2b10705305df29b875e00f945975baedebb96 /android | |
| parent | 43377eeb3890dcdbc8d5a391c54c5b6062f9d807 (diff) | |
| download | build_soong-0a573d798ffa8941b8028e76d0f6a6951863a6e4.tar.gz build_soong-0a573d798ffa8941b8028e76d0f6a6951863a6e4.tar.bz2 build_soong-0a573d798ffa8941b8028e76d0f6a6951863a6e4.zip | |
Don't use prebuilt_apex when TARGET_FLATTEN_APEX is set to true
When the device does not support non-flattened APEX (i.e.
TARGET_FLATTEN_APEX is set to true), then ignore the prebuilt_apex
modules even when `prefer: true`.
Bug: 136251130
Bug: 136662772
Test: build marlin, and check if /system/apex has flattened APEXes
Change-Id: I9f3dfefc3bd357d6750fbb1e418937d095720b04
Diffstat (limited to 'android')
| -rw-r--r-- | android/prebuilt.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/android/prebuilt.go b/android/prebuilt.go index 2556770d..3be10f72 100644 --- a/android/prebuilt.go +++ b/android/prebuilt.go @@ -178,3 +178,7 @@ func (p *Prebuilt) usePrebuilt(ctx TopDownMutatorContext, source Module) bool { return source == nil || !source.Enabled() } + +func (p *Prebuilt) SourceExists() bool { + return p.properties.SourceExists +} |
