-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaosp_p8.mk
executable file
·179 lines (145 loc) · 6.48 KB
/
aosp_p8.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
# The gps config appropriate for this device
$(call inherit-product, device/common/gps/gps_us_supl.mk)
$(call inherit-product-if-exists, vendor/huawei/p8/p8-vendor.mk)
# Inherit from the common Open Source product configuration
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk)
# Enable ADB during boot for debugging. (Very unsafe. Remove before public build)
ADDITIONAL_DEFAULT_PROPERTIES += \
ro.adb.secure=0 \
ro.secure=0 \
ro.debuggable=1 \
ro.zygote=zygote64_32
DEVICE_PACKAGE_OVERLAYS += device/huawei/p8/overlay
LOCAL_PATH := device/huawei/p8
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/huawei/p8/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel
# Ramdisk
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/ramdisk/file_contexts:root/file_contexts\
$(LOCAL_PATH)/ramdisk/property_contexts:root/property_contexts \
$(LOCAL_PATH)/ramdisk/seapp_contexts:root/seapp_contexts \
$(LOCAL_PATH)/ramdisk/sepolicy:root/sepolicy \
$(LOCAL_PATH)/ramdisk/service_contexts:root/service_contexts \
$(LOCAL_PATH)/ramdisk/init.rc:root/init.rc \
$(LOCAL_PATH)/ramdisk/init:root/init \
$(LOCAL_PATH)/ramdisk/ueventd.rc:root/ueventd.rc \
$(LOCAL_PATH)/ramdisk/init.usb.rc:root/init.usb.rc \
$(LOCAL_PATH)/ramdisk/fstab.hi3635:root/fstab.hi3635 \
$(LOCAL_PATH)/ramdisk/init.hi3635.rc:root/init.hi3635.rc \
$(LOCAL_PATH)/ramdisk/init.balong_modem.rc:root/init.balong_modem.rc \
$(LOCAL_PATH)/ramdisk/init.tee.rc:root/init.tee.rc \
$(LOCAL_PATH)/ramdisk/init.zygote64_32.rc:root/init.zygote64_32.rc \
$(LOCAL_PATH)/ramdisk/init.audio.rc:root/init.audio.rc \
$(LOCAL_PATH)/ramdisk/init.chip.usb.rc:root/init.chip.usb.rc \
$(LOCAL_PATH)/ramdisk/init.connectivity.gps.rc:root/init.connectivity.gps.rc \
$(LOCAL_PATH)/ramdisk/init.connectivity.bcm4334.rc:root/init.connectivity.bcm4334.rc \
$(LOCAL_PATH)/ramdisk/init.connectivity.rc:root/init.connectivity.rc \
$(LOCAL_PATH)/ramdisk/init.device.rc:root/init.device.rc \
$(LOCAL_PATH)/ramdisk/init.extmodem.rc:root/init.extmodem.rc \
$(LOCAL_PATH)/ramdisk/init.hisi.rc:root/init.hisi.rc \
$(LOCAL_PATH)/ramdisk/init.manufacture.rc:root/init.manufacture.rc \
$(LOCAL_PATH)/ramdisk/init.performance.rc:root/init.performance.rc \
$(LOCAL_PATH)/ramdisk/init.platform.rc:root/init.platform.rc \
$(LOCAL_PATH)/ramdisk/init.protocol.rc:root/init.protocol.rc \
$(LOCAL_PATH)/ramdisk/init.6238.rc:root/init.6238.rc \
$(LOCAL_PATH)/ramdisk/init.3697.rc:root/init.3697.rc \
$(LOCAL_PATH)/ramdisk/init.5844.rc:root/init.5844.rc \
$(LOCAL_PATH)/ramdisk/init.61173.rc:root/init.61173.rc \
$(LOCAL_PATH)/ramdisk/init.61536.rc:root/init.61536.rc \
$(LOCAL_PATH)/ramdisk/init.71282.rc:root/init.71282.rc \
$(LOCAL_PATH)/ramdisk/init.71341.rc:root/init.71341.rc \
$(LOCAL_PATH)/ramdisk/init.92105.rc:root/init.92105.rc \
$(LOCAL_PATH)/ramdisk/ueventd.6238.rc:root/ueventd.6238.rc \
$(LOCAL_PATH)/ramdisk/ueventd.3697.rc:root/ueventd.3697.rc \
$(LOCAL_PATH)/ramdisk/ueventd.5844.rc:root/ueventd.5844.rc \
$(LOCAL_PATH)/ramdisk/ueventd.61173.rc:root/ueventd.61173.rc \
$(LOCAL_PATH)/ramdisk/ueventd.61536.rc:root/ueventd.61536.rc \
$(LOCAL_PATH)/ramdisk/ueventd.71282.rc:root/ueventd.71282.rc \
$(LOCAL_PATH)/ramdisk/ueventd.71341.rc:root/ueventd.71341.rc \
$(LOCAL_PATH)/ramdisk/ueventd.92105.rc:root/ueventd.92105.rc \
$(LOCAL_PATH)/ramdisk/ueventd.hi3635.rc:root/ueventd.hi3635.rc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/ramdisk/sbin/check_root:root/sbin/check_root \
$(LOCAL_PATH)/ramdisk/sbin/e2fsck_s:root/sbin/e2fsck_s \
$(LOCAL_PATH)/ramdisk/sbin/emmc_partation:root/sbin/emmc_partation \
$(LOCAL_PATH)/ramdisk/sbin/hdbd:root/sbin/hdbd \
$(LOCAL_PATH)/ramdisk/sbin/kmsgcat:root/sbin/kmsgcat \
$(LOCAL_PATH)/ramdisk/sbin/logctl_service:root/sbin/logctl_service \
$(LOCAL_PATH)/ramdisk/sbin/ntfs-3gd:root/sbin/ntfs-3gd \
$(LOCAL_PATH)/ramdisk/sbin/oeminfo_nvm_server:root/sbin/oeminfo_nvm_server \
$(LOCAL_PATH)/ramdisk/sbin/teecd:root/sbin/teecd
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
$(LOCAL_PATH)/bt-wifi-firmware-util/TIInit_11.8.32.bts:system/etc/firmware/ti-connectivity/TIInit_11.8.32.bts \
$(LOCAL_PATH)/bt-wifi-firmware-util/TIInit_11.8.32.bts:system/etc/firmware/TIInit_11.8.32.bts \
$(LOCAL_PATH)/bt-wifi-firmware-util/wl18xx-fw-4.bin:system/etc/firmware/ti-connectivity/wl18xx-fw-4.bin
# Add openssh support for remote debugging and job submission
PRODUCT_PACKAGES += ssh sftp scp sshd ssh-keygen sshd_config start-ssh uim wpa_supplicant
# Build and run only ART
PRODUCT_RUNTIMES := runtime_libart_default
# Build BT a2dp audio HAL
PRODUCT_PACKAGES += audio.a2dp.default
# Needed to sync the system clock with the RTC clock
PRODUCT_PACKAGES += hwclock
# Include USB speed switch App
PRODUCT_PACKAGES += UsbSpeedSwitch
# Build libion for new double-buffering HDLCD driver
PRODUCT_PACKAGES += libion
# Build gatord daemon for DS-5/Streamline
PRODUCT_PACKAGES += gatord
# Build gralloc for Juno
PRODUCT_PACKAGES += gralloc.hi3635
PRODUCT_PACKAGES += libGLES_android
# Include ION tests
PRODUCT_PACKAGES += iontest \
ion-unit-tests
PRODUCT_PACKAGES += \
audio.primary.default \
sound_trigger.primary.hi3635 \
audio_policy.stub \
audio.a2dp.default \
audio.usb.default \
audio.r_submix.default \
libaudioutils \
libtinyalsa \
tinyplay \
tinycap \
tinymix \
tinypcminfo \
libnfc-nci \
libnfc_nci_jni \
camera.hi3635 \
Nfc \
Tag \
com.android.nfc_extras \
# SeLinux
BOARD_SEPOLICY_DIRS += \
$(LOCAL_PATH)/selinux
PRODUCT_PROPERTY_OVERRIDES += \
debug.sf.no_hw_vsync=1 \
audioril.lib=libhuawei-audio-ril.so \
ro.telephony.ril_class=HuaweiRIL \
telephony.lteOnCdmaDevice=1 \
telephony.lteOnGsmDevice=1 \
ro.telephony.default_network=9
# USB OTG support
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.isUsbOtgEnabled=true
$(call inherit-product, build/target/product/full.mk)
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
TARGET_SCREEN_HEIGHT := 1920
TARGET_SCREEN_WIDTH := 1080
## Device identifier. This must come after all inclusions
PRODUCT_NAME := aosp_p8
PRODUCT_DEVICE := p8
PRODUCT_MANUFACTURER := Huawei
PRODUCT_MODEL := p8
PRODUCT_BRAND := Huawei