summaryrefslogtreecommitdiff
path: root/cc
diff options
context:
space:
mode:
authorJose Galmes <jgalmes@google.com>2021-05-25 22:06:41 -0700
committerBill Peckham <bpeckham@google.com>2021-05-27 18:49:06 +0000
commit7ee8da081b687cca38c1f02aadbdec8f51cf96ef (patch)
tree3acd7d302def7dd26c4cea8bbb3ad1b8da241a1b /cc
parent60a5dfcacf4b15bb41765bdcd706eff13ac9be55 (diff)
Fix change in logic introduced in https://r.android.com/1666563.
https://r.android.com/c/platform/build/soong/+/1666563/3/cc/image.go#551 introduced a change in logic. Bug: 188717568 Test: source build/envsetup.sh Test: m -j nothing Change-Id: Iab27f1c3ca1a488d074f9c5c61fe071d7d445b91
Diffstat (limited to 'cc')
-rw-r--r--cc/image.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/image.go b/cc/image.go
index 47a424bc2..c6b209f08 100644
--- a/cc/image.go
+++ b/cc/image.go
@@ -579,7 +579,7 @@ func MutateImage(mctx android.BaseModuleContext, m ImageMutatableModule) {
// If using a snapshot, the recovery variant under AOSP directories is not needed,
// except for kernel headers, which needs all variants.
- if m.KernelHeadersDecorator() &&
+ if !m.KernelHeadersDecorator() &&
!m.IsSnapshotPrebuilt() &&
usingRecoverySnapshot &&
!isRecoveryProprietaryModule(mctx) {