Export ril related flag to soong
Export SIM_COUNT, DISABLE_RILD_OEM_HOOK and ENABLE_VENDOR_RIL_SERVICE
to soong
Bug: 347679222
Test: m libril libreference-ril rild
Change-Id: Ic1f8262f260c3fec70635809acf80d340502a77c
diff --git a/core/android_soong_config_vars.mk b/core/android_soong_config_vars.mk
index 6d4bed2..996afa7 100644
--- a/core/android_soong_config_vars.mk
+++ b/core/android_soong_config_vars.mk
@@ -162,3 +162,12 @@
# Enable Profiling module. Also used by platform_bootclasspath.
$(call soong_config_set,ANDROID,release_package_profiling_module,$(RELEASE_PACKAGE_PROFILING_MODULE))
$(call soong_config_set,bootclasspath,release_package_profiling_module,$(RELEASE_PACKAGE_PROFILING_MODULE))
+
+# Add sim_count, disable_rild_oem_hook, and use_aosp_rild flag for ril related modules
+$(call soong_config_set,ril,sim_count,$(SIM_COUNT))
+ifneq ($(DISABLE_RILD_OEM_HOOK), false)
+ $(call soong_config_set_bool,ril,disable_rild_oem_hook,true)
+endif
+ifneq ($(ENABLE_VENDOR_RIL_SERVICE), true)
+ $(call soong_config_set_bool,ril,use_aosp_rild,true)
+endif