Add support for logtags
am: 0fda89f4a8
* commit '0fda89f4a80223d0adb01e0f44a0575c83956ea0':
Add support for logtags
Change-Id: I81e4e56e2229d78e16c687f2e3b2fee18fdb6c7d
This commit is contained in:
@@ -22,6 +22,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"sort"
|
"sort"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"android/soong"
|
"android/soong"
|
||||||
|
|
||||||
@@ -200,6 +201,10 @@ func translateAndroidMkModule(ctx blueprint.SingletonContext, w io.Writer, mod b
|
|||||||
fmt.Fprintln(w, "LOCAL_IS_HOST_MODULE := true")
|
fmt.Fprintln(w, "LOCAL_IS_HOST_MODULE := true")
|
||||||
} else {
|
} else {
|
||||||
fmt.Fprintln(w, "LOCAL_MODULE_TARGET_ARCH :=", archStr)
|
fmt.Fprintln(w, "LOCAL_MODULE_TARGET_ARCH :=", archStr)
|
||||||
|
|
||||||
|
if len(amod.commonProperties.Logtags) > 0 {
|
||||||
|
fmt.Fprintln(w, "LOCAL_LOGTAGS_FILES := ", strings.Join(amod.commonProperties.Logtags, " "))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, extra := range data.Extra {
|
for _, extra := range data.Extra {
|
||||||
|
@@ -111,6 +111,10 @@ type commonProperties struct {
|
|||||||
// whether this is a proprietary vendor module, and should be installed into /vendor
|
// whether this is a proprietary vendor module, and should be installed into /vendor
|
||||||
Proprietary bool
|
Proprietary bool
|
||||||
|
|
||||||
|
// *.logtags files, to combine together in order to generate the /system/etc/event-log-tags
|
||||||
|
// file
|
||||||
|
Logtags []string
|
||||||
|
|
||||||
// Set by HostOrDeviceMutator
|
// Set by HostOrDeviceMutator
|
||||||
CompileHostOrDevice HostOrDevice `blueprint:"mutated"`
|
CompileHostOrDevice HostOrDevice `blueprint:"mutated"`
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user