Jiakai Zhang | d6c6e3a | 2022-11-16 11:52:00 +0000 | [diff] [blame] | 1 | # ART configuration that has to be determined after product config is resolved. |
| 2 | # |
| 3 | # Inputs: |
| 4 | # PRODUCT_ENABLE_UFFD_GC: See comments in build/make/core/product.mk. |
| 5 | # OVERRIDE_ENABLE_UFFD_GC: Overrides PRODUCT_ENABLE_UFFD_GC. Can be passed from the commandline for |
| 6 | # debugging purposes. |
| 7 | # BOARD_API_LEVEL: See comments in build/make/core/main.mk. |
| 8 | # BOARD_SHIPPING_API_LEVEL: See comments in build/make/core/main.mk. |
| 9 | # PRODUCT_SHIPPING_API_LEVEL: See comments in build/make/core/product.mk. |
| 10 | # |
| 11 | # Outputs: |
| 12 | # ENABLE_UFFD_GC: Whether to use userfaultfd GC. |
| 13 | |
| 14 | config_enable_uffd_gc := \ |
Jiakai Zhang | 53dd895 | 2024-01-18 17:22:13 +0000 | [diff] [blame] | 15 | $(firstword $(OVERRIDE_ENABLE_UFFD_GC) $(PRODUCT_ENABLE_UFFD_GC) default) |
Jiakai Zhang | d6c6e3a | 2022-11-16 11:52:00 +0000 | [diff] [blame] | 16 | |
Jiakai Zhang | 53dd895 | 2024-01-18 17:22:13 +0000 | [diff] [blame] | 17 | ifeq (,$(filter default true false,$(config_enable_uffd_gc))) |
Jiakai Zhang | d6c6e3a | 2022-11-16 11:52:00 +0000 | [diff] [blame] | 18 | $(error Unknown PRODUCT_ENABLE_UFFD_GC value: $(config_enable_uffd_gc)) |
| 19 | endif |
| 20 | |
Jiakai Zhang | 53dd895 | 2024-01-18 17:22:13 +0000 | [diff] [blame] | 21 | ENABLE_UFFD_GC := $(config_enable_uffd_gc) |
Alyssa Ketpreechasawat | ba231d2 | 2023-10-26 13:17:31 +0000 | [diff] [blame] | 22 | |
| 23 | # Create APEX_BOOT_JARS_EXCLUDED which is a list of jars to be removed from |
| 24 | # ApexBoorJars when built from mainline prebuilts. |
Alyssa Ketpreechasawat | 74dabed | 2024-02-29 01:57:07 +0000 | [diff] [blame] | 25 | # Note that RELEASE_APEX_BOOT_JARS_PREBUILT_EXCLUDED_LIST is the list of module names |
| 26 | # and library names of jars that need to be removed. We have to keep separated list per |
| 27 | # release config due to possibility of different prebuilt content. |
Spandan Das | e23f6ff | 2024-05-03 22:07:06 +0000 | [diff] [blame] | 28 | # |
| 29 | # If a device has opted to not use google prebuilts (determined using |
| 30 | # PRODUCT_BUILD_IGNORE_APEX_CONTRIBUTION_CONTENTS), then no jars need to be removed. |
| 31 | # Example of products where PRODUCT_BUILD_IGNORE_APEX_CONTRIBUTION_CONTENTS is true are |
| 32 | # 1. aosp devices (they do not use google apexes) |
| 33 | # 2. hwasan devices (apex prebuilts are not compatible with these devices) |
| 34 | # 3. coverage builds |
| 35 | ifneq (true, $(PRODUCT_BUILD_IGNORE_APEX_CONTRIBUTION_CONTENTS)) |
| 36 | APEX_BOOT_JARS_EXCLUDED += $(RELEASE_APEX_BOOT_JARS_PREBUILT_EXCLUDED_LIST) |
| 37 | endif |