summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Shafran2019-07-22 21:44:53 -0500
committerPraneeth Bajjuri2019-07-22 16:21:06 -0500
commitc45d1db255dd32badcb4a1ce550a2e33f7bf3e96 (patch)
tree98230129f9e6a559db2802a4da8d50e6c207c57a
parent9f36276add5cca20abae2917d4d1850ac3c8aa12 (diff)
downloaddevice-ti-am65xevm-c45d1db255dd32badcb4a1ce550a2e33f7bf3e96.tar.gz
device-ti-am65xevm-c45d1db255dd32badcb4a1ce550a2e33f7bf3e96.tar.xz
device-ti-am65xevm-c45d1db255dd32badcb4a1ce550a2e33f7bf3e96.zip
am65xevm: Enable Android Automotive w/ New Lunch Target
All changes made to baseline enable full Android Automotive in-vehicle infotainment (IVI) system, presenting an updated boot animation and user interface on AM65x platforms. Car mode is enabled by default and the UI is locked in car mode when using lunch combo am65xevm_auto-userdebug. https://source.android.com/devices/automotive https://developer.android.com/training/cars Separated the content necessary for Android Auto from baseline tablet interface. Result is two lunch combos: 1) am65xevm-userdebug 2) am65xevm_auto-userdebug Test: Build,Boot with am65xevm-userdebug and am65xevm_auto-userdebug Test: Look and feel test of Automotive HMI Test: Executed test plans CtsCarTestCases and vts-hal-auto Signed-off-by: Josh Shafran <j-shafran@ti.com>
-rw-r--r--AndroidProducts.mk4
-rw-r--r--BoardConfig.mk7
-rw-r--r--auto/am65xevm.mk26
-rw-r--r--auto/device.mk29
-rw-r--r--auto/manifest.xml11
5 files changed, 77 insertions, 0 deletions
diff --git a/AndroidProducts.mk b/AndroidProducts.mk
index 7086394..ee7bc80 100644
--- a/AndroidProducts.mk
+++ b/AndroidProducts.mk
@@ -16,8 +16,12 @@
16 16
17PRODUCT_MAKEFILES := \ 17PRODUCT_MAKEFILES := \
18 am65xevm:$(LOCAL_DIR)/am65xevm.mk \ 18 am65xevm:$(LOCAL_DIR)/am65xevm.mk \
19 am65xevm_auto:$(LOCAL_DIR)/auto/am65xevm.mk \
19 20
20COMMON_LUNCH_CHOICES := \ 21COMMON_LUNCH_CHOICES := \
21 am65xevm-eng \ 22 am65xevm-eng \
22 am65xevm-user \ 23 am65xevm-user \
23 am65xevm-userdebug \ 24 am65xevm-userdebug \
25 am65xevm_auto-eng \
26 am65xevm_auto-user \
27 am65xevm_auto-userdebug \
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 938c06c..9b7fd2e 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -63,6 +63,13 @@ TARGET_COPY_OUT_VENDOR := vendor
63BOARD_SEPOLICY_DIRS += \ 63BOARD_SEPOLICY_DIRS += \
64 device/ti/am65xevm/sepolicy 64 device/ti/am65xevm/sepolicy
65 65
66ifeq ($(TARGET_PRODUCT), am65xevm_auto)
67BOARD_SEPOLICY_DIRS += \
68 packages/services/Car/car_product/sepolicy
69
70DEVICE_MANIFEST_FILE += device/ti/am65xevm/auto/manifest.xml
71endif
72
66BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true 73BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
67 74
68BOARD_ALL_MODULES := $(shell find $(KERNELDIR) -type f -iname '*.ko') 75BOARD_ALL_MODULES := $(shell find $(KERNELDIR) -type f -iname '*.ko')
diff --git a/auto/am65xevm.mk b/auto/am65xevm.mk
new file mode 100644
index 0000000..096a54e
--- /dev/null
+++ b/auto/am65xevm.mk
@@ -0,0 +1,26 @@
1#
2# Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/
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$(call inherit-product, device/ti/am65xevm/device-common.mk)
18$(call inherit-product, device/ti/am65xevm/auto/device.mk)
19$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
20$(call inherit-product, packages/services/Car/car_product/build/car.mk)
21
22PRODUCT_NAME := am65xevm_auto
23PRODUCT_DEVICE := am65xevm
24PRODUCT_BRAND := TI
25PRODUCT_MODEL := AOSP Auto on AM65x EVM
26PRODUCT_MANUFACTURER := Texas Instruments Inc
diff --git a/auto/device.mk b/auto/device.mk
new file mode 100644
index 0000000..51b7e04
--- /dev/null
+++ b/auto/device.mk
@@ -0,0 +1,29 @@
1#
2# Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/
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#Automotive
18PRODUCT_PACKAGES += \
19 android.hardware.automotive.vehicle@2.0-service \
20
21PRODUCT_COPY_FILES += \
22 frameworks/native/data/etc/android.hardware.type.automotive.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.type.automotive.xml \
23 frameworks/native/data/etc/android.hardware.screen.landscape.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.screen.landscape.xml \
24
25PRODUCT_PROPERTY_OVERRIDES += \
26 android.car.drawer.unlimited=true \
27 android.car.hvac.demo=true \
28 com.android.car.radio.demo=true \
29 com.android.car.radio.demo.dual=true \
diff --git a/auto/manifest.xml b/auto/manifest.xml
new file mode 100644
index 0000000..660b03d
--- /dev/null
+++ b/auto/manifest.xml
@@ -0,0 +1,11 @@
1<manifest version="1.0" type="device">
2 <hal format="hidl">
3 <name>android.hardware.automotive.vehicle</name>
4 <transport>hwbinder</transport>
5 <version>2.0</version>
6 <interface>
7 <name>IVehicle</name>
8 <instance>default</instance>
9 </interface>
10 </hal>
11</manifest>