Add init_rc property, equivalent to LOCAL_INIT_RC

Change-Id: I914bfff8cbdf71b6cfb2271199a964b2cdcb72d0
This commit is contained in:
Dan Willemsen
2016-07-25 20:27:39 -07:00
parent c6b4e452b4
commit 2277bcbc2a
3 changed files with 7 additions and 0 deletions

View File

@@ -215,6 +215,9 @@ func translateAndroidMkModule(ctx blueprint.SingletonContext, w io.Writer, mod b
if len(amod.commonProperties.Logtags) > 0 {
fmt.Fprintln(w, "LOCAL_LOGTAGS_FILES := ", strings.Join(amod.commonProperties.Logtags, " "))
}
if len(amod.commonProperties.Init_rc) > 0 {
fmt.Fprintln(w, "LOCAL_INIT_RC := ", strings.Join(amod.commonProperties.Init_rc, " "))
}
}
if host {

View File

@@ -116,6 +116,9 @@ type commonProperties struct {
// file
Logtags []string
// init.rc files to be installed if this module is installed
Init_rc []string
// Set by TargetMutator
CompileTarget Target `blueprint:"mutated"`

View File

@@ -51,6 +51,7 @@ var standardProperties = map[string]struct {
"LOCAL_LOGTAGS_FILES": {"logtags", bpparser.ListType},
"LOCAL_EXPORT_SHARED_LIBRARY_HEADERS": {"export_shared_lib_headers", bpparser.ListType},
"LOCAL_EXPORT_STATIC_LIBRARY_HEADERS": {"export_static_lib_headers", bpparser.ListType},
"LOCAL_INIT_RC": {"init_rc", bpparser.ListType},
"LOCAL_JAVA_RESOURCE_DIRS": {"java_resource_dirs", bpparser.ListType},
"LOCAL_JAVACFLAGS": {"javacflags", bpparser.ListType},