summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2016-08-04 01:10:20 (GMT)
committerRob Herring <robh@kernel.org>2016-08-04 16:37:49 (GMT)
commit410b0f78e45885b229871c99d48ef9adaac5fd51 (patch)
treee202ce34facb8a095acdf7fbcc6fb60c59c5c76b
parenta05058069ab72985dc252a92d8a3b472d141c43f (diff)
downloadandroid-device-linaro-generic-410b0f78e45885b229871c99d48ef9adaac5fd51.tar.gz
android-device-linaro-generic-410b0f78e45885b229871c99d48ef9adaac5fd51.tar.xz
Add support for TV device configuration
This adds a kconfig option to enable Android TV apps and UI. This requires downloading and extracting the Leanback Launcher binary for Nexus Player. It is available here: https://developers.google.com/android/nexus/blobs-preview#nexus-player-fugu-binaries-for-android-3096662 May also need to set config_defaultUiModeType, but things seem to work with same without it. Signed-off-by: Rob Herring <robh@kernel.org>
-rw-r--r--Kconfig17
-rw-r--r--device.mk4
-rw-r--r--device_tablet.mk17
-rw-r--r--device_tv.mk21
4 files changed, 58 insertions, 1 deletions
diff --git a/Kconfig b/Kconfig
index 90e14da..b73f2cb 100644
--- a/Kconfig
+++ b/Kconfig
@@ -1,5 +1,22 @@
mainmenu "Android Device Configuration"
+choice
+ prompt "Device Type"
+ default TABLET
+
+config TABLET
+ bool "Tablet"
+
+config TV
+ bool "TV"
+ help
+ Configure the build for Android TV device.
+
+ This requires the LeanbackLauncher from fugu device available here:
+ https://dl.google.com/dl/android/aosp/google-fugu-3096662-f2671c41.tgz
+
+endchoice
+
menu "Image Configuration"
config BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE
diff --git a/device.mk b/device.mk
index 6f78af1..d9e7ddb 100644
--- a/device.mk
+++ b/device.mk
@@ -16,7 +16,9 @@
include $(LOCAL_PATH)/config.mk
-$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
+include $(if $(CONFIG_TV), $(LOCAL_PATH)/device_tv.mk)
+include $(if $(CONFIG_TABLET), $(LOCAL_PATH)/device_tablet.mk)
+
$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
PRODUCT_NAME := $(TARGET_PRODUCT)
diff --git a/device_tablet.mk b/device_tablet.mk
new file mode 100644
index 0000000..a0f4b46
--- /dev/null
+++ b/device_tablet.mk
@@ -0,0 +1,17 @@
+#
+# Copyright (C) 2016 Linaro, Ltd.
+#
+# 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.
+#
+
+$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
diff --git a/device_tv.mk b/device_tv.mk
new file mode 100644
index 0000000..bc8be67
--- /dev/null
+++ b/device_tv.mk
@@ -0,0 +1,21 @@
+#
+# Copyright (C) 2016 Linaro, Ltd.
+#
+# 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.
+#
+
+$(call inherit-product, device/google/atv/products/atv_base.mk)
+
+PRODUCT_CHARACTERISTICS := tv
+
+PRODUCT_PACKAGES += $(if $(CONFIG_TV), LeanbackLauncher)