summaryrefslogtreecommitdiff
path: root/android/hooks.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2024-12-18 16:04:52 -0800
committer Colin Cross <ccross@android.com> 2025-01-31 12:22:40 -0800
commitd5c643112afa3e935e112a7e87705b5398d3532b (patch)
tree1e69f87c25cd667b14e862810ac4b1b1e187d3fa /android/hooks.go
parent844cb6a6646454aaba28b602cf49284df32cdc9f (diff)
Return android.Module from BottomUpMutatorContext methods
Soong will never see modules that implement blueprint.Module but not android.Module any more, make all the BottomUpMutatorContext methods return android.Module. Test: builds Change-Id: I39a75dab02fcd24763c7b6a6bb558a5e138c5ad5
Diffstat (limited to 'android/hooks.go')
-rw-r--r--android/hooks.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/android/hooks.go b/android/hooks.go
index f8022d05c..5d509a43e 100644
--- a/android/hooks.go
+++ b/android/hooks.go
@@ -100,12 +100,12 @@ func (l *loadHookContext) PrependProperties(props ...interface{}) {
l.appendPrependHelper(props, proptools.PrependMatchingProperties)
}
-func (l *loadHookContext) createModule(factory blueprint.ModuleFactory, name string, props ...interface{}) blueprint.Module {
- return l.bp.CreateModule(factory, name, props...)
+func (l *loadHookContext) createModule(factory blueprint.ModuleFactory, name string, props ...interface{}) Module {
+ return bpModuleToModule(l.bp.CreateModule(factory, name, props...))
}
-func (l *loadHookContext) createModuleInDirectory(factory blueprint.ModuleFactory, name, moduleDir string, props ...interface{}) blueprint.Module {
- return l.bp.CreateModuleInDirectory(factory, name, moduleDir, props...)
+func (l *loadHookContext) createModuleInDirectory(factory blueprint.ModuleFactory, name, moduleDir string, props ...interface{}) Module {
+ return bpModuleToModule(l.bp.CreateModuleInDirectory(factory, name, moduleDir, props...))
}
type specifyDirectory struct {
@@ -130,8 +130,8 @@ func specifiesDirectory(directory string) specifyDirectory {
type createModuleContext interface {
Module() Module
HasMutatorFinished(mutatorName string) bool
- createModule(blueprint.ModuleFactory, string, ...interface{}) blueprint.Module
- createModuleInDirectory(blueprint.ModuleFactory, string, string, ...interface{}) blueprint.Module
+ createModule(blueprint.ModuleFactory, string, ...interface{}) Module
+ createModuleInDirectory(blueprint.ModuleFactory, string, string, ...interface{}) Module
}
func createModule(ctx createModuleContext, factory ModuleFactory, ext string, specifyDirectory specifyDirectory, props ...interface{}) Module {