Merge "Support paths for vintf_fragments from Soong."
This commit is contained in:
@@ -550,7 +550,9 @@ func (a *AndroidMkEntries) fillInEntries(ctx fillInEntriesContext, mod blueprint
|
|||||||
if !amod.InRamdisk() && !amod.InVendorRamdisk() {
|
if !amod.InRamdisk() && !amod.InVendorRamdisk() {
|
||||||
a.AddPaths("LOCAL_FULL_INIT_RC", amod.initRcPaths)
|
a.AddPaths("LOCAL_FULL_INIT_RC", amod.initRcPaths)
|
||||||
}
|
}
|
||||||
a.AddStrings("LOCAL_VINTF_FRAGMENTS", amod.commonProperties.Vintf_fragments...)
|
if len(amod.vintfFragmentsPaths) > 0 {
|
||||||
|
a.AddPaths("LOCAL_FULL_VINTF_FRAGMENTS", amod.vintfFragmentsPaths)
|
||||||
|
}
|
||||||
a.SetBoolIfTrue("LOCAL_PROPRIETARY_MODULE", Bool(amod.commonProperties.Proprietary))
|
a.SetBoolIfTrue("LOCAL_PROPRIETARY_MODULE", Bool(amod.commonProperties.Proprietary))
|
||||||
if Bool(amod.commonProperties.Vendor) || Bool(amod.commonProperties.Soc_specific) {
|
if Bool(amod.commonProperties.Vendor) || Bool(amod.commonProperties.Soc_specific) {
|
||||||
a.SetString("LOCAL_VENDOR_MODULE", "true")
|
a.SetString("LOCAL_VENDOR_MODULE", "true")
|
||||||
|
@@ -284,7 +284,7 @@ func (a *apexBundle) androidMkForFiles(w io.Writer, apexBundleName, apexName, mo
|
|||||||
// To install companion files (init_rc, vintf_fragments)
|
// To install companion files (init_rc, vintf_fragments)
|
||||||
// Copy some common properties of apexBundle to apex_manifest
|
// Copy some common properties of apexBundle to apex_manifest
|
||||||
commonProperties := []string{
|
commonProperties := []string{
|
||||||
"LOCAL_FULL_INIT_RC", "LOCAL_VINTF_FRAGMENTS",
|
"LOCAL_FULL_INIT_RC", "LOCAL_FULL_VINTF_FRAGMENTS",
|
||||||
}
|
}
|
||||||
for _, name := range commonProperties {
|
for _, name := range commonProperties {
|
||||||
if value, ok := apexAndroidMkData.Entries.EntryMap[name]; ok {
|
if value, ok := apexAndroidMkData.Entries.EntryMap[name]; ok {
|
||||||
@@ -394,7 +394,7 @@ func (a *apexBundle) androidMkForType() android.AndroidMkData {
|
|||||||
// Because apex writes .mk with Custom(), we need to write manually some common properties
|
// Because apex writes .mk with Custom(), we need to write manually some common properties
|
||||||
// which are available via data.Entries
|
// which are available via data.Entries
|
||||||
commonProperties := []string{
|
commonProperties := []string{
|
||||||
"LOCAL_FULL_INIT_RC", "LOCAL_VINTF_FRAGMENTS",
|
"LOCAL_FULL_INIT_RC", "LOCAL_FULL_VINTF_FRAGMENTS",
|
||||||
"LOCAL_PROPRIETARY_MODULE", "LOCAL_VENDOR_MODULE", "LOCAL_ODM_MODULE", "LOCAL_PRODUCT_MODULE", "LOCAL_SYSTEM_EXT_MODULE",
|
"LOCAL_PROPRIETARY_MODULE", "LOCAL_VENDOR_MODULE", "LOCAL_ODM_MODULE", "LOCAL_PRODUCT_MODULE", "LOCAL_SYSTEM_EXT_MODULE",
|
||||||
"LOCAL_MODULE_OWNER",
|
"LOCAL_MODULE_OWNER",
|
||||||
}
|
}
|
||||||
|
@@ -2755,7 +2755,7 @@ func TestAndroidMkWritesCommonProperties(t *testing.T) {
|
|||||||
var builder strings.Builder
|
var builder strings.Builder
|
||||||
data.Custom(&builder, name, prefix, "", data)
|
data.Custom(&builder, name, prefix, "", data)
|
||||||
androidMk := builder.String()
|
androidMk := builder.String()
|
||||||
ensureContains(t, androidMk, "LOCAL_VINTF_FRAGMENTS := fragment.xml\n")
|
ensureContains(t, androidMk, "LOCAL_FULL_VINTF_FRAGMENTS := fragment.xml\n")
|
||||||
ensureContains(t, androidMk, "LOCAL_FULL_INIT_RC := init.rc\n")
|
ensureContains(t, androidMk, "LOCAL_FULL_INIT_RC := init.rc\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user