From 26cfe3c2dfaaff71d6991e457630bee5b5bc6fe9 Mon Sep 17 00:00:00 2001 From: Jihoon Kang Date: Wed, 30 Oct 2024 18:53:51 +0000 Subject: Utilize high_priority_deps in autogenerated filesystem modules The auto generated prebuilt_* module will be listed in high_priority_deps property of the auto generated filesystem module if it is listed in the allowlist. The allowlist is empty in aosp, but will be extended in internal via a soong plugin. Test: m nothing Bug: 375053752 Change-Id: Iaa7291bebf8732f47f8da70421a787dfd275b621 --- fsgen/filesystem_creator.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'fsgen/filesystem_creator.go') diff --git a/fsgen/filesystem_creator.go b/fsgen/filesystem_creator.go index 766176d5a..61848eb12 100644 --- a/fsgen/filesystem_creator.go +++ b/fsgen/filesystem_creator.go @@ -228,8 +228,9 @@ type multilibDepsStruct struct { } type packagingPropsStruct struct { - Deps []string - Multilib multilibDepsStruct + High_priority_deps []string + Deps []string + Multilib multilibDepsStruct } func fullyQualifiedModuleName(moduleName, namespace string) string { @@ -305,12 +306,16 @@ func removeOverriddenDeps(mctx android.BottomUpMutatorContext) { }) } +var HighPriorityDeps = []string{} + func generateDepStruct(deps map[string]*depCandidateProps) *packagingPropsStruct { depsStruct := packagingPropsStruct{} for depName, depProps := range deps { bitness := getBitness(depProps.Arch) fullyQualifiedDepName := fullyQualifiedModuleName(depName, depProps.Namespace) - if android.InList("32", bitness) && android.InList("64", bitness) { + if android.InList(depName, HighPriorityDeps) { + depsStruct.High_priority_deps = append(depsStruct.High_priority_deps, fullyQualifiedDepName) + } else if android.InList("32", bitness) && android.InList("64", bitness) { // If both 32 and 64 bit variants are enabled for this module switch depProps.Multilib { case string(android.MultilibBoth): -- cgit v1.2.3-59-g8ed1b