This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 107
/
b2g.mk
87 lines (76 loc) · 1.63 KB
/
b2g.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
TARGET_PROVIDES_INIT_RC := true
CONFIG_ESD := no
HTTP := android
MAJOR_VERSION := $(word 1,$(subst ., ,$(PLATFORM_VERSION)))
PRODUCT_PACKAGES += \
b2g.sh \
b2g-info \
b2g-prlimit \
b2g-ps \
bluetoothd \
gonksched \
init.bluetooth.rc \
fakeappops \
fs_config \
gaia \
gecko \
init.rc \
init.b2g.rc \
killer \
libttspico \
rild \
rilproxy \
sensorsd \
oom-msg-logger \
$(NULL)
ifneq ($(filter-out 0 1 2 3 4,$(MAJOR_VERSION)),)
BOARD_SEPOLICY_DIRS += \
gonk-misc/sepolicy
BOARD_SEPOLICY_UNION += \
b2g.te \
bluetoothd.te \
fakeappops.te \
gonksched.te \
nfcd.te \
plugin-container.te \
rilproxy.te \
sensorsd.te \
file.te \
file_contexts
endif
-include external/svox/pico/lang/all_pico_languages.mk
-include gaia/gaia.mk
ifeq ($(B2G_VALGRIND),1)
include external/valgrind/valgrind.mk
endif
ifeq ($(ENABLE_DEFAULT_BOOTANIMATION),true)
ifeq ($(BOOTANIMATION_ASSET_SIZE),)
BOOTANIMATION_ASSET_SIZE := hvga
endif
ifeq ($(MOZILLA_OFFICIAL),1)
BOOTANIMATION_PATH := bootanimations/official
else
BOOTANIMATION_PATH := bootanimations/unofficial
endif
BOOTANIMATION_ASSET := $(BOOTANIMATION_PATH)/bootanimation_$(BOOTANIMATION_ASSET_SIZE).zip
PRODUCT_COPY_FILES += \
gonk-misc/$(BOOTANIMATION_ASSET):system/media/bootanimation.zip
endif
ifeq ($(ENABLE_LIBRECOVERY),true)
PRODUCT_PACKAGES += \
librecovery
endif
ifneq ($(DISABLE_SOURCES_XML),true)
PRODUCT_PACKAGES += \
sources.xml
endif
ifeq ($(ENABLE_NGINX),true)
PRODUCT_PACKAGES += \
nginx \
nginx/nginx.conf \
nginx/mime.types \
nginx/html/index.html \
nginx/html/50x.html
PRODUCT_PROPERTY_OVERRIDES += \
ro.moz.httpd=1
endif # ENABLE_NGINX