summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-02-17 19:33:37 -0800
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2025-02-17 19:33:37 -0800
commiteff8cc80c6b6df1c9973b552c84987976a98af7a (patch)
tree34443313348751c1f65c60e5e49f2ac5614d87e3
parent496c71d48b22b1647ba48149a9740d5b830803b9 (diff)
parentc7d0f0a54dfef32018e989e414177c5aa9084f34 (diff)
Merge "Add vendor_ramdisk_available to sysprop_library" into main
-rw-r--r--sysprop/sysprop_library.go27
1 files changed, 16 insertions, 11 deletions
diff --git a/sysprop/sysprop_library.go b/sysprop/sysprop_library.go
index af1eaf606..a398cbce2 100644
--- a/sysprop/sysprop_library.go
+++ b/sysprop/sysprop_library.go
@@ -226,6 +226,9 @@ type syspropLibraryProperties struct {
// Make this module available when building for ramdisk
Ramdisk_available *bool
+ // Make this module available when building for vendor ramdisk
+ Vendor_ramdisk_available *bool
+
// Make this module available when building for recovery
Recovery_available *bool
@@ -500,17 +503,18 @@ type ccLibraryProperties struct {
Static_libs []string
}
}
- Required []string
- Recovery *bool
- Recovery_available *bool
- Vendor_available *bool
- Product_available *bool
- Ramdisk_available *bool
- Host_supported *bool
- Apex_available []string
- Min_sdk_version *string
- Cflags []string
- Ldflags []string
+ Required []string
+ Recovery *bool
+ Recovery_available *bool
+ Vendor_available *bool
+ Product_available *bool
+ Ramdisk_available *bool
+ Vendor_ramdisk_available *bool
+ Host_supported *bool
+ Apex_available []string
+ Min_sdk_version *string
+ Cflags []string
+ Ldflags []string
}
type javaLibraryProperties struct {
@@ -603,6 +607,7 @@ func syspropLibraryHook(ctx android.LoadHookContext, m *syspropLibrary) {
ccProps.Vendor_available = m.properties.Vendor_available
ccProps.Product_available = m.properties.Product_available
ccProps.Ramdisk_available = m.properties.Ramdisk_available
+ ccProps.Vendor_ramdisk_available = m.properties.Vendor_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