forked from teamgummy/android_device_motorola_droid2we
-
Notifications
You must be signed in to change notification settings - Fork 0
/
droid2we.mk
82 lines (69 loc) · 2.54 KB
/
droid2we.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
# Copyright (C) 2011 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# This file is the build configuration for a full Android
# build for maguro hardware. This cleanly combines a set of
# device-specific aspects (drivers) with a device-agnostic
# product configuration (apps). Except for a few implementation
# details, it only fundamentally contains two inherit-product
# lines, full and maguro, hence its name.
#
# Device overlay and prebuilt directories
DEVICE_PREBUILT := device/motorola/droid2we/prebuilt
# Audio + Bluetooth
PRODUCT_COPY_FILES += \
device/motorola/droid2we/audio/libaudio.so:/system/lib/libaudio.so \
device/motorola/droid2we/audio/liba2dp.so:/system/lib/liba2dp.so
PRODUCT_PACKAGES += \
sensors.droid2we \
audio.primary.omap3 \
libaudiohw_legacy \
audio.a2dp.default \
libaudioutils \
hcitool \
hciattach \
hcidump
PRODUCT_PACKAGES += \
hijack-boot.zip \
# Hijack files
PRODUCT_COPY_FILES += \
$(DEVICE_PREBUILT)/etc/hijack-boot.zip:system/etc/hijack-boot.zip
# Kernel
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/motorola/droid2we/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel
# copy all kernel modules under the "modules" directory to system/lib/modules
PRODUCT_COPY_FILES += $(shell \
find device/motorola/droid2we/modules -name '*.ko' \
| sed -r 's/^\/?(.*\/)([^/ ]+)$$/\1\2:system\/lib\/modules\/\2/' \
| tr '\n' ' ')
PRODUCT_PROPERTY_OVERRIDES += \
persist.ril.features=0x0E \
persist.ril.modem.ttydevice=/dev/usb/tty1-3:1.4 \
persist.ril.mux.noofchannels=8 \
ro.ril.ntmodeglobal=true
# Inherit from those products. Most specific first.
$(call inherit-product, device/motorola/omap34com/full_base_telephony.mk)
$(call inherit-product, device/common/gps/gps_us_supl.mk)
# Inherit from maguro device
$(call inherit-product, device/motorola/droid2we/device.mk)
# Set those variables here to overwrite the inherited values.
PRODUCT_NAME := full_droid2we
PRODUCT_DEVICE := droid2we
PRODUCT_BRAND := verizon
PRODUCT_MODEL := DROID2 Global