OSDN Git Service

Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86
[android-x86/device-generic-common.git] / device.mk
1 #
2 # Copyright (C) 2014-2016 The Android-x86 Open Source Project
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16
17 PRODUCT_DIR := $(dir $(lastword $(filter-out device/common/%,$(filter device/%,$(ALL_PRODUCTS)))))
18
19 PRODUCT_PROPERTY_OVERRIDES := \
20     ro.ril.hsxpa=1 \
21     ro.ril.gprsclass=10 \
22     keyguard.no_require_sim=true \
23     ro.com.android.dataroaming=true \
24     media.sf.hwaccel=1 \
25     media.sf.omx-plugin=libffmpeg_omx.so \
26     media.sf.extractor-plugin=libffmpeg_extractor.so
27
28 PRODUCT_DEFAULT_PROPERTY_OVERRIDES := \
29     ro.arch=x86 \
30     persist.rtc_local_time=1 \
31
32 PRODUCT_COPY_FILES := \
33     $(if $(wildcard $(PRODUCT_DIR)init.rc),$(PRODUCT_DIR)init.rc:root/init.rc) \
34     $(if $(wildcard $(PRODUCT_DIR)init.sh),$(PRODUCT_DIR),$(LOCAL_PATH)/)init.sh:system/etc/init.sh \
35     $(if $(wildcard $(PRODUCT_DIR)modules.blacklist),$(PRODUCT_DIR),$(LOCAL_PATH)/)modules.blacklist:system/etc/modules.blacklist \
36     $(if $(wildcard $(PRODUCT_DIR)fstab.$(TARGET_PRODUCT)),$(PRODUCT_DIR)fstab.$(TARGET_PRODUCT),$(LOCAL_PATH)/fstab.x86):root/fstab.$(TARGET_PRODUCT) \
37     $(if $(wildcard $(PRODUCT_DIR)wpa_supplicant.conf),$(PRODUCT_DIR),$(LOCAL_PATH)/)wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
38     $(if $(wildcard $(PRODUCT_DIR)wpa_supplicant_overlay.conf),$(PRODUCT_DIR),$(LOCAL_PATH)/)wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
39     $(if $(wildcard $(PRODUCT_DIR)excluded-input-devices.xml),$(PRODUCT_DIR),$(LOCAL_PATH)/)excluded-input-devices.xml:system/etc/excluded-input-devices.xml \
40     $(if $(wildcard $(PRODUCT_DIR)init.$(TARGET_PRODUCT).rc),$(PRODUCT_DIR)init.$(TARGET_PRODUCT).rc,$(LOCAL_PATH)/init.x86.rc):root/init.$(TARGET_PRODUCT).rc \
41     $(if $(wildcard $(PRODUCT_DIR)ueventd.$(TARGET_PRODUCT).rc),$(PRODUCT_DIR)ueventd.$(TARGET_PRODUCT).rc,$(LOCAL_PATH)/ueventd.x86.rc):root/ueventd.$(TARGET_PRODUCT).rc \
42
43 PRODUCT_COPY_FILES += \
44     $(LOCAL_PATH)/ppp/ip-up:system/etc/ppp/ip-up \
45     $(LOCAL_PATH)/ppp/ip-down:system/etc/ppp/ip-down \
46     $(LOCAL_PATH)/ppp/peers/gprs:system/etc/ppp/peers/gprs \
47     $(LOCAL_PATH)/media_codecs.xml:system/etc/media_codecs.xml \
48     $(LOCAL_PATH)/media_profiles.xml:system/etc/media_profiles.xml \
49     device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml \
50     device/sample/etc/old-apns-conf.xml:system/etc/old-apns-conf.xml \
51     frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
52     frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \
53     frameworks/base/config/compiled-classes-phone:system/etc/compiled-classes \
54     frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \
55     frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
56     frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
57     frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
58     frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
59     frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
60     frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \
61     frameworks/native/data/etc/android.hardware.location.xml:system/etc/permissions/android.hardware.location.xml \
62     frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
63     frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
64     frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
65     frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
66     frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
67     frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
68     frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
69     frameworks/native/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.distinct.xml \
70     frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
71     frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
72     frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
73     frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
74     frameworks/native/data/etc/android.software.freeform_window_management.xml:system/etc/permissions/android.software.freeform_window_management.xml \
75     frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
76     frameworks/native/data/etc/android.software.sip.xml:system/etc/permissions/android.software.sip.xml \
77     $(foreach f,$(wildcard $(LOCAL_PATH)/alsa/*),$(f):$(subst $(LOCAL_PATH),system/etc,$(f))) \
78     $(foreach f,$(wildcard $(LOCAL_PATH)/idc/*.idc $(LOCAL_PATH)/keylayout/*.kl),$(f):$(subst $(LOCAL_PATH),system/usr,$(f)))
79
80 PRODUCT_TAGS += dalvik.gc.type-precise
81
82 PRODUCT_CHARACTERISTICS := tablet
83
84 PRODUCT_AAPT_CONFIG := normal large xlarge mdpi hdpi
85 PRODUCT_AAPT_PREF_CONFIG := mdpi
86
87 DEVICE_PACKAGE_OVERLAYS := $(LOCAL_PATH)/overlay
88
89 # Get Android 8.0 HIDL HALs
90 $(call inherit-product,$(LOCAL_PATH)/treble.mk)
91
92 # Get the firmwares
93 $(call inherit-product,device/generic/firmware/firmware.mk)
94
95 # Get the touchscreen calibration tool
96 $(call inherit-product-if-exists,external/tslib/tslib.mk)
97
98 # Get the alsa files
99 $(call inherit-product-if-exists,hardware/libaudio/alsa.mk)
100
101 # Get GPS configuration
102 $(call inherit-product-if-exists,device/common/gps/gps_as.mk)
103
104 # Get the hardware acceleration libraries
105 $(call inherit-product-if-exists,$(LOCAL_PATH)/gpu/gpu_mesa.mk)
106
107 # Get the sensors hals
108 $(call inherit-product-if-exists,hardware/libsensors/sensors.mk)
109
110 # Get tablet dalvik parameters
111 $(call inherit-product,frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
112
113 # Get GMS
114 $(call inherit-product-if-exists,vendor/google/products/gms.mk)
115
116 # Get native bridge settings
117 $(call inherit-product-if-exists,$(LOCAL_PATH)/nativebridge/nativebridge.mk)
118
119 $(call inherit-product,$(if $(wildcard $(PRODUCT_DIR)packages.mk),$(PRODUCT_DIR),$(LOCAL_PATH)/)packages.mk)