Simplify package by using LoadHook instead of mutators
This was not previously possible due to LoadHooks being run after the module was registered. Bug: 155462403 Test: m nothing Change-Id: Ia8383b9d1272bb12c8a83948753a0e4b0d98a650
This commit is contained in:
@@ -82,14 +82,6 @@ type RegisterMutatorFunc func(RegisterMutatorsContext)
|
||||
var preArch = []RegisterMutatorFunc{
|
||||
RegisterNamespaceMutator,
|
||||
|
||||
// Rename package module types.
|
||||
//
|
||||
// The package module type does not have a name property, instead its name is determined
|
||||
// by the location of the containing .bp file relative to the root of the file structure
|
||||
// being built by Soong. Unfortunately, due to limitations in LoadHook the module has to
|
||||
// be given a synthetic temporary name which is then fixed up by these mutators.
|
||||
RegisterPackageRenamer,
|
||||
|
||||
// Create an association between prebuilt modules and their corresponding source
|
||||
// modules (if any).
|
||||
RegisterPrebuiltsPreArchMutators,
|
||||
|
Reference in New Issue
Block a user