Dan Willemsen | 04f53ed | 2016-11-09 17:22:15 -0800 | [diff] [blame] | 1 | SOONG_MAKEVARS_MK := $(SOONG_OUT_DIR)/make_vars-$(TARGET_PRODUCT).mk |
| 2 | SOONG_VARIABLES := $(SOONG_OUT_DIR)/soong.variables |
| 3 | SOONG_ANDROID_MK := $(SOONG_OUT_DIR)/Android-$(TARGET_PRODUCT).mk |
| 4 | |
| 5 | BINDER32BIT := |
| 6 | ifneq ($(TARGET_USES_64_BIT_BINDER),true) |
| 7 | ifneq ($(TARGET_IS_64_BIT),true) |
| 8 | BINDER32BIT := true |
| 9 | endif |
| 10 | endif |
| 11 | |
Colin Cross | 6db5b0e | 2018-11-16 21:26:33 -0800 | [diff] [blame] | 12 | include $(BUILD_SYSTEM)/dex_preopt_config.mk |
Dan Willemsen | 7ad0305 | 2017-10-12 15:26:29 -0700 | [diff] [blame] | 13 | |
Colin Cross | 6db5b0e | 2018-11-16 21:26:33 -0800 | [diff] [blame] | 14 | ifeq ($(WRITE_SOONG_VARIABLES),true) |
Colin Cross | b8901d7 | 2018-12-14 11:49:49 -0800 | [diff] [blame] | 15 | |
Dan Willemsen | 04f53ed | 2016-11-09 17:22:15 -0800 | [diff] [blame] | 16 | # Create soong.variables with copies of makefile settings. Runs every build, |
| 17 | # but only updates soong.variables if it changes |
Dan Willemsen | 7ad0305 | 2017-10-12 15:26:29 -0700 | [diff] [blame] | 18 | $(shell mkdir -p $(dir $(SOONG_VARIABLES))) |
Colin Cross | ee8b102 | 2018-11-10 21:48:59 -0800 | [diff] [blame] | 19 | $(call json_start) |
Dan Willemsen | 7ad0305 | 2017-10-12 15:26:29 -0700 | [diff] [blame] | 20 | |
| 21 | $(call add_json_str, Make_suffix, -$(TARGET_PRODUCT)) |
| 22 | |
Nan Zhang | cf9d503 | 2018-01-10 11:40:14 -0800 | [diff] [blame] | 23 | $(call add_json_str, BuildId, $(BUILD_ID)) |
Colin Cross | d68a884 | 2020-02-21 17:29:37 -0800 | [diff] [blame] | 24 | $(call add_json_str, BuildNumberFile, build_number.txt) |
Nan Zhang | cf9d503 | 2018-01-10 11:40:14 -0800 | [diff] [blame] | 25 | |
Colin Cross | 34aba6c | 2018-05-09 11:10:15 -0700 | [diff] [blame] | 26 | $(call add_json_str, Platform_version_name, $(PLATFORM_VERSION)) |
Dan Willemsen | 7ad0305 | 2017-10-12 15:26:29 -0700 | [diff] [blame] | 27 | $(call add_json_val, Platform_sdk_version, $(PLATFORM_SDK_VERSION)) |
Colin Cross | f6d3fff | 2018-04-18 12:40:16 -0700 | [diff] [blame] | 28 | $(call add_json_str, Platform_sdk_codename, $(PLATFORM_VERSION_CODENAME)) |
| 29 | $(call add_json_bool, Platform_sdk_final, $(filter REL,$(PLATFORM_VERSION_CODENAME))) |
Dan Willemsen | 7ad0305 | 2017-10-12 15:26:29 -0700 | [diff] [blame] | 30 | $(call add_json_csv, Platform_version_active_codenames, $(PLATFORM_VERSION_ALL_CODENAMES)) |
Colin Cross | e257b26 | 2019-04-02 22:57:43 -0700 | [diff] [blame] | 31 | $(call add_json_str, Platform_security_patch, $(PLATFORM_SECURITY_PATCH)) |
| 32 | $(call add_json_str, Platform_preview_sdk_version, $(PLATFORM_PREVIEW_SDK_VERSION)) |
| 33 | $(call add_json_str, Platform_base_os, $(PLATFORM_BASE_OS)) |
| 34 | |
| 35 | $(call add_json_str, Platform_min_supported_target_sdk_version, $(PLATFORM_MIN_SUPPORTED_TARGET_SDK_VERSION)) |
Dan Willemsen | 7ad0305 | 2017-10-12 15:26:29 -0700 | [diff] [blame] | 36 | |
| 37 | $(call add_json_bool, Allow_missing_dependencies, $(ALLOW_MISSING_DEPENDENCIES)) |
Martin Stjernholm | 7a430fd | 2020-06-04 15:16:39 +0100 | [diff] [blame] | 38 | $(call add_json_bool, Unbundled_build, $(TARGET_BUILD_UNBUNDLED)) |
Martin Stjernholm | 74920e6 | 2020-06-17 01:30:16 +0100 | [diff] [blame] | 39 | $(call add_json_bool, Unbundled_build_apps, $(TARGET_BUILD_APPS)) |
Jeongik Cha | d05b57a | 2020-07-08 18:10:38 +0900 | [diff] [blame] | 40 | $(call add_json_bool, Always_use_prebuilt_sdks, $(TARGET_BUILD_USE_PREBUILT_SDKS)) |
Paul Duffin | bbd4fae | 2020-10-28 18:44:52 +0000 | [diff] [blame] | 41 | $(call add_json_bool, Skip_boot_jars_check, $(SKIP_BOOT_JARS_CHECK)) |
Dan Willemsen | 7ad0305 | 2017-10-12 15:26:29 -0700 | [diff] [blame] | 42 | |
| 43 | $(call add_json_bool, Debuggable, $(filter userdebug eng,$(TARGET_BUILD_VARIANT))) |
| 44 | $(call add_json_bool, Eng, $(filter eng,$(TARGET_BUILD_VARIANT))) |
| 45 | |
| 46 | $(call add_json_str, DeviceName, $(TARGET_DEVICE)) |
| 47 | $(call add_json_str, DeviceArch, $(TARGET_ARCH)) |
| 48 | $(call add_json_str, DeviceArchVariant, $(TARGET_ARCH_VARIANT)) |
| 49 | $(call add_json_str, DeviceCpuVariant, $(TARGET_CPU_VARIANT)) |
| 50 | $(call add_json_list, DeviceAbi, $(TARGET_CPU_ABI) $(TARGET_CPU_ABI2)) |
| 51 | |
| 52 | $(call add_json_str, DeviceSecondaryArch, $(TARGET_2ND_ARCH)) |
| 53 | $(call add_json_str, DeviceSecondaryArchVariant, $(TARGET_2ND_ARCH_VARIANT)) |
| 54 | $(call add_json_str, DeviceSecondaryCpuVariant, $(TARGET_2ND_CPU_VARIANT)) |
| 55 | $(call add_json_list, DeviceSecondaryAbi, $(TARGET_2ND_CPU_ABI) $(TARGET_2ND_CPU_ABI2)) |
| 56 | |
Anton Hansson | 5e05b8e | 2020-11-27 10:35:17 +0000 | [diff] [blame] | 57 | $(call add_json_bool, Aml_abis, $(if $(filter mainline_sdk,$(TARGET_ARCH_SUITE)),true)) |
| 58 | $(call add_json_bool, Ndk_abis, $(if $(filter ndk, $(TARGET_ARCH_SUITE)),true)) |
| 59 | |
dimitry | 3e63052 | 2019-04-02 10:50:11 +0200 | [diff] [blame] | 60 | $(call add_json_str, NativeBridgeArch, $(TARGET_NATIVE_BRIDGE_ARCH)) |
| 61 | $(call add_json_str, NativeBridgeArchVariant, $(TARGET_NATIVE_BRIDGE_ARCH_VARIANT)) |
| 62 | $(call add_json_str, NativeBridgeCpuVariant, $(TARGET_NATIVE_BRIDGE_CPU_VARIANT)) |
| 63 | $(call add_json_list, NativeBridgeAbi, $(TARGET_NATIVE_BRIDGE_ABI)) |
dimitry | fb2449f | 2019-07-10 11:08:58 +0200 | [diff] [blame] | 64 | $(call add_json_str, NativeBridgeRelativePath, $(TARGET_NATIVE_BRIDGE_RELATIVE_PATH)) |
dimitry | 3e63052 | 2019-04-02 10:50:11 +0200 | [diff] [blame] | 65 | |
| 66 | $(call add_json_str, NativeBridgeSecondaryArch, $(TARGET_NATIVE_BRIDGE_2ND_ARCH)) |
| 67 | $(call add_json_str, NativeBridgeSecondaryArchVariant, $(TARGET_NATIVE_BRIDGE_2ND_ARCH_VARIANT)) |
| 68 | $(call add_json_str, NativeBridgeSecondaryCpuVariant, $(TARGET_NATIVE_BRIDGE_2ND_CPU_VARIANT)) |
| 69 | $(call add_json_list, NativeBridgeSecondaryAbi, $(TARGET_NATIVE_BRIDGE_2ND_ABI)) |
dimitry | fb2449f | 2019-07-10 11:08:58 +0200 | [diff] [blame] | 70 | $(call add_json_str, NativeBridgeSecondaryRelativePath, $(TARGET_NATIVE_BRIDGE_2ND_RELATIVE_PATH)) |
dimitry | 3e63052 | 2019-04-02 10:50:11 +0200 | [diff] [blame] | 71 | |
Dan Willemsen | 7ad0305 | 2017-10-12 15:26:29 -0700 | [diff] [blame] | 72 | $(call add_json_str, HostArch, $(HOST_ARCH)) |
| 73 | $(call add_json_str, HostSecondaryArch, $(HOST_2ND_ARCH)) |
| 74 | $(call add_json_bool, HostStaticBinaries, $(BUILD_HOST_static)) |
| 75 | |
| 76 | $(call add_json_str, CrossHost, $(HOST_CROSS_OS)) |
| 77 | $(call add_json_str, CrossHostArch, $(HOST_CROSS_ARCH)) |
| 78 | $(call add_json_str, CrossHostSecondaryArch, $(HOST_CROSS_2ND_ARCH)) |
| 79 | |
Anton Hansson | dc01712 | 2019-03-18 17:59:27 +0000 | [diff] [blame] | 80 | $(call add_json_list, DeviceResourceOverlays, $(DEVICE_PACKAGE_OVERLAYS)) |
| 81 | $(call add_json_list, ProductResourceOverlays, $(PRODUCT_PACKAGE_OVERLAYS)) |
Colin Cross | c7bd540 | 2017-10-30 17:31:44 -0700 | [diff] [blame] | 82 | $(call add_json_list, EnforceRROTargets, $(PRODUCT_ENFORCE_RRO_TARGETS)) |
| 83 | $(call add_json_list, EnforceRROExcludedOverlays, $(PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS)) |
| 84 | |
| 85 | $(call add_json_str, AAPTCharacteristics, $(TARGET_AAPT_CHARACTERISTICS)) |
| 86 | $(call add_json_list, AAPTConfig, $(PRODUCT_AAPT_CONFIG)) |
| 87 | $(call add_json_str, AAPTPreferredConfig, $(PRODUCT_AAPT_PREF_CONFIG)) |
| 88 | $(call add_json_list, AAPTPrebuiltDPI, $(PRODUCT_AAPT_PREBUILT_DPI)) |
| 89 | |
Colin Cross | 0e10ff5 | 2017-12-01 17:13:56 -0800 | [diff] [blame] | 90 | $(call add_json_str, DefaultAppCertificate, $(PRODUCT_DEFAULT_DEV_CERTIFICATE)) |
| 91 | |
Colin Cross | c7bd540 | 2017-10-30 17:31:44 -0700 | [diff] [blame] | 92 | $(call add_json_str, AppsDefaultVersionName, $(APPS_DEFAULT_VERSION_NAME)) |
| 93 | |
Dan Willemsen | 7ad0305 | 2017-10-12 15:26:29 -0700 | [diff] [blame] | 94 | $(call add_json_list, SanitizeHost, $(SANITIZE_HOST)) |
| 95 | $(call add_json_list, SanitizeDevice, $(SANITIZE_TARGET)) |
| 96 | $(call add_json_list, SanitizeDeviceDiag, $(SANITIZE_TARGET_DIAG)) |
| 97 | $(call add_json_list, SanitizeDeviceArch, $(SANITIZE_TARGET_ARCH)) |
| 98 | |
| 99 | $(call add_json_bool, Safestack, $(filter true,$(USE_SAFESTACK))) |
| 100 | $(call add_json_bool, EnableCFI, $(call invert_bool,$(filter false,$(ENABLE_CFI)))) |
Vishwath Mohan | 23b2d2e | 2017-10-31 02:25:16 -0700 | [diff] [blame] | 101 | $(call add_json_list, CFIExcludePaths, $(CFI_EXCLUDE_PATHS) $(PRODUCT_CFI_EXCLUDE_PATHS)) |
| 102 | $(call add_json_list, CFIIncludePaths, $(CFI_INCLUDE_PATHS) $(PRODUCT_CFI_INCLUDE_PATHS)) |
Dan Willemsen | 7ad0305 | 2017-10-12 15:26:29 -0700 | [diff] [blame] | 103 | $(call add_json_list, IntegerOverflowExcludePaths, $(INTEGER_OVERFLOW_EXCLUDE_PATHS) $(PRODUCT_INTEGER_OVERFLOW_EXCLUDE_PATHS)) |
| 104 | |
Evgenii Stepanov | 10b4d0a | 2021-01-05 16:36:56 -0800 | [diff] [blame] | 105 | $(call add_json_list, MemtagHeapExcludePaths, $(MEMTAG_HEAP_EXCLUDE_PATHS) $(PRODUCT_MEMTAG_HEAP_EXCLUDE_PATHS)) |
| 106 | $(call add_json_list, MemtagHeapAsyncIncludePaths, $(MEMTAG_HEAP_ASYNC_INCLUDE_PATHS) $(PRODUCT_MEMTAG_HEAP_ASYNC_INCLUDE_PATHS)) |
| 107 | $(call add_json_list, MemtagHeapSyncIncludePaths, $(MEMTAG_HEAP_SYNC_INCLUDE_PATHS) $(PRODUCT_MEMTAG_HEAP_SYNC_INCLUDE_PATHS)) |
| 108 | |
Kostya Kortchinsky | 0273240 | 2019-02-01 09:06:42 -0800 | [diff] [blame] | 109 | $(call add_json_bool, DisableScudo, $(filter true,$(PRODUCT_DISABLE_SCUDO))) |
| 110 | |
Dan Willemsen | 7ad0305 | 2017-10-12 15:26:29 -0700 | [diff] [blame] | 111 | $(call add_json_bool, ClangTidy, $(filter 1 true,$(WITH_TIDY))) |
| 112 | $(call add_json_str, TidyChecks, $(WITH_TIDY_CHECKS)) |
| 113 | |
Roland Levillain | 17541b9 | 2020-06-09 13:04:27 +0100 | [diff] [blame] | 114 | $(call add_json_list, JavaCoveragePaths, $(JAVA_COVERAGE_PATHS)) |
| 115 | $(call add_json_list, JavaCoverageExcludePaths, $(JAVA_COVERAGE_EXCLUDE_PATHS)) |
| 116 | |
Colin Cross | 74f121d | 2020-06-16 17:49:08 -0700 | [diff] [blame] | 117 | $(call add_json_bool, GcovCoverage, $(filter true,$(NATIVE_COVERAGE))) |
Oliver Nguyen | f0fdf80 | 2019-12-06 15:21:41 -0800 | [diff] [blame] | 118 | $(call add_json_bool, ClangCoverage, $(filter true,$(CLANG_COVERAGE))) |
Roland Levillain | cd80a6a | 2020-07-07 15:19:44 +0100 | [diff] [blame] | 119 | $(call add_json_list, NativeCoveragePaths, $(NATIVE_COVERAGE_PATHS)) |
| 120 | $(call add_json_list, NativeCoverageExcludePaths, $(NATIVE_COVERAGE_EXCLUDE_PATHS)) |
Dan Willemsen | 7ad0305 | 2017-10-12 15:26:29 -0700 | [diff] [blame] | 121 | |
Yi Kong | bcbcd65 | 2020-03-20 14:27:28 +0800 | [diff] [blame] | 122 | $(call add_json_bool, SamplingPGO, $(filter true,$(SAMPLING_PGO))) |
| 123 | |
Dan Willemsen | 7ad0305 | 2017-10-12 15:26:29 -0700 | [diff] [blame] | 124 | $(call add_json_bool, ArtUseReadBarrier, $(call invert_bool,$(filter false,$(PRODUCT_ART_USE_READ_BARRIER)))) |
| 125 | $(call add_json_bool, Binder32bit, $(BINDER32BIT)) |
Dan Willemsen | 7ad0305 | 2017-10-12 15:26:29 -0700 | [diff] [blame] | 126 | $(call add_json_str, BtConfigIncludeDir, $(BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR)) |
Dan Willemsen | e6bd1d2 | 2020-04-30 21:18:58 -0700 | [diff] [blame] | 127 | $(call add_json_list, DeviceKernelHeaders, $(TARGET_DEVICE_KERNEL_HEADERS) $(TARGET_BOARD_KERNEL_HEADERS) $(TARGET_PRODUCT_KERNEL_HEADERS)) |
Dan Willemsen | 7ad0305 | 2017-10-12 15:26:29 -0700 | [diff] [blame] | 128 | $(call add_json_str, DeviceVndkVersion, $(BOARD_VNDK_VERSION)) |
Justin Yun | 2a233b3 | 2017-12-07 17:08:19 +0900 | [diff] [blame] | 129 | $(call add_json_str, Platform_vndk_version, $(PLATFORM_VNDK_VERSION)) |
Justin Yun | f19d840 | 2019-11-18 19:43:41 +0900 | [diff] [blame] | 130 | $(call add_json_str, ProductVndkVersion, $(PRODUCT_PRODUCT_VNDK_VERSION)) |
Justin Yun | 9272ef8 | 2017-11-17 16:09:17 +0900 | [diff] [blame] | 131 | $(call add_json_list, ExtraVndkVersions, $(PRODUCT_EXTRA_VNDK_VERSIONS)) |
Jiyong Park | 641b6cc | 2018-01-15 14:48:40 +0900 | [diff] [blame] | 132 | $(call add_json_list, DeviceSystemSdkVersions, $(BOARD_SYSTEMSDK_VERSIONS)) |
Jose Galmes | 5cd2547 | 2020-12-21 08:31:10 -0800 | [diff] [blame] | 133 | $(call add_json_str, RecoverySnapshotVersion, $(RECOVERY_SNAPSHOT_VERSION)) |
Jiyong Park | 641b6cc | 2018-01-15 14:48:40 +0900 | [diff] [blame] | 134 | $(call add_json_list, Platform_systemsdk_versions, $(PLATFORM_SYSTEMSDK_VERSIONS)) |
Dan Willemsen | 7ad0305 | 2017-10-12 15:26:29 -0700 | [diff] [blame] | 135 | $(call add_json_bool, Malloc_not_svelte, $(call invert_bool,$(filter true,$(MALLOC_SVELTE)))) |
Steven Moreland | 38c8824 | 2020-07-30 21:33:11 +0000 | [diff] [blame] | 136 | $(call add_json_bool, Malloc_zero_contents, $(call invert_bool,$(filter false,$(MALLOC_ZERO_CONTENTS)))) |
Evgenii Stepanov | 701cbae | 2020-04-29 14:58:34 -0700 | [diff] [blame] | 137 | $(call add_json_bool, Malloc_pattern_fill_contents, $(MALLOC_PATTERN_FILL_CONTENTS)) |
Dan Willemsen | 7ad0305 | 2017-10-12 15:26:29 -0700 | [diff] [blame] | 138 | $(call add_json_str, Override_rs_driver, $(OVERRIDE_RS_DRIVER)) |
Colin Cross | 6db5b0e | 2018-11-16 21:26:33 -0800 | [diff] [blame] | 139 | |
Colin Cross | 3aa2f8f | 2018-10-05 14:41:04 -0700 | [diff] [blame] | 140 | $(call add_json_bool, UncompressPrivAppDex, $(call invert_bool,$(filter true,$(DONT_UNCOMPRESS_PRIV_APPS_DEXS)))) |
| 141 | $(call add_json_list, ModulesLoadedByPrivilegedModules, $(PRODUCT_LOADED_BY_PRIVILEGED_MODULES)) |
Colin Cross | 6db5b0e | 2018-11-16 21:26:33 -0800 | [diff] [blame] | 142 | |
Vladimir Marko | e3a2db8 | 2018-12-21 15:53:17 +0000 | [diff] [blame] | 143 | $(call add_json_list, BootJars, $(PRODUCT_BOOT_JARS)) |
Ulya Trafimovich | 3610154 | 2020-02-10 15:27:45 +0000 | [diff] [blame] | 144 | $(call add_json_list, UpdatableBootJars, $(PRODUCT_UPDATABLE_BOOT_JARS)) |
Vladimir Marko | e3a2db8 | 2018-12-21 15:53:17 +0000 | [diff] [blame] | 145 | |
Vic Yang | 51512c5 | 2018-11-12 20:16:26 -0800 | [diff] [blame] | 146 | $(call add_json_bool, VndkUseCoreVariant, $(TARGET_VNDK_USE_CORE_VARIANT)) |
Inseob Kim | 316f77b | 2019-05-23 08:59:55 +0900 | [diff] [blame] | 147 | $(call add_json_bool, VndkSnapshotBuildArtifacts, $(VNDK_SNAPSHOT_BUILD_ARTIFACTS)) |
Vic Yang | 51512c5 | 2018-11-12 20:16:26 -0800 | [diff] [blame] | 148 | |
Inseob Kim | d8cc135 | 2021-01-06 23:10:41 +0900 | [diff] [blame] | 149 | $(call add_json_bool, DirectedVendorSnapshot, $(DIRECTED_VENDOR_SNAPSHOT)) |
| 150 | $(call add_json_map, VendorSnapshotModules) |
| 151 | $(foreach module,$(VENDOR_SNAPSHOT_MODULES),\ |
| 152 | $(call add_json_bool,$(module),true)) |
| 153 | $(call end_json_map) |
| 154 | |
Jose Galmes | 7185c6c | 2021-02-09 07:41:40 -0800 | [diff] [blame] | 155 | $(call add_json_bool, DirectedRecoverySnapshot, $(DIRECTED_RECOVERY_SNAPSHOT)) |
| 156 | $(call add_json_map, RecoverySnapshotModules) |
| 157 | $(foreach module,$(RECOVERY_SNAPSHOT_MODULES),\ |
| 158 | $(call add_json_bool,$(module),true)) |
| 159 | $(call end_json_map) |
| 160 | |
Steven Moreland | 0cf92b0 | 2017-12-13 14:07:13 -0800 | [diff] [blame] | 161 | $(call add_json_bool, Treble_linker_namespaces, $(filter true,$(PRODUCT_TREBLE_LINKER_NAMESPACES))) |
Steven Moreland | 0cf92b0 | 2017-12-13 14:07:13 -0800 | [diff] [blame] | 162 | $(call add_json_bool, Enforce_vintf_manifest, $(filter true,$(PRODUCT_ENFORCE_VINTF_MANIFEST))) |
| 163 | |
Logan Chien | 0e53d88 | 2018-11-06 17:32:40 +0800 | [diff] [blame] | 164 | $(call add_json_bool, Check_elf_files, $(filter true,$(PRODUCT_CHECK_ELF_FILES))) |
| 165 | |
Dan Willemsen | 7ad0305 | 2017-10-12 15:26:29 -0700 | [diff] [blame] | 166 | $(call add_json_bool, Uml, $(filter true,$(TARGET_USER_MODE_LINUX))) |
| 167 | $(call add_json_str, VendorPath, $(TARGET_COPY_OUT_VENDOR)) |
Jiyong Park | 9848be3 | 2017-12-18 10:34:26 +0900 | [diff] [blame] | 168 | $(call add_json_str, OdmPath, $(TARGET_COPY_OUT_ODM)) |
Yifan Hong | cfb917a | 2020-05-07 14:58:20 -0700 | [diff] [blame] | 169 | $(call add_json_str, VendorDlkmPath, $(TARGET_COPY_OUT_VENDOR_DLKM)) |
Yifan Hong | f496f1b | 2020-07-15 16:52:59 -0700 | [diff] [blame] | 170 | $(call add_json_str, OdmDlkmPath, $(TARGET_COPY_OUT_ODM_DLKM)) |
Jaekyun Seok | b7735d8 | 2017-11-27 17:04:47 +0900 | [diff] [blame] | 171 | $(call add_json_str, ProductPath, $(TARGET_COPY_OUT_PRODUCT)) |
Justin Yun | 6151e3f | 2019-06-25 15:58:13 +0900 | [diff] [blame] | 172 | $(call add_json_str, SystemExtPath, $(TARGET_COPY_OUT_SYSTEM_EXT)) |
Colin Cross | 829a16e | 2017-10-31 13:55:01 -0700 | [diff] [blame] | 173 | $(call add_json_bool, MinimizeJavaDebugInfo, $(filter true,$(PRODUCT_MINIMIZE_JAVA_DEBUG_INFO))) |
Dan Willemsen | 7ad0305 | 2017-10-12 15:26:29 -0700 | [diff] [blame] | 174 | |
| 175 | $(call add_json_bool, UseGoma, $(filter-out false,$(USE_GOMA))) |
Ramy Medhat | ec8b8df | 2019-07-17 12:28:40 +0000 | [diff] [blame] | 176 | $(call add_json_bool, UseRBE, $(filter-out false,$(USE_RBE))) |
Ramy Medhat | a9cc25d | 2020-01-27 14:21:24 -0500 | [diff] [blame] | 177 | $(call add_json_bool, UseRBEJAVAC, $(filter-out false,$(RBE_JAVAC))) |
| 178 | $(call add_json_bool, UseRBER8, $(filter-out false,$(RBE_R8))) |
| 179 | $(call add_json_bool, UseRBED8, $(filter-out false,$(RBE_D8))) |
Risan | f6c45ce | 2017-11-27 18:51:55 +0900 | [diff] [blame] | 180 | $(call add_json_bool, Arc, $(filter true,$(TARGET_ARC))) |
Dan Willemsen | 7ad0305 | 2017-10-12 15:26:29 -0700 | [diff] [blame] | 181 | |
Jeff Gaston | 1fe28d3 | 2017-11-21 15:05:07 -0800 | [diff] [blame] | 182 | $(call add_json_list, NamespacesToExport, $(PRODUCT_SOONG_NAMESPACES)) |
| 183 | |
Pirama Arumuga Nainar | 676fbe7 | 2018-01-29 23:07:26 -0800 | [diff] [blame] | 184 | $(call add_json_list, PgoAdditionalProfileDirs, $(PGO_ADDITIONAL_PROFILE_DIRS)) |
| 185 | |
Inseob Kim | fb7c801 | 2020-12-09 23:09:14 +0900 | [diff] [blame] | 186 | $(call add_json_list, BoardReqdMaskPolicy, $(BOARD_REQD_MASK_POLICY)) |
Felix | c3cdac6 | 2019-05-28 13:58:32 +0200 | [diff] [blame] | 187 | $(call add_json_list, BoardVendorSepolicyDirs, $(BOARD_VENDOR_SEPOLICY_DIRS) $(BOARD_SEPOLICY_DIRS)) |
Tri Vo | 82d1c88 | 2018-03-25 19:58:03 -0700 | [diff] [blame] | 188 | $(call add_json_list, BoardOdmSepolicyDirs, $(BOARD_ODM_SEPOLICY_DIRS)) |
Yifan Hong | cfb917a | 2020-05-07 14:58:20 -0700 | [diff] [blame] | 189 | $(call add_json_list, BoardVendorDlkmSepolicyDirs, $(BOARD_VENDOR_DLKM_SEPOLICY_DIRS)) |
Yifan Hong | f496f1b | 2020-07-15 16:52:59 -0700 | [diff] [blame] | 190 | $(call add_json_list, BoardOdmDlkmSepolicyDirs, $(BOARD_ODM_DLKM_SEPOLICY_DIRS)) |
Felix Elsner | d7df770 | 2020-07-16 13:00:59 +0200 | [diff] [blame] | 191 | # TODO: BOARD_PLAT_* dirs only kept for compatibility reasons. Will be a hard error on API level 31 |
| 192 | $(call add_json_list, SystemExtPublicSepolicyDirs, $(SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS) $(BOARD_PLAT_PUBLIC_SEPOLICY_DIR)) |
| 193 | $(call add_json_list, SystemExtPrivateSepolicyDirs, $(SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS) $(BOARD_PLAT_PRIVATE_SEPOLICY_DIR)) |
Inseob Kim | cd0e477 | 2019-04-15 20:32:14 +0900 | [diff] [blame] | 194 | $(call add_json_list, BoardSepolicyM4Defs, $(BOARD_SEPOLICY_M4DEFS)) |
Inseob Kim | fb7c801 | 2020-12-09 23:09:14 +0900 | [diff] [blame] | 195 | $(call add_json_str, BoardSepolicyVers, $(BOARD_SEPOLICY_VERS)) |
Tri Vo | 82d1c88 | 2018-03-25 19:58:03 -0700 | [diff] [blame] | 196 | |
Roland Levillain | 7672ab8 | 2019-08-12 19:51:33 +0100 | [diff] [blame] | 197 | $(call add_json_bool, Flatten_apex, $(filter true,$(TARGET_FLATTEN_APEX))) |
Jiyong Park | cddea9b | 2021-01-05 20:51:40 +0900 | [diff] [blame] | 198 | $(call add_json_bool, ForceApexSymlinkOptimization, $(filter true,$(TARGET_FORCE_APEX_SYMLINK_OPTIMIZATION))) |
Jiyong Park | 5217eed | 2018-11-08 08:09:54 +0900 | [diff] [blame] | 199 | |
Colin Cross | 6db5b0e | 2018-11-16 21:26:33 -0800 | [diff] [blame] | 200 | $(call add_json_str, DexpreoptGlobalConfig, $(DEX_PREOPT_CONFIG)) |
| 201 | |
Jiyong Park | 185d41e | 2019-01-05 12:57:54 +0900 | [diff] [blame] | 202 | $(call add_json_list, ManifestPackageNameOverrides, $(PRODUCT_MANIFEST_PACKAGE_NAME_OVERRIDES)) |
Jaewoong Jung | 7dfae50 | 2019-01-28 16:19:33 -0800 | [diff] [blame] | 203 | $(call add_json_list, PackageNameOverrides, $(PRODUCT_PACKAGE_NAME_OVERRIDES)) |
| 204 | $(call add_json_list, CertificateOverrides, $(PRODUCT_CERTIFICATE_OVERRIDES)) |
Jiyong Park | 185d41e | 2019-01-05 12:57:54 +0900 | [diff] [blame] | 205 | |
Jeongik Cha | b2c4bb7 | 2018-12-17 14:45:15 +0900 | [diff] [blame] | 206 | $(call add_json_bool, EnforceSystemCertificate, $(ENFORCE_SYSTEM_CERTIFICATE)) |
Colin Cross | c3ad804 | 2020-06-11 11:25:05 -0700 | [diff] [blame] | 207 | $(call add_json_list, EnforceSystemCertificateAllowList, $(ENFORCE_SYSTEM_CERTIFICATE_ALLOW_LIST)) |
Jeongik Cha | b2c4bb7 | 2018-12-17 14:45:15 +0900 | [diff] [blame] | 208 | |
Colin Cross | 36f79c4 | 2019-02-14 11:22:02 -0800 | [diff] [blame] | 209 | $(call add_json_list, ProductHiddenAPIStubs, $(PRODUCT_HIDDENAPI_STUBS)) |
| 210 | $(call add_json_list, ProductHiddenAPIStubsSystem, $(PRODUCT_HIDDENAPI_STUBS_SYSTEM)) |
| 211 | $(call add_json_list, ProductHiddenAPIStubsTest, $(PRODUCT_HIDDENAPI_STUBS_TEST)) |
| 212 | |
Inseob Kim | cd0e477 | 2019-04-15 20:32:14 +0900 | [diff] [blame] | 213 | $(call add_json_list, ProductPublicSepolicyDirs, $(PRODUCT_PUBLIC_SEPOLICY_DIRS)) |
| 214 | $(call add_json_list, ProductPrivateSepolicyDirs, $(PRODUCT_PRIVATE_SEPOLICY_DIRS)) |
Inseob Kim | cd0e477 | 2019-04-15 20:32:14 +0900 | [diff] [blame] | 215 | |
Dan Willemsen | 7f25f2a | 2019-04-18 10:10:34 -0700 | [diff] [blame] | 216 | $(call add_json_list, TargetFSConfigGen, $(TARGET_FS_CONFIG_GEN)) |
Dan Willemsen | d32e6d1 | 2019-04-10 12:25:07 -0700 | [diff] [blame] | 217 | |
Colin Cross | 56199af | 2019-05-22 10:25:59 -0700 | [diff] [blame] | 218 | $(call add_json_list, MissingUsesLibraries, $(INTERNAL_PLATFORM_MISSING_USES_LIBRARIES)) |
| 219 | |
Colin Cross | ee8b102 | 2018-11-10 21:48:59 -0800 | [diff] [blame] | 220 | $(call add_json_map, VendorVars) |
Dan Willemsen | eaacf5b | 2018-03-13 00:04:48 -0700 | [diff] [blame] | 221 | $(foreach namespace,$(SOONG_CONFIG_NAMESPACES),\ |
Colin Cross | ee8b102 | 2018-11-10 21:48:59 -0800 | [diff] [blame] | 222 | $(call add_json_map, $(namespace))\ |
Dan Willemsen | eaacf5b | 2018-03-13 00:04:48 -0700 | [diff] [blame] | 223 | $(foreach key,$(SOONG_CONFIG_$(namespace)),\ |
Colin Cross | ee8b102 | 2018-11-10 21:48:59 -0800 | [diff] [blame] | 224 | $(call add_json_str,$(key),$(SOONG_CONFIG_$(namespace)_$(key))))\ |
| 225 | $(call end_json_map)) |
| 226 | $(call end_json_map) |
Dan Willemsen | eaacf5b | 2018-03-13 00:04:48 -0700 | [diff] [blame] | 227 | |
Jeongik Cha | 7452979 | 2019-07-19 13:40:18 +0900 | [diff] [blame] | 228 | $(call add_json_bool, EnforceProductPartitionInterface, $(PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE)) |
Jeongik Cha | 0d1d981 | 2020-08-20 20:21:36 +0900 | [diff] [blame] | 229 | $(call add_json_str, DeviceCurrentApiLevelForVendorModules, $(BOARD_CURRENT_API_LEVEL_FOR_VENDOR_MODULES)) |
Jeongik Cha | 7452979 | 2019-07-19 13:40:18 +0900 | [diff] [blame] | 230 | |
JaeMan Park | afdd39f | 2020-10-19 17:29:05 +0900 | [diff] [blame] | 231 | $(call add_json_bool, EnforceInterPartitionJavaSdkLibrary, $(PRODUCT_ENFORCE_INTER_PARTITION_JAVA_SDK_LIBRARY)) |
| 232 | $(call add_json_list, InterPartitionJavaLibraryAllowList, $(PRODUCT_INTER_PARTITION_JAVA_LIBRARY_ALLOWLIST)) |
| 233 | |
Jooyung Han | 9efe534 | 2019-12-05 16:14:18 +0900 | [diff] [blame] | 234 | $(call add_json_bool, InstallExtraFlattenedApexes, $(PRODUCT_INSTALL_EXTRA_FLATTENED_APEXES)) |
| 235 | |
Mohammad Samiul Islam | c87781a | 2020-11-25 16:00:38 +0000 | [diff] [blame] | 236 | $(call add_json_bool, CompressedApex, $(PRODUCT_COMPRESSED_APEX)) |
| 237 | |
Yifan Hong | 9a190e2 | 2020-01-21 16:12:48 -0800 | [diff] [blame] | 238 | $(call add_json_bool, BoardUsesRecoveryAsBoot, $(BOARD_USES_RECOVERY_AS_BOOT)) |
| 239 | |
Yifan Hong | e4aca26 | 2020-07-29 14:15:18 -0700 | [diff] [blame] | 240 | $(call add_json_list, BoardKernelBinaries, $(BOARD_KERNEL_BINARIES)) |
Yifan Hong | 3c1041f | 2020-08-05 14:33:58 -0700 | [diff] [blame] | 241 | $(call add_json_list, BoardKernelModuleInterfaceVersions, $(BOARD_KERNEL_MODULE_INTERFACE_VERSIONS)) |
Yifan Hong | e4aca26 | 2020-07-29 14:15:18 -0700 | [diff] [blame] | 242 | |
Yifan Hong | 21f97e2 | 2020-10-21 15:43:56 -0700 | [diff] [blame] | 243 | $(call add_json_bool, BoardMoveRecoveryResourcesToVendorBoot, $(BOARD_MOVE_RECOVERY_RESOURCES_TO_VENDOR_BOOT)) |
Bill Peckham | e3cf609 | 2021-01-08 09:37:47 -0800 | [diff] [blame] | 244 | $(call add_json_str, PrebuiltHiddenApiDir, $(BOARD_PREBUILT_HIDDENAPI_DIR)) |
Yifan Hong | 21f97e2 | 2020-10-21 15:43:56 -0700 | [diff] [blame] | 245 | |
Inseob Kim | a0884b9 | 2020-12-21 22:52:22 +0900 | [diff] [blame] | 246 | $(call add_json_str, ShippingApiLevel, $(PRODUCT_SHIPPING_API_LEVEL)) |
| 247 | |
Inseob Kim | 43f4ef0 | 2021-02-03 18:17:49 +0900 | [diff] [blame] | 248 | $(call add_json_bool, BuildBrokenVendorPropertyNamespace, $(BUILD_BROKEN_VENDOR_PROPERTY_NAMESPACE)) |
| 249 | |
Colin Cross | ee8b102 | 2018-11-10 21:48:59 -0800 | [diff] [blame] | 250 | $(call json_end) |
Dan Willemsen | 7ad0305 | 2017-10-12 15:26:29 -0700 | [diff] [blame] | 251 | |
Colin Cross | ee8b102 | 2018-11-10 21:48:59 -0800 | [diff] [blame] | 252 | $(file >$(SOONG_VARIABLES).tmp,$(json_contents)) |
Dan Willemsen | 7ad0305 | 2017-10-12 15:26:29 -0700 | [diff] [blame] | 253 | |
| 254 | $(shell if ! cmp -s $(SOONG_VARIABLES).tmp $(SOONG_VARIABLES); then \ |
| 255 | mv $(SOONG_VARIABLES).tmp $(SOONG_VARIABLES); \ |
Dan Willemsen | 04f53ed | 2016-11-09 17:22:15 -0800 | [diff] [blame] | 256 | else \ |
Dan Willemsen | 7ad0305 | 2017-10-12 15:26:29 -0700 | [diff] [blame] | 257 | rm $(SOONG_VARIABLES).tmp; \ |
| 258 | fi) |
| 259 | |
Dan Willemsen | 7ad0305 | 2017-10-12 15:26:29 -0700 | [diff] [blame] | 260 | endif # CONFIGURE_SOONG |