Add ramdisk_available to sysprop_library

Bug: 187196593
Test: build
Change-Id: Ib8d92904a9004ccbc18634a97f9d75c2093ac2ae
This commit is contained in:
Inseob Kim 2021-06-14 12:03:59 +09:00
parent 800d114003
commit 9da1f81382

View file

@ -145,6 +145,9 @@ type syspropLibraryProperties struct {
// If set to true, allow this module to be dexed and installed on devices. // If set to true, allow this module to be dexed and installed on devices.
Installable *bool Installable *bool
// Make this module available when building for ramdisk
Ramdisk_available *bool
// Make this module available when building for recovery // Make this module available when building for recovery
Recovery_available *bool Recovery_available *bool
@ -396,6 +399,7 @@ type ccLibraryProperties struct {
Recovery_available *bool Recovery_available *bool
Vendor_available *bool Vendor_available *bool
Product_available *bool Product_available *bool
Ramdisk_available *bool
Host_supported *bool Host_supported *bool
Apex_available []string Apex_available []string
Min_sdk_version *string Min_sdk_version *string
@ -475,6 +479,7 @@ func syspropLibraryHook(ctx android.LoadHookContext, m *syspropLibrary) {
ccProps.Recovery_available = m.properties.Recovery_available ccProps.Recovery_available = m.properties.Recovery_available
ccProps.Vendor_available = m.properties.Vendor_available ccProps.Vendor_available = m.properties.Vendor_available
ccProps.Product_available = m.properties.Product_available ccProps.Product_available = m.properties.Product_available
ccProps.Ramdisk_available = m.properties.Ramdisk_available
ccProps.Host_supported = m.properties.Host_supported ccProps.Host_supported = m.properties.Host_supported
ccProps.Apex_available = m.ApexProperties.Apex_available ccProps.Apex_available = m.ApexProperties.Apex_available
ccProps.Min_sdk_version = m.properties.Cpp.Min_sdk_version ccProps.Min_sdk_version = m.properties.Cpp.Min_sdk_version