diff options
author | Liz Kammer <eakammer@google.com> | 2022-01-04 17:27:52 -0500 |
---|---|---|
committer | Liz Kammer <eakammer@google.com> | 2022-01-06 12:14:59 -0500 |
commit | e9ecddc9725c2b770cf136b131451183815481a0 (patch) | |
tree | 837dc6ef9c6eeb4c9fb32dabe5a4476745571072 /etc | |
parent | 4fd34e1a6d204d959f57e52e7aa0f1df5576ba83 (diff) | |
download | soong-e9ecddc9725c2b770cf136b131451183815481a0.tar.gz |
Add support for a prebuilt_root_host type.
Test: art-tests
Change-Id: If013e46d2bbd9cc937a11fe7cf3b67eb8b262b55
Diffstat (limited to 'etc')
-rw-r--r-- | etc/prebuilt_etc.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/prebuilt_etc.go b/etc/prebuilt_etc.go index 377a56651..a142833dd 100644 --- a/etc/prebuilt_etc.go +++ b/etc/prebuilt_etc.go @@ -54,6 +54,7 @@ func RegisterPrebuiltEtcBuildComponents(ctx android.RegistrationContext) { ctx.RegisterModuleType("prebuilt_etc", PrebuiltEtcFactory) ctx.RegisterModuleType("prebuilt_etc_host", PrebuiltEtcHostFactory) ctx.RegisterModuleType("prebuilt_root", PrebuiltRootFactory) + ctx.RegisterModuleType("prebuilt_root_host", PrebuiltRootHostFactory) ctx.RegisterModuleType("prebuilt_usr_share", PrebuiltUserShareFactory) ctx.RegisterModuleType("prebuilt_usr_share_host", PrebuiltUserShareHostFactory) ctx.RegisterModuleType("prebuilt_font", PrebuiltFontFactory) @@ -454,6 +455,17 @@ func PrebuiltRootFactory() android.Module { return module } +// prebuilt_root_host is for a host prebuilt artifact that is installed in $(HOST_OUT)/<sub_dir> +// directory. +func PrebuiltRootHostFactory() android.Module { + module := &PrebuiltEtc{} + InitPrebuiltEtcModule(module, ".") + // This module is host-only + android.InitAndroidArchModule(module, android.HostSupported, android.MultilibCommon) + android.InitDefaultableModule(module) + return module +} + // prebuilt_usr_share is for a prebuilt artifact that is installed in // <partition>/usr/share/<sub_dir> directory. func PrebuiltUserShareFactory() android.Module { |