forked from verygreen/android_device_amazon_bowser
-
Notifications
You must be signed in to change notification settings - Fork 13
/
device.mk
62 lines (53 loc) · 2.46 KB
/
device.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
# Copyright (C) 2013 The CyanogenMod 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.
DEVICE_FOLDER := device/amazon/jem
TARGET_BOOTLOADER_BOARD_SUBTYPE := jem
$(call inherit-product, device/amazon/bowser-common/common.mk)
DEVICE_PACKAGE_OVERLAYS += $(DEVICE_FOLDER)/overlay
PRODUCT_AAPT_CONFIG := xlarge hdpi xhdpi
PRODUCT_AAPT_PREF_CONFIG := hdpi
# Rootfs
PRODUCT_COPY_FILES += \
$(DEVICE_FOLDER)/fstab.jem:/root/fstab.bowser \
$(DEVICE_FOLDER)/init.bowser.rc:root/init.bowser.rc \
$(DEVICE_FOLDER)/init.bowser.usb.rc:root/init.bowser.usb.rc \
$(DEVICE_FOLDER)/init.recovery.bowser.rc:root/init.recovery.bowser.rc \
$(DEVICE_FOLDER)/ueventd.bowser.rc:root/ueventd.bowser.rc
# Device settings
ADDITIONAL_BUILD_PROPERTIES += \
ro.sf.lcd_density=240 \
ro.sf.hwrotation=90 \
persist.hwc.mirroring.region=0:0:1920:1200 \
persist.hwc.mirroring.transform=2 \
omap.audio.mic.main=AMic0 \
omap.audio.mic.sub=AMic1 \
sys.usb.vid=1949 \
sys.usb.pid=0008 \
usb.vendor=1949 \
usb.product.adb=0008 \
usb.product.mtpadb=0008 \
ro.cwm.forbid_format=/bootloader,/xloader,/misc
# Set dirty regions on and disable framework optimization
ADDITIONAL_BUILD_PROPERTIES += \
hwui.render_dirty_regions=true \
ro.hwui.disable_scissor_opt=true
# temperature sys fs node properties to be used by ThermalValidation/StressTest
ADDITIONAL_BUILD_PROPERTIES += \
pcb.temp.sensor.sysfs.node=/sys/devices/platform/omap/omap_i2c.3/i2c-3/3-0070/temp1_input \
batt.temp.sensor.sysfs.node=/sys/class/power_supply/bq27541/temp \
cpu.temp.sensor.sysfs.node=/sys/devices/platform/omap/omap_temp_sensor.0/temp1_input \
hotspot.temp.sensor.sysfs.node=/sys/class/thermal_sensor/thermal_sensor0/device/hotspot_temp \
charge.current.sysfs.node=/sys/class/power_supply/smb347_usb/device/charge_current
$(call inherit-product-if-exists, vendor/amazon/jem/jem-vendor.mk)
$(call inherit-product-if-exists, vendor/amazon/omap4-common/omap4-common-vendor-544_112.mk)