diff options
Diffstat (limited to 'android/variable.go')
-rw-r--r-- | android/variable.go | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/android/variable.go b/android/variable.go index f07ab56ec..7fb81b905 100644 --- a/android/variable.go +++ b/android/variable.go @@ -184,6 +184,13 @@ type variableProperties struct { Srcs []string `android:"arch_variant"` Exclude_srcs []string `android:"arch_variant"` } `android:"arch_variant"` + + // release_aidl_use_unfrozen is "true" when a device can + // use the unfrozen versions of AIDL interfaces. + Release_aidl_use_unfrozen struct { + Cflags []string + Cmd *string + } } `android:"arch_variant"` } @@ -462,6 +469,8 @@ type ProductVariables struct { SelinuxIgnoreNeverallows bool `json:",omitempty"` + Release_aidl_use_unfrozen *bool `json:",omitempty"` + SepolicyFreezeTestExtraDirs []string `json:",omitempty"` SepolicyFreezeTestExtraPrebuiltDirs []string `json:",omitempty"` @@ -734,7 +743,9 @@ func (p *ProductConfigProperties) AddEitherProperty( dst = append(dst, src...) (*p)[propertyName][key] = dst default: - panic(fmt.Errorf("TODO: handle merging value %#v", existing)) + if existing != propertyValue { + panic(fmt.Errorf("TODO: handle merging value %#v", existing)) + } } } else { (*p)[propertyName][key] = propertyValue @@ -947,7 +958,7 @@ func (productConfigProperties *ProductConfigProperties) AddSoongConfigProperties productConfigProperties.AddSoongConfigProperty(propertyName, namespace, soongConfigVariableName, soongConfigVariableValue, os.Name, property.Interface()) } } - } else { + } else if !archOrOsSpecificStruct.IsZero() { // One problem with supporting additional fields is that if multiple branches of // "target" overlap, we don't want them to be in the same select statement (aka // configuration axis). "android" and "host" are disjoint, so it's ok that we only |