diff options
author | LuK1337 <priv.luk@gmail.com> | 2022-01-16 20:44:58 +0100 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2022-02-03 22:30:33 +0800 |
commit | 5f96a4d91ccc199e6bd5067b5fd84dba13b665a9 (patch) | |
tree | 2836f4ee5de305e5edfb4b23b6637db71cb26b57 | |
parent | f19be3c60d203d559ce19218cc321250103af20b (diff) |
soong: Add exported-to-kati namespaces to root namespacesugisawa
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 d137636e2..ccda7c45a 100644 --- a/android/namespace.go +++ b/android/namespace.go @@ -132,6 +132,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) |