diff options
author | LuK1337 <priv.luk@gmail.com> | 2022-01-16 20:44:58 +0100 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2022-08-31 09:40:18 +0800 |
commit | ccf6935b607560c65d3f4d6e751bd3fe2ee98699 (patch) | |
tree | 04db23531e56899e1f0e299c3026c2b0d808265f | |
parent | 2d5afc823a23de2e92fa9d844e44e4f3a1507f10 (diff) |
Add exported-to-kati namespaces to root namespace
This lets us use boot jar modules that are hidden behind
soong_namespace.
Change-Id: If0068387efdeca5458b5b97ce6b993b10a268bd2
-rw-r--r-- | android/namespace.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/android/namespace.go b/android/namespace.go index fc7bc290f..85f276a63 100644 --- a/android/namespace.go +++ b/android/namespace.go @@ -136,6 +136,9 @@ func (r *NameResolver) addNamespace(namespace *Namespace) (err error) { return fmt.Errorf("a namespace must be the first module in the file") } } + if (namespace.exportToKati) { + r.rootNamespace.visibleNamespaces = append(r.rootNamespace.visibleNamespaces, namespace) + } r.sortedNamespaces.add(namespace) r.namespacesByDir.Store(namespace.Path, namespace) |