From 6880875711d850eced8f2911f9ad4d210a9a4337 Mon Sep 17 00:00:00 2001
From: html6405 <[email protected]>
Date: Fri, 20 Nov 2020 17:28:29 +0100
Subject: [PATCH] Included build variable for BOARD_EGL_NEEDS_HANDLE_VALUE.
Change-Id: Ic60409eb8e676a6f05ee67d587acf1bd0476abbc
---
build/soong/android/variable.go | 6 +++++-
build/soong/soong_config.mk | 1 +
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/build/soong/android/variable.go b/build/soong/android/variable.go
index 41619b82..b2ac836c 100644
--- a/build/soong/android/variable.go
+++ b/build/soong/android/variable.go
@@ -7,8 +7,11 @@ type Product_variables struct {
Cflags []string
}
Egl_workaround_bug_10194508 struct {
- Cppflags []string
+ Cppflags []string
}
+ Egl_needs_handle struct {
+ Cppflags []string
+ }
Bootloader_message_offset struct {
Cflags []string
}
@@ -77,6 +80,7 @@ type ProductVariables struct {
Additional_gralloc_10_usage_bits *string `json:",omitempty"`
Apply_msm8974_1440p_egl_workaround *bool `json:",omitempty"`
Egl_workaround_bug_10194508 *bool `json:",omitempty"`
+ Egl_needs_handle *bool `json:",omitempty"`
Bootloader_message_offset *int `json:",omitempty"`
Has_legacy_camera_hal1 *bool `json:",omitempty"`
Java_Source_Overlays *string `json:",omitempty"`
diff --git a/build/soong/soong_config.mk b/build/soong/soong_config.mk
index 6f18848d..b02f5f4e 100644
--- a/build/soong/soong_config.mk
+++ b/build/soong/soong_config.mk
@@ -5,6 +5,7 @@ _contents := $(_contents) "Lineage":{$(newline)
# See build/core/soong_config.mk for the add_json_* functions you can use here.
$(call add_json_str_omitempty, Additional_gralloc_10_usage_bits, $(TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS))
+$(call add_json_bool, Egl_needs_handle, $(filter true,$(BOARD_EGL_NEEDS_HANDLE_VALUE)))
$(call add_json_bool, Apply_msm8974_1440p_egl_workaround, $(filter true,$(TARGET_MSM8974_1440P_EGL_WORKAROUND)))
$(call add_json_bool, Egl_workaround_bug_10194508, $(filter true,$(BOARD_EGL_WORKAROUND_BUG_10194508)))
$(call add_json_val_default, Bootloader_message_offset, $(BOOTLOADER_MESSAGE_OFFSET), 0)
--
2.25.1