Merge "Recovery partition uses the first architecture only"
am: 87e50a0d14
Change-Id: I2da330f2a4062039f83ecb90800e65595982ad32
This commit is contained in:
26
cc/cc.go
26
cc/cc.go
@@ -1569,6 +1569,19 @@ func imageMutator(mctx android.BottomUpMutatorContext) {
|
|||||||
recoveryVariantNeeded = true
|
recoveryVariantNeeded = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if recoveryVariantNeeded {
|
||||||
|
var recoveryMultilib string
|
||||||
|
if mctx.Config().DevicePrefer32BitExecutables() {
|
||||||
|
recoveryMultilib = "lib32"
|
||||||
|
} else {
|
||||||
|
recoveryMultilib = "lib64"
|
||||||
|
}
|
||||||
|
multilib := genrule.Target().Arch.ArchType.Multilib
|
||||||
|
if multilib != recoveryMultilib {
|
||||||
|
recoveryVariantNeeded = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var variants []string
|
var variants []string
|
||||||
if coreVariantNeeded {
|
if coreVariantNeeded {
|
||||||
variants = append(variants, coreMode)
|
variants = append(variants, coreMode)
|
||||||
@@ -1676,6 +1689,19 @@ func imageMutator(mctx android.BottomUpMutatorContext) {
|
|||||||
coreVariantNeeded = false
|
coreVariantNeeded = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if recoveryVariantNeeded {
|
||||||
|
var recoveryMultilib string
|
||||||
|
if mctx.Config().DevicePrefer32BitExecutables() {
|
||||||
|
recoveryMultilib = "lib32"
|
||||||
|
} else {
|
||||||
|
recoveryMultilib = "lib64"
|
||||||
|
}
|
||||||
|
multilib := m.Target().Arch.ArchType.Multilib
|
||||||
|
if multilib != recoveryMultilib {
|
||||||
|
recoveryVariantNeeded = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var variants []string
|
var variants []string
|
||||||
if coreVariantNeeded {
|
if coreVariantNeeded {
|
||||||
variants = append(variants, coreMode)
|
variants = append(variants, coreMode)
|
||||||
|
Reference in New Issue
Block a user