summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPraneeth Bajjuri2018-10-18 00:52:11 -0500
committerPraneeth Bajjuri2018-10-17 19:26:17 -0500
commitb560c51c5d63c02de356538b5f878dd0f788981e (patch)
treed9719c6fa7152e3c2eb9683cc6be7fbd1a93307b
parent7213f06ec6b383d3f0eb889294009e304b785051 (diff)
downloaddevice-ti-am65xevm-b560c51c5d63c02de356538b5f878dd0f788981e.tar.gz
device-ti-am65xevm-b560c51c5d63c02de356538b5f878dd0f788981e.tar.xz
device-ti-am65xevm-b560c51c5d63c02de356538b5f878dd0f788981e.zip
am65xevm: Enable PRODUCT_TREBLE
This patch sets ro.treble.enable=true - turned on legacy PRODUCT_COMPATIBILITY_MATRIX_LEVEL - Enabled FULL_TREBLE and vndk support in device*.mk - Enforced VINFT manifest as part of treble requirements - Added compatibility matrix to match device manifest and pass prebuild checks - Added missing services for compatibility matrix - Extended device manifest with missing hals - removed unused audio packages - re-arranged device*.mk and BoardConfig.mk Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
-rw-r--r--BoardConfig.mk7
-rw-r--r--device-common.mk13
-rw-r--r--manifest.xml22
3 files changed, 38 insertions, 4 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index a74a547..cc0ca4b 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -30,12 +30,17 @@ TARGET_2ND_CPU_VARIANT := cortex-a53
30 30
31TARGET_BOOTIMAGE_FIT := true 31TARGET_BOOTIMAGE_FIT := true
32TARGET_NO_BOOTLOADER := true # We use externally built U-Boot 32TARGET_NO_BOOTLOADER := true # We use externally built U-Boot
33PRODUCT_COMPATIBILITY_MATRIX_LEVEL_OVERRIDE := legacy
34TARGET_NO_RADIOIMAGE := true 33TARGET_NO_RADIOIMAGE := true
35TARGET_NO_RECOVERY := true 34TARGET_NO_RECOVERY := true
36 35
36PRODUCT_COMPATIBILITY_MATRIX_LEVEL_OVERRIDE := legacy
37PRODUCT_FULL_TREBLE_OVERRIDE := true
38BOARD_VNDK_VERSION := current
37TARGET_USES_64_BIT_BINDER := true 39TARGET_USES_64_BIT_BINDER := true
38 40
41TARGET_USES_HWC2 := true
42USE_CAMERA_STUB := true
43
39# Use mke2fs to create ext4 images 44# Use mke2fs to create ext4 images
40TARGET_USES_MKE2FS := true 45TARGET_USES_MKE2FS := true
41 46
diff --git a/device-common.mk b/device-common.mk
index a71dbf0..3b38ee8 100644
--- a/device-common.mk
+++ b/device-common.mk
@@ -18,6 +18,8 @@
18PRODUCT_PACKAGES += \ 18PRODUCT_PACKAGES += \
19 android.hardware.graphics.allocator@2.0-impl \ 19 android.hardware.graphics.allocator@2.0-impl \
20 android.hardware.graphics.allocator@2.0-service \ 20 android.hardware.graphics.allocator@2.0-service \
21 android.hardware.graphics.composer@2.1-impl \
22 android.hardware.graphics.composer@2.1-service \
21 android.hardware.graphics.mapper@2.0-impl \ 23 android.hardware.graphics.mapper@2.0-impl \
22 android.hardware.memtrack@1.0-impl \ 24 android.hardware.memtrack@1.0-impl \
23 android.hardware.memtrack@1.0-service \ 25 android.hardware.memtrack@1.0-service \
@@ -25,15 +27,19 @@ PRODUCT_PACKAGES += \
25 libdrm \ 27 libdrm \
26 libgbm \ 28 libgbm \
27 29
30# All VNDK libraries (HAL interfaces, VNDK, VNDK-SP, LL-NDK)
31PRODUCT_PACKAGES += vndk_package
32
33PRODUCT_PACKAGES += \
34 libunwind
35
36PRODUCT_ENFORCE_VINTF_MANIFEST_OVERRIDE := true
28# Audio 37# Audio
29PRODUCT_PACKAGES += \ 38PRODUCT_PACKAGES += \
30 android.hardware.audio@2.0-impl \ 39 android.hardware.audio@2.0-impl \
31 android.hardware.audio@2.0-service \ 40 android.hardware.audio@2.0-service \
32 android.hardware.audio.effect@2.0-impl \ 41 android.hardware.audio.effect@2.0-impl \
33 android.hardware.soundtrigger@2.0-impl \ 42 android.hardware.soundtrigger@2.0-impl \
34 audio.primary.default \
35 audio.a2dp.default \
36 audio.r_submix.default \
37 43
38# USB 44# USB
39PRODUCT_PACKAGES += \ 45PRODUCT_PACKAGES += \
@@ -55,6 +61,7 @@ PRODUCT_COPY_FILES += \
55 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \ 61 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
56 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \ 62 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
57 63
64
58PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ 65PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
59 persist.sys.usb.config=mtp \ 66 persist.sys.usb.config=mtp \
60 ro.sf.lcd_density=160 \ 67 ro.sf.lcd_density=160 \
diff --git a/manifest.xml b/manifest.xml
index 0bab05d..ad2d2d5 100644
--- a/manifest.xml
+++ b/manifest.xml
@@ -1,5 +1,18 @@
1<manifest version="1.0" type="device"> 1<manifest version="1.0" type="device">
2 <hal format="hidl"> 2 <hal format="hidl">
3 <name>android.hardware.drm</name>
4 <transport>hwbinder</transport>
5 <version>1.0</version>
6 <interface>
7 <name>ICryptoFactory</name>
8 <instance>default</instance>
9 </interface>
10 <interface>
11 <name>IDrmFactory</name>
12 <instance>default</instance>
13 </interface>
14 </hal>
15 <hal format="hidl">
3 <name>android.hardware.graphics.allocator</name> 16 <name>android.hardware.graphics.allocator</name>
4 <transport>hwbinder</transport> 17 <transport>hwbinder</transport>
5 <version>2.0</version> 18 <version>2.0</version>
@@ -9,6 +22,15 @@
9 </interface> 22 </interface>
10 </hal> 23 </hal>
11 <hal format="hidl"> 24 <hal format="hidl">
25 <name>android.hardware.graphics.composer</name>
26 <transport>hwbinder</transport>
27 <version>2.1</version>
28 <interface>
29 <name>IComposer</name>
30 <instance>default</instance>
31 </interface>
32 </hal>
33 <hal format="hidl">
12 <name>android.hardware.graphics.mapper</name> 34 <name>android.hardware.graphics.mapper</name>
13 <transport arch="32+64">passthrough</transport> 35 <transport arch="32+64">passthrough</transport>
14 <version>2.0</version> 36 <version>2.0</version>