diff options
author | 2020-10-21 15:17:56 -0700 | |
---|---|---|
committer | 2020-10-22 10:26:26 -0700 | |
commit | 60e0cfb5cbaefa7bdd2b97e1dbbf35c235f5af3d (patch) | |
tree | ba63247d2d8d56c3b888721ec9b4e70d63ae47ad /cc/genrule.go | |
parent | 627ce86770dca98915d6d81b66841a15014019a0 (diff) |
Add vendor-ramdisk image to Soong.
Add vendor_ramdisk_available and vendor_ramdisk attribute to
various rules. When a vendor_ramdisk variant of a module is
generated, it is installed to $OUT/vendor-ramdisk.
It is similar to a ramdisk image.
Test: m nothing -j
Change-Id: Ib2d16459f3094dbe21c3bdb7c016cb4b2bf62765
Diffstat (limited to 'cc/genrule.go')
-rw-r--r-- | cc/genrule.go | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/cc/genrule.go b/cc/genrule.go index cce4a83d3..a5a58d2ec 100644 --- a/cc/genrule.go +++ b/cc/genrule.go @@ -24,10 +24,11 @@ func init() { } type GenruleExtraProperties struct { - Vendor_available *bool - Ramdisk_available *bool - Recovery_available *bool - Sdk_version *string + Vendor_available *bool + Ramdisk_available *bool + Vendor_ramdisk_available *bool + Recovery_available *bool + Sdk_version *string } // cc_genrule is a genrule that can depend on other cc_* objects. @@ -68,6 +69,10 @@ func (g *GenruleExtraProperties) RamdiskVariantNeeded(ctx android.BaseModuleCont return Bool(g.Ramdisk_available) } +func (g *GenruleExtraProperties) VendorRamdiskVariantNeeded(ctx android.BaseModuleContext) bool { + return Bool(g.Vendor_ramdisk_available) +} + func (g *GenruleExtraProperties) RecoveryVariantNeeded(ctx android.BaseModuleContext) bool { return Bool(g.Recovery_available) } |