summaryrefslogtreecommitdiff
path: root/cc/genrule.go
diff options
context:
space:
mode:
author Jiyong Park <jiyong@google.com> 2018-05-24 13:36:56 +0900
committer Jiyong Park <jiyong@google.com> 2018-05-24 14:01:54 +0900
commit3f736c9661b0a3a739e6050decf705f0a1cfab37 (patch)
tree9c18a3daf5d17767f462dda741841e14aafc8d37 /cc/genrule.go
parent78a01965d077fef952a228ab4a9a0cd1cb51670a (diff)
Add recovery_available to cc_genrule
recovery_available property is required in cc_genrule. Specifically, we will mark libminijail as recovery_available:true as part of building adbd and other stuffs for recovery. Some source code of libminijail is created via cc_genrule, so we need recovery_available in the module type. Bug: 79146551 Test: m -j Change-Id: I0cf0d9b1004dda055373573e5c5a7debd112685f
Diffstat (limited to 'cc/genrule.go')
-rw-r--r--cc/genrule.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/cc/genrule.go b/cc/genrule.go
index 51c0d1628..a67299271 100644
--- a/cc/genrule.go
+++ b/cc/genrule.go
@@ -23,13 +23,18 @@ func init() {
android.RegisterModuleType("cc_genrule", genRuleFactory)
}
+type GenruleExtraProperties struct {
+ Vendor_available *bool
+ Recovery_available *bool
+}
+
// cc_genrule is a genrule that can depend on other cc_* objects.
// The cmd may be run multiple times, once for each of the different arch/etc
// variations.
func genRuleFactory() android.Module {
module := genrule.NewGenRule()
- module.Extra = &VendorProperties{}
+ module.Extra = &GenruleExtraProperties{}
module.AddProperties(module.Extra)
android.InitAndroidArchModule(module, android.HostAndDeviceSupported, android.MultilibBoth)