-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfig.mk
116 lines (91 loc) · 4.09 KB
/
config.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
ifneq ($(WITH_GMS),false)
# Anything including updatable_apex.mk should have done so by now.
ifneq ($(TARGET_SUPPORTS_PREBUILT_UPDATABLE_APEX), false)
DISABLE_DEXPREOPT_CHECK := true
# Disable enforce-product-packages-exist check
TARGET_DISABLE_EPPE := true
# Setup build characteristics
PRODUCT_INCLUDE_TAGS := com.android.mainline mainline_module_prebuilt_monthly_release
# Certificate customisation
TARGET_MAINLINE_APEX_CERTIFICATE_DIR := $(abspath $(TOP)/vendor/google/mainline_modules/build/certificates)
TARGET_GOOGLE_APEX_CERTIFICATE_DIR := $(abspath $(TOP)/vendor/google/mainline_modules/build/certificates-google)
TARGET_AOSP_APEX_CERTIFICATE_DIR := $(abspath $(TOP)/build/target/product/security)
TARGET_CUSTOM_APEX_CERTIFICATE_DIR ?= $(TARGET_AOSP_APEX_CERTIFICATE_DIR)
TARGET_CUSTOM_SDK_SANDBOX_CERTIFICATE_DIR ?= $(TARGET_GOOGLE_APEX_CERTIFICATE_DIR)
$(shell ln -sfn \
$(TARGET_CUSTOM_SDK_SANDBOX_CERTIFICATE_DIR)/sdk_sandbox.x509.pem \
$(TARGET_MAINLINE_APEX_CERTIFICATE_DIR)/sdk_sandbox.x509.pem)
ifneq ($(TARGET_SUPPORTS_GOOGLE_NETWORK_STACK), false)
TARGET_SUPPORTS_GOOGLE_NETWORK_STACK := true
TARGET_CUSTOM_NETWORK_STACK_CERTIFICATE_DIR := $(TARGET_GOOGLE_APEX_CERTIFICATE_DIR)
else
TARGET_CUSTOM_NETWORK_STACK_CERTIFICATE_DIR ?= $(TARGET_CUSTOM_APEX_CERTIFICATE_DIR)
endif #TARGET_SUPPORTS_GOOGLE_NETWORK_STACK
$(shell ln -sfn \
$(TARGET_CUSTOM_NETWORK_STACK_CERTIFICATE_DIR)/networkstack.x509.pem \
$(TARGET_MAINLINE_APEX_CERTIFICATE_DIR)/networkstack.x509.pem)
ifneq ($(MAINLINE_INCLUDE_NFCSERVICES_MODULE), false)
MAINLINE_INCLUDE_NFCSERVICES_MODULE := true
TARGET_CUSTOM_NFC_CERTIFICATE_DIR := $(TARGET_GOOGLE_APEX_CERTIFICATE_DIR)
else
TARGET_CUSTOM_NFC_CERTIFICATE_DIR ?= $(TARGET_CUSTOM_APEX_CERTIFICATE_DIR)
endif #MAINLINE_INCLUDE_NFCSERVICES_MODULE
$(shell ln -sfn \
$(TARGET_CUSTOM_NFC_CERTIFICATE_DIR)/nfc.x509.pem \
$(TARGET_MAINLINE_APEX_CERTIFICATE_DIR)/nfc.x509.pem)
ifneq ($(MAINLINE_INCLUDE_DEVICELOCK_MODULE), false)
MAINLINE_INCLUDE_DEVICELOCK_MODULE := true
endif #MAINLINE_INCLUDE_DEVICELOCK_MODULE
ifneq ($(MAINLINE_INCLUDE_PROFILING_MODULE), false)
MAINLINE_INCLUDE_PROFILING_MODULE := true
endif #MAINLINE_INCLUDE_PROFILING_MODULE
ifneq ($(MAINLINE_INCLUDE_TETHERING_MODULE), false)
MAINLINE_INCLUDE_TETHERING_MODULE := $(TARGET_SUPPORTS_GOOGLE_NETWORK_STACK)
endif #MAINLINE_INCLUDE_TETHERING_MODULE
ifneq ($(MAINLINE_INCLUDE_RKP_MODULE), false)
MAINLINE_INCLUDE_RKP_MODULE := true
endif #MAINLINE_INCLUDE_RKP_MODULE
ifneq ($(MAINLINE_INCLUDE_UWB_MODULE), false)
MAINLINE_INCLUDE_UWB_MODULE := true
endif #MAINLINE_INCLUDE_UWB_MODULE
ifneq ($(MAINLINE_INCLUDE_WIFI_MODULE), false)
MAINLINE_INCLUDE_WIFI_MODULE := true
endif #MAINLINE_INCLUDE_WIFI_MODULE
ifneq ($(MAINLINE_INCLUDE_BTSERVICES_MODULE), false)
MAINLINE_INCLUDE_BTSERVICES_MODULE := true
# Overlay
PRODUCT_PACKAGES += \
GoogleConfigBluetoothOverlay
# Google Bluetooth Legacy Migration
PRODUCT_PACKAGES += \
GoogleBluetoothLegacyMigration
TARGET_CUSTOM_BLUETOOTH_CERTIFICATE_DIR := $(TARGET_GOOGLE_APEX_CERTIFICATE_DIR)
else
TARGET_CUSTOM_BLUETOOTH_CERTIFICATE_DIR ?= $(TARGET_CUSTOM_APEX_CERTIFICATE_DIR)
endif #MAINLINE_INCLUDE_BTSERVICES_MODULE
$(shell ln -sfn \
$(TARGET_CUSTOM_BLUETOOTH_CERTIFICATE_DIR)/bluetooth.x509.pem \
$(TARGET_MAINLINE_APEX_CERTIFICATE_DIR)/bluetooth.x509.pem)
ifneq ($(MAINLINE_INCLUDE_VIRT_MODULE), false)
MAINLINE_INCLUDE_VIRT_MODULE := true
$(call inherit-product, packages/modules/Virtualization/apex/product_packages.mk)
PRODUCT_PRODUCT_PROPERTIES += \
ro.boot.hypervisor.vm.supported=1 \
ro.boot.hypervisor.protected_vm.supported=1
endif #MAINLINE_INCLUDE_VIRT_MODULE
$(call inherit-product-if-exists, vendor/google/mainline_modules/build/mainline_modules.mk)
ifeq ($(TARGET_SUPPORTS_NOW_PLAYING), true)
PRODUCT_PACKAGES += \
ApexNowPlayingOverlay
else
PRODUCT_PACKAGES += \
ApexOverlay
endif #TARGET_SUPPORTS_NOW_PLAYING
# Overlay
PRODUCT_PACKAGES += \
DocumentsUIGoogleOverlayExtra \
CaptivePortalLoginOverlayExtra \
CellBroadcastReceiverOverlayExtra \
CellBroadcastServiceOverlayExtra
endif #TARGET_SUPPORTS_PREBUILT_UPDATABLE_APEX
endif #WITH_GMS