From 9da1f813825a446894218ff15e17d7630ea8bf78 Mon Sep 17 00:00:00 2001 From: Inseob Kim Date: Mon, 14 Jun 2021 12:03:59 +0900 Subject: [PATCH] Add ramdisk_available to sysprop_library Bug: 187196593 Test: build Change-Id: Ib8d92904a9004ccbc18634a97f9d75c2093ac2ae --- sysprop/sysprop_library.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sysprop/sysprop_library.go b/sysprop/sysprop_library.go index f1c2d0df0..a29d4c3ac 100644 --- a/sysprop/sysprop_library.go +++ b/sysprop/sysprop_library.go @@ -145,6 +145,9 @@ type syspropLibraryProperties struct { // If set to true, allow this module to be dexed and installed on devices. Installable *bool + // Make this module available when building for ramdisk + Ramdisk_available *bool + // Make this module available when building for recovery Recovery_available *bool @@ -396,6 +399,7 @@ type ccLibraryProperties struct { Recovery_available *bool Vendor_available *bool Product_available *bool + Ramdisk_available *bool Host_supported *bool Apex_available []string Min_sdk_version *string @@ -475,6 +479,7 @@ func syspropLibraryHook(ctx android.LoadHookContext, m *syspropLibrary) { ccProps.Recovery_available = m.properties.Recovery_available ccProps.Vendor_available = m.properties.Vendor_available ccProps.Product_available = m.properties.Product_available + ccProps.Ramdisk_available = m.properties.Ramdisk_available ccProps.Host_supported = m.properties.Host_supported ccProps.Apex_available = m.ApexProperties.Apex_available ccProps.Min_sdk_version = m.properties.Cpp.Min_sdk_version