-
Notifications
You must be signed in to change notification settings - Fork 9
/
vega.mk
83 lines (70 loc) · 3.92 KB
/
vega.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
$(call inherit-product, build/target/product/full.mk)
PRODUCT_NAME := full_vega
PRODUCT_DEVICE := vega
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.heapsize=32m \
ro.com.google.locationfeatures=1 \
ro.com.google.networklocation=1 \
dalvik.vm.dexopt-data-only=1
# Place permission files
PRODUCT_COPY_FILES += \
frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
frameworks/base/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
frameworks/base/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/base/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/base/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.distinct.xml \
frameworks/base/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml\
$(LOCAL_PATH)/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml
$(call inherit-product-if-exists, vendor/advent/vega/vega-vendor.mk)
DEVICE_PACKAGE_OVERLAYS += device/advent/vega/overlay
PRODUCT_PACKAGES += \
librs_jni \
gralloc.default \
gralloc.tegra \
gralloc.tegra \
sensors.tegra \
lights.tegra
PRODUCT_LOCALES += mdpi
# INIT setup
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/media_profiles.xml:system/etc/media_profiles.xml \
$(LOCAL_PATH)/ramdisk/init.rc:root/init.rc \
$(LOCAL_PATH)/ramdisk/init:root/init \
$(LOCAL_PATH)/ramdisk/init_recovery.rc:root/init_recovery.rc \
$(LOCAL_PATH)/ramdisk/default.prop:root/default.prop\
$(LOCAL_PATH)/ramdisk/initlogo.rle:root/initlogo.rle \
$(LOCAL_PATH)/vold.fstab:system/etc/vold.fstab
# WIFI setup
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/wifi/ar6000.ko:system/lib/hw/wlan/ar6000.ko \
$(LOCAL_PATH)/wifi/wpa_supplicant.conf:/system/etc/wifi/wpa_supplicant.conf \
$(LOCAL_PATH)/wifi/dhcpcd.conf:/system/etc/dhcpcd/dhcpcd.conf \
$(LOCAL_PATH)/wifi/eeprom.data:system/lib/hw/wlan/eeprom.data \
$(LOCAL_PATH)/wifi/eeprom.bin:system/lib/hw/wlan/eeprom.bin \
$(LOCAL_PATH)/wifi/data.patch.hw2_0.bin:system/lib/hw/wlan/data.patch.hw2_0.bin \
$(LOCAL_PATH)/wifi/athwlan.bin.z77:system/lib/hw/wlan/athwlan.bin.z77
# Keylayout setup
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/keylayout/gpio-keys.kcm.bin:system/usr/keychars/gpio-keys.kcm.bin \
$(LOCAL_PATH)/keylayout/nvec_keyboard.kcm.bin:system/usr/keychars/nvec_keyboard.kcm.bin \
$(LOCAL_PATH)/keylayout/qwerty.kcm.bin:system/usr/keychars/qwerty.kcm.bin \
$(LOCAL_PATH)/keylayout/qwerty2.kcm.bin:system/usr/keychars/qwerty2.kcm.bin \
$(LOCAL_PATH)/keylayout/tegra-kbc.kcm.bin:system/usr/keychars/tegra-kbc.kcm.bin \
$(LOCAL_PATH)/keylayout/usb_keyboard_102_en_us.kcm.bin:system/usr/keychars/usb_keyboard_102_en_us.kcm.bin \
$(LOCAL_PATH)/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl \
$(LOCAL_PATH)/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
$(LOCAL_PATH)/keylayout/nvec_keyboard.kl:system/usr/keylayout/nvec_keyboard.kl \
$(LOCAL_PATH)/keylayout/qwerty.kl:system/usr/keylayout/qwerty.kl \
$(LOCAL_PATH)/keylayout/tegra-kbc.kl:system/usr/keylayout/tegra-kbc.kl \
$(LOCAL_PATH)/keylayout/usb_keyboard_102_en_us.kl:system/usr/keylayout/usb_keyboard_102_en_us.kl
#PRODUCT_COPY_FILES += \
# $(LOCAL_PATH)/kernel/cifs.ko:system/lib/modules/cifs.ko
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/advent/vega/kernel/zImage
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel