| # Copyright (C) 2020 The Android Open Source Project |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| # This file defines the Soong Config Variable namespace ANDROID, and also any |
| # variables in that namespace. |
| |
| # The expectation is that no vendor should be using the ANDROID namespace. This |
| # check ensures that we don't collide with any existing vendor usage. |
| |
| ifdef SOONG_CONFIG_ANDROID |
| $(error The Soong config namespace ANDROID is reserved.) |
| endif |
| |
| $(call add_soong_config_namespace,ANDROID) |
| |
| # Add variables to the namespace below: |
| |
| $(call add_soong_config_var,ANDROID,BOARD_USES_ODMIMAGE) |
| $(call soong_config_set_bool,ANDROID,BOARD_USES_RECOVERY_AS_BOOT,$(BOARD_USES_RECOVERY_AS_BOOT)) |
| $(call soong_config_set_bool,ANDROID,BOARD_MOVE_GSI_AVB_KEYS_TO_VENDOR_BOOT,$(BOARD_MOVE_GSI_AVB_KEYS_TO_VENDOR_BOOT)) |
| $(call add_soong_config_var,ANDROID,CHECK_DEV_TYPE_VIOLATIONS) |
| $(call soong_config_set_bool,ANDROID,HAS_BOARD_SYSTEM_EXT_PREBUILT_DIR,$(if $(BOARD_SYSTEM_EXT_PREBUILT_DIR),true,false)) |
| $(call soong_config_set_bool,ANDROID,HAS_BOARD_PRODUCT_PREBUILT_DIR,$(if $(BOARD_PRODUCT_PREBUILT_DIR),true,false)) |
| $(call add_soong_config_var,ANDROID,PLATFORM_SEPOLICY_VERSION) |
| $(call add_soong_config_var,ANDROID,PLATFORM_SEPOLICY_COMPAT_VERSIONS) |
| $(call add_soong_config_var,ANDROID,PRODUCT_INSTALL_DEBUG_POLICY_TO_SYSTEM_EXT) |
| $(call soong_config_set_bool,ANDROID,RELEASE_BOARD_API_LEVEL_FROZEN,$(RELEASE_BOARD_API_LEVEL_FROZEN)) |
| $(call add_soong_config_var,ANDROID,TARGET_DYNAMIC_64_32_DRMSERVER) |
| $(call add_soong_config_var,ANDROID,TARGET_ENABLE_MEDIADRM_64) |
| $(call add_soong_config_var,ANDROID,TARGET_DYNAMIC_64_32_MEDIASERVER) |
| $(call soong_config_set_bool,ANDROID,TARGET_SUPPORTS_32_BIT_APPS,$(if $(filter true,$(TARGET_SUPPORTS_32_BIT_APPS)),true,false)) |
| $(call soong_config_set_bool,ANDROID,TARGET_SUPPORTS_64_BIT_APPS,$(if $(filter true,$(TARGET_SUPPORTS_64_BIT_APPS)),true,false)) |
| $(call add_soong_config_var,ANDROID,BOARD_GENFS_LABELS_VERSION) |
| $(call soong_config_set_bool,ANDROID,PRODUCT_FSVERITY_GENERATE_METADATA,$(if $(filter true,$(PRODUCT_FSVERITY_GENERATE_METADATA)),true,false)) |
| |
| $(call add_soong_config_var,ANDROID,ADDITIONAL_M4DEFS,$(if $(BOARD_SEPOLICY_M4DEFS),$(addprefix -D,$(BOARD_SEPOLICY_M4DEFS)))) |
| |
| # For BUILDING_GSI |
| $(call soong_config_set_bool,gsi,building_gsi,$(if $(filter true,$(BUILDING_GSI)),true,false)) |
| |
| # For bootable/recovery |
| RECOVERY_API_VERSION := 3 |
| RECOVERY_FSTAB_VERSION := 2 |
| $(call soong_config_set, recovery, recovery_api_version, $(RECOVERY_API_VERSION)) |
| $(call soong_config_set, recovery, recovery_fstab_version, $(RECOVERY_FSTAB_VERSION)) |
| $(call soong_config_set_bool, recovery ,target_userimages_use_f2fs ,$(if $(TARGET_USERIMAGES_USE_F2FS),true,false)) |
| $(call soong_config_set_bool, recovery ,has_board_cacheimage_partition_size ,$(if $(BOARD_CACHEIMAGE_PARTITION_SIZE),true,false)) |
| ifdef TARGET_RECOVERY_UI_LIB |
| $(call soong_config_set_string_list, recovery, target_recovery_ui_lib, $(TARGET_RECOVERY_UI_LIB)) |
| endif |
| |
| # For Sanitizers |
| $(call soong_config_set_bool,ANDROID,ASAN_ENABLED,$(if $(filter address,$(SANITIZE_TARGET)),true,false)) |
| $(call soong_config_set_bool,ANDROID,HWASAN_ENABLED,$(if $(filter hwaddress,$(SANITIZE_TARGET)),true,false)) |
| $(call soong_config_set_bool,ANDROID,SANITIZE_TARGET_SYSTEM_ENABLED,$(if $(filter true,$(SANITIZE_TARGET_SYSTEM)),true,false)) |
| |
| # For init.environ.rc |
| $(call soong_config_set_bool,ANDROID,GCOV_COVERAGE,$(NATIVE_COVERAGE)) |
| $(call soong_config_set_bool,ANDROID,CLANG_COVERAGE,$(CLANG_COVERAGE)) |
| $(call soong_config_set,ANDROID,SCUDO_ALLOCATION_RING_BUFFER_SIZE,$(PRODUCT_SCUDO_ALLOCATION_RING_BUFFER_SIZE)) |
| |
| $(call soong_config_set_bool,ANDROID,EMMA_INSTRUMENT,$(if $(filter true,$(EMMA_INSTRUMENT)),true,false)) |
| |
| # PRODUCT_PRECOMPILED_SEPOLICY defaults to true. Explicitly check if it's "false" or not. |
| $(call soong_config_set_bool,ANDROID,PRODUCT_PRECOMPILED_SEPOLICY,$(if $(filter false,$(PRODUCT_PRECOMPILED_SEPOLICY)),false,true)) |
| |
| # For art modules |
| $(call soong_config_set_bool,art_module,host_prefer_32_bit,$(if $(filter true,$(HOST_PREFER_32_BIT)),true,false)) |
| ifdef ART_DEBUG_OPT_FLAG |
| $(call soong_config_set,art_module,art_debug_opt_flag,$(ART_DEBUG_OPT_FLAG)) |
| endif |
| # The default value of ART_BUILD_HOST_DEBUG is true |
| $(call soong_config_set_bool,art_module,art_build_host_debug,$(if $(filter false,$(ART_BUILD_HOST_DEBUG)),false,true)) |
| |
| # For chre |
| $(call soong_config_set_bool,chre,chre_daemon_lpma_enabled,$(if $(filter true,$(CHRE_DAEMON_LPMA_ENABLED)),true,false)) |
| $(call soong_config_set_bool,chre,chre_dedicated_transport_channel_enabled,$(if $(filter true,$(CHRE_DEDICATED_TRANSPORT_CHANNEL_ENABLED)),true,false)) |
| $(call soong_config_set_bool,chre,chre_log_atom_extension_enabled,$(if $(filter true,$(CHRE_LOG_ATOM_EXTENSION_ENABLED)),true,false)) |
| $(call soong_config_set_bool,chre,building_vendor_image,$(if $(filter true,$(BUILDING_VENDOR_IMAGE)),true,false)) |
| $(call soong_config_set_bool,chre,chre_usf_daemon_enabled,$(if $(filter true,$(CHRE_USF_DAEMON_ENABLED)),true,false)) |
| |
| ifdef TARGET_BOARD_AUTO |
| $(call add_soong_config_var_value, ANDROID, target_board_auto, $(TARGET_BOARD_AUTO)) |
| endif |
| |
| # Apex build mode variables |
| ifdef APEX_BUILD_FOR_PRE_S_DEVICES |
| $(call add_soong_config_var_value,ANDROID,library_linking_strategy,prefer_static) |
| else |
| ifdef KEEP_APEX_INHERIT |
| $(call add_soong_config_var_value,ANDROID,library_linking_strategy,prefer_static) |
| endif |
| endif |
| |
| # Enable SystemUI optimizations by default unless explicitly set. |
| SYSTEMUI_OPTIMIZE_JAVA ?= true |
| $(call add_soong_config_var,ANDROID,SYSTEMUI_OPTIMIZE_JAVA) |
| |
| # Flag for enabling compose for Launcher. |
| $(call soong_config_set,ANDROID,release_enable_compose_in_launcher,$(RELEASE_ENABLE_COMPOSE_IN_LAUNCHER)) |
| |
| ifdef PRODUCT_AVF_ENABLED |
| $(call add_soong_config_var_value,ANDROID,avf_enabled,$(PRODUCT_AVF_ENABLED)) |
| endif |
| |
| # Enable AVF remote attestation according to the flag value if PRODUCT_AVF_REMOTE_ATTESTATION_DISABLED is not |
| # set to true explicitly. |
| ifneq (true,$(PRODUCT_AVF_REMOTE_ATTESTATION_DISABLED)) |
| $(call add_soong_config_var_value,ANDROID,avf_remote_attestation_enabled,$(RELEASE_AVF_ENABLE_REMOTE_ATTESTATION)) |
| endif |
| |
| ifdef PRODUCT_AVF_MICRODROID_GUEST_GKI_VERSION |
| $(call add_soong_config_var_value,ANDROID,avf_microdroid_guest_gki_version,$(PRODUCT_AVF_MICRODROID_GUEST_GKI_VERSION)) |
| endif |
| |
| ifdef TARGET_BOOTS_16K |
| $(call soong_config_set_bool,ANDROID,target_boots_16k,$(filter true,$(TARGET_BOOTS_16K))) |
| endif |
| |
| ifdef PRODUCT_CGROUP_V2_SYS_APP_ISOLATION_ENABLED |
| $(call add_soong_config_var_value,ANDROID,cgroup_v2_sys_app_isolation,$(PRODUCT_CGROUP_V2_SYS_APP_ISOLATION_ENABLED)) |
| else |
| $(call add_soong_config_var_value,ANDROID,cgroup_v2_sys_app_isolation,true) |
| endif |
| |
| $(call add_soong_config_var_value,ANDROID,release_avf_allow_preinstalled_apps,$(RELEASE_AVF_ALLOW_PREINSTALLED_APPS)) |
| $(call add_soong_config_var_value,ANDROID,release_avf_enable_device_assignment,$(RELEASE_AVF_ENABLE_DEVICE_ASSIGNMENT)) |
| $(call add_soong_config_var_value,ANDROID,release_avf_enable_dice_changes,$(RELEASE_AVF_ENABLE_DICE_CHANGES)) |
| $(call add_soong_config_var_value,ANDROID,release_avf_enable_early_vm,$(RELEASE_AVF_ENABLE_EARLY_VM)) |
| $(call add_soong_config_var_value,ANDROID,release_avf_enable_llpvm_changes,$(RELEASE_AVF_ENABLE_LLPVM_CHANGES)) |
| $(call add_soong_config_var_value,ANDROID,release_avf_enable_multi_tenant_microdroid_vm,$(RELEASE_AVF_ENABLE_MULTI_TENANT_MICRODROID_VM)) |
| $(call add_soong_config_var_value,ANDROID,release_avf_enable_network,$(RELEASE_AVF_ENABLE_NETWORK)) |
| # TODO(b/341292601): This flag is needed until the V release. We with clean it up after V together |
| # with most of the release_avf_ flags here. |
| $(call add_soong_config_var_value,ANDROID,release_avf_enable_remote_attestation,$(RELEASE_AVF_ENABLE_REMOTE_ATTESTATION)) |
| $(call add_soong_config_var_value,ANDROID,release_avf_enable_vendor_modules,$(RELEASE_AVF_ENABLE_VENDOR_MODULES)) |
| $(call add_soong_config_var_value,ANDROID,release_avf_enable_virt_cpufreq,$(RELEASE_AVF_ENABLE_VIRT_CPUFREQ)) |
| $(call add_soong_config_var_value,ANDROID,release_avf_microdroid_kernel_version,$(RELEASE_AVF_MICRODROID_KERNEL_VERSION)) |
| $(call add_soong_config_var_value,ANDROID,release_avf_support_custom_vm_with_paravirtualized_devices,$(RELEASE_AVF_SUPPORT_CUSTOM_VM_WITH_PARAVIRTUALIZED_DEVICES)) |
| |
| $(call add_soong_config_var_value,ANDROID,release_binder_death_recipient_weak_from_jni,$(RELEASE_BINDER_DEATH_RECIPIENT_WEAK_FROM_JNI)) |
| |
| $(call add_soong_config_var_value,ANDROID,release_libpower_no_lock_binder_txn,$(RELEASE_LIBPOWER_NO_LOCK_BINDER_TXN)) |
| |
| $(call add_soong_config_var_value,ANDROID,release_package_libandroid_runtime_punch_holes,$(RELEASE_PACKAGE_LIBANDROID_RUNTIME_PUNCH_HOLES)) |
| |
| $(call add_soong_config_var_value,ANDROID,release_selinux_data_data_ignore,$(RELEASE_SELINUX_DATA_DATA_IGNORE)) |
| ifneq (,$(filter eng userdebug,$(TARGET_BUILD_VARIANT))) |
| # write appcompat system properties on userdebug and eng builds |
| $(call add_soong_config_var_value,ANDROID,release_write_appcompat_override_system_properties,true) |
| endif |
| |
| # Enable system_server optimizations by default unless explicitly set or if |
| # there may be dependent runtime jars. |
| # TODO(b/240588226): Remove the off-by-default exceptions after handling |
| # system_server jars automatically w/ R8. |
| ifeq (true,$(PRODUCT_BROKEN_SUBOPTIMAL_ORDER_OF_SYSTEM_SERVER_JARS)) |
| # If system_server jar ordering is broken, don't assume services.jar can be |
| # safely optimized in isolation, as there may be dependent jars. |
| SYSTEM_OPTIMIZE_JAVA ?= false |
| else ifneq (platform:services,$(lastword $(PRODUCT_SYSTEM_SERVER_JARS))) |
| # If services is not the final jar in the dependency ordering, don't assume |
| # it can be safely optimized in isolation, as there may be dependent jars. |
| SYSTEM_OPTIMIZE_JAVA ?= false |
| else |
| SYSTEM_OPTIMIZE_JAVA ?= true |
| endif |
| |
| ifeq (true,$(FULL_SYSTEM_OPTIMIZE_JAVA)) |
| SYSTEM_OPTIMIZE_JAVA := true |
| endif |
| |
| $(call add_soong_config_var,ANDROID,SYSTEM_OPTIMIZE_JAVA) |
| $(call add_soong_config_var,ANDROID,FULL_SYSTEM_OPTIMIZE_JAVA) |
| |
| # TODO(b/319697968): Remove this build flag support when metalava fully supports flagged api |
| $(call soong_config_set,ANDROID,release_hidden_api_exportable_stubs,$(RELEASE_HIDDEN_API_EXPORTABLE_STUBS)) |
| |
| # Check for SupplementalApi module. |
| ifeq ($(wildcard packages/modules/SupplementalApi),) |
| $(call add_soong_config_var_value,ANDROID,include_nonpublic_framework_api,false) |
| else |
| $(call add_soong_config_var_value,ANDROID,include_nonpublic_framework_api,true) |
| endif |
| |
| # Add nfc build flag to soong |
| ifneq ($(RELEASE_PACKAGE_NFC_STACK),NfcNci) |
| $(call soong_config_set,bootclasspath,nfc_apex_bootclasspath_fragment,true) |
| endif |
| |
| # Add uwb build flag to soong |
| $(call soong_config_set,bootclasspath,release_ranging_stack,$(RELEASE_RANGING_STACK)) |
| |
| # Add crashrecovery build flag to soong |
| $(call soong_config_set,ANDROID,release_crashrecovery_module,$(RELEASE_CRASHRECOVERY_MODULE)) |
| # Add crashrecovery file move flags to soong, for both platform and module |
| ifeq (true,$(RELEASE_CRASHRECOVERY_FILE_MOVE)) |
| $(call soong_config_set,ANDROID,crashrecovery_files_in_module,true) |
| $(call soong_config_set,ANDROID,crashrecovery_files_in_platform,false) |
| else |
| $(call soong_config_set,ANDROID,crashrecovery_files_in_module,false) |
| $(call soong_config_set,ANDROID,crashrecovery_files_in_platform,true) |
| endif |
| # Required as platform_bootclasspath is using this namespace |
| $(call soong_config_set,bootclasspath,release_crashrecovery_module,$(RELEASE_CRASHRECOVERY_MODULE)) |
| |
| # Add uprobestats build flag to soong |
| $(call soong_config_set,ANDROID,release_uprobestats_module,$(RELEASE_UPROBESTATS_MODULE)) |
| # Add uprobestats file move flags to soong, for both platform and module |
| ifeq (true,$(RELEASE_UPROBESTATS_FILE_MOVE)) |
| $(call soong_config_set,ANDROID,uprobestats_files_in_module,true) |
| $(call soong_config_set,ANDROID,uprobestats_files_in_platform,false) |
| else |
| $(call soong_config_set,ANDROID,uprobestats_files_in_module,false) |
| $(call soong_config_set,ANDROID,uprobestats_files_in_platform,true) |
| endif |
| |
| # 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)) |
| |
| # Move VCN from platform to the Tethering module; used by both platform and module |
| $(call soong_config_set,ANDROID,is_vcn_in_mainline,$(RELEASE_MOVE_VCN_TO_MAINLINE)) |
| |
| # Add perf-setup build flag to soong |
| # Note: BOARD_PERFSETUP_SCRIPT location must be under platform_testing/scripts/perf-setup/. |
| ifdef BOARD_PERFSETUP_SCRIPT |
| $(call soong_config_set,perf,board_perfsetup_script,$(notdir $(BOARD_PERFSETUP_SCRIPT))) |
| endif |
| |
| # Add target_use_pan_display flag for hardware/libhardware:gralloc.default |
| $(call soong_config_set_bool,gralloc,target_use_pan_display,$(if $(filter true,$(TARGET_USE_PAN_DISPLAY)),true,false)) |
| |
| # Add use_camera_v4l2_hal flag for hardware/libhardware/modules/camera/3_4:camera.v4l2 |
| $(call soong_config_set_bool,camera,use_camera_v4l2_hal,$(if $(filter true,$(USE_CAMERA_V4L2_HAL)),true,false)) |
| |
| # Add audioserver_multilib flag for hardware/interfaces/soundtrigger/2.0/default:[email protected] |
| ifneq ($(strip $(AUDIOSERVER_MULTILIB)),) |
| $(call soong_config_set,soundtrigger,audioserver_multilib,$(AUDIOSERVER_MULTILIB)) |
| endif |
| |
| # 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 |
| |
| # Export target_board_platform to soong for hardware/google/graphics/common/libmemtrack:memtrack.$(TARGET_BOARD_PLATFORM) |
| $(call soong_config_set,ANDROID,target_board_platform,$(TARGET_BOARD_PLATFORM)) |
| |
| # Export board_uses_scaler_m2m1shot and board_uses_align_restriction to soong for hardware/google/graphics/common/libscaler:libexynosscaler |
| $(call soong_config_set_bool,google_graphics,board_uses_scaler_m2m1shot,$(if $(filter true,$(BOARD_USES_SCALER_M2M1SHOT)),true,false)) |
| $(call soong_config_set_bool,google_graphics,board_uses_align_restriction,$(if $(filter true,$(BOARD_USES_ALIGN_RESTRICTION)),true,false)) |
| |
| # Export related variables to soong for hardware/google/graphics/common/libacryl:libacryl |
| ifdef BOARD_LIBACRYL_DEFAULT_COMPOSITOR |
| $(call soong_config_set,acryl,libacryl_default_compositor,$(BOARD_LIBACRYL_DEFAULT_COMPOSITOR)) |
| endif |
| ifdef BOARD_LIBACRYL_DEFAULT_SCALER |
| $(call soong_config_set,acryl,libacryl_default_scaler,$(BOARD_LIBACRYL_DEFAULT_SCALER)) |
| endif |
| ifdef BOARD_LIBACRYL_DEFAULT_BLTER |
| $(call soong_config_set,acryl,libacryl_default_blter,$(BOARD_LIBACRYL_DEFAULT_BLTER)) |
| endif |
| ifdef BOARD_LIBACRYL_G2D_HDR_PLUGIN |
| #BOARD_LIBACRYL_G2D_HDR_PLUGIN is set in each board config |
| $(call soong_config_set_bool,acryl,libacryl_use_g2d_hdr_plugin,true) |
| endif |
| |
| # Export related variables to soong for hardware/google/graphics/common/BoardConfigCFlags.mk |
| $(call soong_config_set_bool,google_graphics,hwc_no_support_skip_validate,$(if $(filter true,$(HWC_NO_SUPPORT_SKIP_VALIDATE)),true,false)) |
| $(call soong_config_set_bool,google_graphics,hwc_support_color_transform,$(if $(filter true,$(HWC_SUPPORT_COLOR_TRANSFORM)),true,false)) |
| $(call soong_config_set_bool,google_graphics,hwc_support_render_intent,$(if $(filter true,$(HWC_SUPPORT_RENDER_INTENT)),true,false)) |
| $(call soong_config_set_bool,google_graphics,board_uses_virtual_display,$(if $(filter true,$(BOARD_USES_VIRTUAL_DISPLAY)),true,false)) |
| $(call soong_config_set_bool,google_graphics,board_uses_dt,$(if $(filter true,$(BOARD_USES_DT)),true,false)) |
| $(call soong_config_set_bool,google_graphics,board_uses_decon_64bit_address,$(if $(filter true,$(BOARD_USES_DECON_64BIT_ADDRESS)),true,false)) |
| $(call soong_config_set_bool,google_graphics,board_uses_hdrui_gles_conversion,$(if $(filter true,$(BOARD_USES_HDRUI_GLES_CONVERSION)),true,false)) |
| $(call soong_config_set_bool,google_graphics,uses_idisplay_intf_sec,$(if $(filter true,$(USES_IDISPLAY_INTF_SEC)),true,false)) |
| |
| # Variables for fs_config |
| $(call soong_config_set_bool,fs_config,vendor,$(if $(BOARD_USES_VENDORIMAGE)$(BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE),true,false)) |
| $(call soong_config_set_bool,fs_config,oem,$(if $(BOARD_USES_OEMIMAGE)$(BOARD_OEMIMAGE_FILE_SYSTEM_TYPE),true,false)) |
| $(call soong_config_set_bool,fs_config,odm,$(if $(BOARD_USES_ODMIMAGE)$(BOARD_ODMIMAGE_FILE_SYSTEM_TYPE),true,false)) |
| $(call soong_config_set_bool,fs_config,vendor_dlkm,$(if $(BOARD_USES_VENDOR_DLKMIMAGE)$(BOARD_VENDOR_DLKMIMAGE_FILE_SYSTEM_TYPE),true,false)) |
| $(call soong_config_set_bool,fs_config,odm_dlkm,$(if $(BOARD_USES_ODM_DLKMIMAGE)$(BOARD_ODM_DLKMIMAGE_FILE_SYSTEM_TYPE),true,false)) |
| $(call soong_config_set_bool,fs_config,system_dlkm,$(if $(BOARD_USES_SYSTEM_DLKMIMAGE)$(BOARD_SYSTEM_DLKMIMAGE_FILE_SYSTEM_TYPE),true,false)) |
| |
| # Variables for telephony |
| $(call soong_config_set_bool,telephony,sec_cp_secure_boot,$(if $(filter true,$(SEC_CP_SECURE_BOOT)),true,false)) |
| $(call soong_config_set_bool,telephony,cbd_protocol_sit,$(if $(filter true,$(CBD_PROTOCOL_SIT)),true,false)) |
| $(call soong_config_set_bool,telephony,use_radioexternal_hal_aidl,$(if $(filter true,$(USE_RADIOEXTERNAL_HAL_AIDL)),true,false)) |
| |
| # Variables for hwcomposer.$(TARGET_BOARD_PLATFORM) |
| $(call soong_config_set_bool,google_graphics,board_uses_hwc_services,$(if $(filter true,$(BOARD_USES_HWC_SERVICES)),true,false)) |
| |
| # Variables for controlling android.hardware.composer.hwc3-service.pixel |
| $(call soong_config_set,google_graphics,board_hwc_version,$(BOARD_HWC_VERSION)) |
| |
| # Flag ExcludeExtractApk is to support "extract_apk" property for the following conditions. |
| ifneq ($(WITH_DEXPREOPT),true) |
| $(call soong_config_set_bool,PrebuiltGmsCore,ExcludeExtractApk,true) |
| endif |
| ifeq ($(DONT_DEXPREOPT_PREBUILTS),true) |
| $(call soong_config_set_bool,PrebuiltGmsCore,ExcludeExtractApk,true) |
| endif |
| ifeq ($(WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY),true) |
| $(call soong_config_set_bool,PrebuiltGmsCore,ExcludeExtractApk,true) |
| endif |
| |
| # Variables for extra branches |
| # TODO(b/383238397): Use bootstrap_go_package to enable extra flags. |
| -include vendor/google/build/extra_soong_config_vars.mk |