soong_config: Add TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS
* Soong product variable 'needs_text_relocations'
Change-Id: Ia22c94922f37c49f0d66a67747efa0ee97b4e477
Signed-off-by: Adrian DC <radian.dc@gmail.com>
diff --git a/build/soong/android/variable.go b/build/soong/android/variable.go
index 08a30ba..2ff8da0 100644
--- a/build/soong/android/variable.go
+++ b/build/soong/android/variable.go
@@ -7,9 +7,14 @@
Uses_media_extensions struct {
Cflags []string
}
+
+ Needs_text_relocations struct {
+ Cppflags []string
+ }
}
type ProductVariables struct {
Has_legacy_camera_hal1 *bool `json:",omitempty"`
Uses_media_extensions *bool `json:",omitempty"`
+ Needs_text_relocations *bool `json:",omitempty"`
}
diff --git a/build/soong/soong_config.mk b/build/soong/soong_config.mk
index 2c01471..02aeeb5 100644
--- a/build/soong/soong_config.mk
+++ b/build/soong/soong_config.mk
@@ -4,4 +4,5 @@
echo '{'; \
echo ' "Has_legacy_camera_hal1": $(if $(filter true,$(TARGET_HAS_LEGACY_CAMERA_HAL1)),true,false),'; \
echo ' "Uses_media_extensions": $(if $(filter true,$(TARGET_USES_MEDIA_EXTENSIONS)),true,false),'; \
+ echo ' "Needs_text_relocations": $(if $(filter true,$(TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS)),true,false),'; \
echo '') > $(SOONG_VARIABLES_TMP)