Add platform_sdk_version product variable

For libc to use

Change-Id: I5048509e27ea4e4dc7773e7bd33e7f7b4deca608
This commit is contained in:
Dan Willemsen 2015-09-16 16:48:54 -07:00
parent cde6dce026
commit 47cf66b8d1

View file

@ -44,6 +44,9 @@ type variableProperties struct {
Dlmalloc_alignment struct { Dlmalloc_alignment struct {
Cflags []string Cflags []string
} }
Platform_sdk_version struct {
Asflags []string
}
} }
} }
@ -53,15 +56,21 @@ type productVariables struct {
Device_uses_jemalloc *bool `json:",omitempty"` Device_uses_jemalloc *bool `json:",omitempty"`
Device_uses_dlmalloc *bool `json:",omitempty"` Device_uses_dlmalloc *bool `json:",omitempty"`
Dlmalloc_alignment *int `json:",omitempty"` Dlmalloc_alignment *int `json:",omitempty"`
Platform_sdk_version *int
} }
func boolPtr(v bool) *bool { func boolPtr(v bool) *bool {
return &v return &v
} }
func intPtr(v int) *int {
return &v
}
func (productVariables) DefaultConfig() jsonConfigurable { func (productVariables) DefaultConfig() jsonConfigurable {
v := productVariables{ v := productVariables{
Device_uses_jemalloc: boolPtr(true), Device_uses_jemalloc: boolPtr(true),
Platform_sdk_version: intPtr(22),
} }
return v return v
} }