Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

LOCAL_PATH := $(call my-dir)

ifneq ($(filter waydroid_arm64 waydroid_arm64_only waydroid_arm waydroid_x86 waydroid_x86_64,$(TARGET_DEVICE)),)
ifneq ($(filter waydroid_%,$(TARGET_DEVICE)),)
include $(call all-makefiles-under,$(LOCAL_PATH))

ifneq ($(filter waydroid_arm64 waydroid_arm64_only waydroid_arm,$(TARGET_DEVICE)),)
ifneq ($(filter waydroid_arm64 waydroid_arm64_only waydroid_arm waydroid_tv_arm64 waydroid_tv_arm64_only waydroid_tv_arm,$(TARGET_DEVICE)),)
MPVR_SYMLINK += $(TARGET_OUT_VENDOR)/lib/libmpvr.so
$(MPVR_SYMLINK): $(LOCAL_INSTALLED_MODULE)
@mkdir -p $(dir $@)
Expand All @@ -41,7 +41,7 @@ $(EGL_MOUNT_POINT): $(LOCAL_INSTALLED_MODULE)
ALL_DEFAULT_INSTALLED_MODULES += $(EGL_MOUNT_POINT)
endif

ifneq ($(filter waydroid_arm64 waydroid_arm64_only,$(TARGET_DEVICE)),)
ifneq ($(filter waydroid_arm64 waydroid_arm64_only waydroid_tv_arm64 waydroid_tv_arm64_only,$(TARGET_DEVICE)),)
MPVR64_SYMLINK += $(TARGET_OUT_VENDOR)/lib64/libmpvr.so
$(MPVR64_SYMLINK): $(LOCAL_INSTALLED_MODULE)
@mkdir -p $(dir $@)
Expand Down
24 changes: 22 additions & 2 deletions AndroidProducts.mk
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ PRODUCT_MAKEFILES := \
$(VENDOR_NAME)_waydroid_arm64_only:$(LOCAL_DIR)/waydroid_arm64_only/$(VENDOR_NAME)_waydroid_arm64_only.mk \
$(VENDOR_NAME)_waydroid_arm:$(LOCAL_DIR)/waydroid_arm/$(VENDOR_NAME)_waydroid_arm.mk \
$(VENDOR_NAME)_waydroid_x86:$(LOCAL_DIR)/waydroid_x86/$(VENDOR_NAME)_waydroid_x86.mk \
$(VENDOR_NAME)_waydroid_x86_64:$(LOCAL_DIR)/waydroid_x86_64/$(VENDOR_NAME)_waydroid_x86_64.mk
$(VENDOR_NAME)_waydroid_x86_64:$(LOCAL_DIR)/waydroid_x86_64/$(VENDOR_NAME)_waydroid_x86_64.mk \
$(VENDOR_NAME)_waydroid_tv_arm64:$(LOCAL_DIR)/waydroid_tv_arm64/$(VENDOR_NAME)_waydroid_tv_arm64.mk \
$(VENDOR_NAME)_waydroid_tv_arm64_only:$(LOCAL_DIR)/waydroid_tv_arm64_only/$(VENDOR_NAME)_waydroid_tv_arm64_only.mk \
$(VENDOR_NAME)_waydroid_tv_arm:$(LOCAL_DIR)/waydroid_tv_arm/$(VENDOR_NAME)_waydroid_tv_arm.mk \
$(VENDOR_NAME)_waydroid_tv_x86:$(LOCAL_DIR)/waydroid_tv_x86/$(VENDOR_NAME)_waydroid_tv_x86.mk \
$(VENDOR_NAME)_waydroid_tv_x86_64:$(LOCAL_DIR)/waydroid_tv_x86_64/$(VENDOR_NAME)_waydroid_tv_x86_64.mk

COMMON_LUNCH_CHOICES := \
$(VENDOR_NAME)_waydroid_arm64-user \
Expand All @@ -43,4 +48,19 @@ COMMON_LUNCH_CHOICES := \
$(VENDOR_NAME)_waydroid_x86-eng \
$(VENDOR_NAME)_waydroid_x86_64-user \
$(VENDOR_NAME)_waydroid_x86_64-userdebug \
$(VENDOR_NAME)_waydroid_x86_64-eng
$(VENDOR_NAME)_waydroid_x86_64-eng \
$(VENDOR_NAME)_waydroid_tv_arm64-user \
$(VENDOR_NAME)_waydroid_tv_arm64-userdebug \
$(VENDOR_NAME)_waydroid_tv_arm64-eng \
$(VENDOR_NAME)_waydroid_tv_arm64_only-user \
$(VENDOR_NAME)_waydroid_tv_arm64_only-userdebug \
$(VENDOR_NAME)_waydroid_tv_arm64_only-eng \
$(VENDOR_NAME)_waydroid_tv_arm-user \
$(VENDOR_NAME)_waydroid_tv_arm-userdebug \
$(VENDOR_NAME)_waydroid_tv_arm-eng \
$(VENDOR_NAME)_waydroid_tv_x86-user \
$(VENDOR_NAME)_waydroid_tv_x86-userdebug \
$(VENDOR_NAME)_waydroid_tv_x86-eng \
$(VENDOR_NAME)_waydroid_tv_x86_64-user \
$(VENDOR_NAME)_waydroid_tv_x86_64-userdebug \
$(VENDOR_NAME)_waydroid_tv_x86_64-eng
15 changes: 12 additions & 3 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,22 @@
# limitations under the License.
#

ifeq ($(PRODUCT_IS_ATV),true)
# Inherit from atv products.
$(call inherit-product, device/google/atv/products/atv_base.mk)

# Inherit some common ROM stuff
$(call inherit-product-if-exists, vendor/lineage/config/common_full_tv.mk)
else
# Inherit from aosp products.
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_p.mk)

# Inherit some common ROM stuff
$(call inherit-product-if-exists, vendor/lineage/config/common_full_tablet_wifionly.mk)
$(call inherit-product-if-exists, vendor/bliss/config/common_full_tablet_wifionly.mk)
endif

$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_p.mk)

# Enable automatic partition size
PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true
Expand Down Expand Up @@ -154,7 +163,7 @@ PRODUCT_COPY_FILES += \
endif

# Media - Stagefright FFMPEG plugin
ifneq ($(filter %_waydroid_x86 %_waydroid_x86_64,$(TARGET_PRODUCT)),)
ifneq ($(filter %_waydroid_x86 %_waydroid_x86_64 %_waydroid_tv_x86 %_waydroid_tv_x86_64,$(TARGET_PRODUCT)),)
PRODUCT_PACKAGES += \
libffmpeg_omx \
media_codecs_ffmpeg.xml
Expand Down Expand Up @@ -230,7 +239,7 @@ PRODUCT_SOONG_NAMESPACES += \
PRODUCT_PACKAGES += \
vndservicemanager

ifeq ($(filter %_waydroid_x86 %_waydroid_x86_64,$(TARGET_PRODUCT)),)
ifeq ($(filter %_waydroid_x86 %_waydroid_x86_64 %_waydroid_tv%,$(TARGET_PRODUCT)),)
PRODUCT_EXTRA_VNDK_VERSIONS := 28 29 30
endif

Expand Down
32 changes: 32 additions & 0 deletions waydroid_tv_arm/BoardConfig.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#
# Copyright (C) 2021 The Waydroid 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.
#

-include device/waydroid/waydroid/BoardConfig.mk

# Architecture
TARGET_ARCH := arm
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_CPU_VARIANT := generic

# Disable scudo
MALLOC_SVELTE := true

ifneq ($(TARGET_USE_MESA),false)
BOARD_MESA3D_GALLIUM_DRIVERS += freedreno v3d vc4 etnaviv tegra panfrost lima
BOARD_MESA3D_VULKAN_DRIVERS += broadcom freedreno panfrost
endif
26 changes: 26 additions & 0 deletions waydroid_tv_arm/lineage_waydroid_tv_arm.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#
# Copyright (C) 2021 The Waydroid 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.
#

PRODUCT_IS_ATV := true

# Inherit from waydroid device
$(call inherit-product, $(LOCAL_PATH)/../device.mk)

PRODUCT_BRAND := waydroid
PRODUCT_DEVICE := waydroid_arm
PRODUCT_MANUFACTURER := Waydroid
PRODUCT_NAME := lineage_waydroid_tv_arm
PRODUCT_MODEL := WayDroid arm Device (32-bit only) (TV form factor)
38 changes: 38 additions & 0 deletions waydroid_tv_arm64/BoardConfig.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#
# Copyright (C) 2021 The Waydroid 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.
#

-include device/waydroid/waydroid/BoardConfig.mk

# Architecture
TARGET_ARCH := arm64
TARGET_ARCH_VARIANT := armv8-a
TARGET_CPU_ABI := arm64-v8a
TARGET_CPU_ABI2 :=
TARGET_CPU_VARIANT := generic

TARGET_2ND_ARCH := arm
TARGET_2ND_ARCH_VARIANT := armv8-a
TARGET_2ND_CPU_ABI := armeabi-v7a
TARGET_2ND_CPU_ABI2 := armeabi
TARGET_2ND_CPU_VARIANT := generic

# Disable scudo
MALLOC_SVELTE := true

ifneq ($(TARGET_USE_MESA),false)
BOARD_MESA3D_GALLIUM_DRIVERS += freedreno v3d vc4 etnaviv tegra panfrost lima
BOARD_MESA3D_VULKAN_DRIVERS += broadcom freedreno panfrost
endif
29 changes: 29 additions & 0 deletions waydroid_tv_arm64/lineage_waydroid_tv_arm64.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#
# Copyright (C) 2021 The Waydroid 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.
#

PRODUCT_IS_ATV := true

# Inherit from those products. Most specific first.
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)

# Inherit from waydroid device
$(call inherit-product, $(LOCAL_PATH)/../device.mk)

PRODUCT_BRAND := waydroid
PRODUCT_DEVICE := waydroid_tv_arm64
PRODUCT_MANUFACTURER := Waydroid
PRODUCT_NAME := lineage_waydroid_tv_arm64
PRODUCT_MODEL := WayDroid arm64 Device (TV form factor)
40 changes: 40 additions & 0 deletions waydroid_tv_arm64_only/BoardConfig.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#
# Copyright (C) 2021 The Waydroid 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.
#

-include device/waydroid/waydroid/BoardConfig.mk

# Architecture
TARGET_ARCH := arm64
TARGET_ARCH_VARIANT := armv8-a
TARGET_CPU_ABI := arm64-v8a
TARGET_CPU_ABI2 :=
TARGET_CPU_VARIANT := generic

TARGET_2ND_ARCH :=
TARGET_2ND_ARCH_VARIANT :=
TARGET_2ND_CPU_ABI :=
TARGET_2ND_CPU_ABI2 :=
TARGET_2ND_CPU_VARIANT :=

# Disable scudo
MALLOC_SVELTE := true

AUDIOSERVER_MULTILIB := first

ifneq ($(TARGET_USE_MESA),false)
BOARD_MESA3D_GALLIUM_DRIVERS += freedreno v3d vc4 etnaviv tegra panfrost lima
BOARD_MESA3D_VULKAN_DRIVERS += broadcom freedreno panfrost
endif
30 changes: 30 additions & 0 deletions waydroid_tv_arm64_only/lineage_waydroid_tv_arm64_only.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# Copyright (C) 2021 The Waydroid 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.
#

PRODUCT_IS_ATV := true
TARGET_SUPPORTS_OMX_SERVICE := true

# Inherit from those products. Most specific first.
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit_only.mk)

# Inherit from waydroid device
$(call inherit-product, $(LOCAL_PATH)/../device.mk)

PRODUCT_BRAND := waydroid
PRODUCT_DEVICE := waydroid_tv_arm64_only
PRODUCT_MANUFACTURER := Waydroid
PRODUCT_NAME := lineage_waydroid_tv_arm64_only
PRODUCT_MODEL := WayDroid arm64 only Device (TV form factor)
30 changes: 30 additions & 0 deletions waydroid_tv_x86/BoardConfig.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# Copyright (C) 2021 The Waydroid 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.
#

-include device/waydroid/waydroid/BoardConfig.mk

# Architecture
TARGET_CPU_ABI := x86
TARGET_ARCH := x86
TARGET_ARCH_VARIANT := x86

ifneq ($(TARGET_USE_MESA),false)
BOARD_MESA3D_GALLIUM_DRIVERS += i915 iris crocus
BOARD_MESA3D_VULKAN_DRIVERS += intel intel_hasvk
endif

# Disable scudo
MALLOC_SVELTE := true
26 changes: 26 additions & 0 deletions waydroid_tv_x86/lineage_waydroid_tv_x86.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#
# Copyright (C) 2021 The Waydroid 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.
#

PRODUCT_IS_ATV := true

# Inherit from waydroid device
$(call inherit-product, $(LOCAL_PATH)/../device.mk)

PRODUCT_BRAND := waydroid
PRODUCT_DEVICE := waydroid_tv_x86
PRODUCT_MANUFACTURER := Waydroid
PRODUCT_NAME := lineage_waydroid_tv_x86
PRODUCT_MODEL := WayDroid x86 Device (TV form factor)
31 changes: 31 additions & 0 deletions waydroid_tv_x86_64/BoardConfig.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# Copyright (C) 2021 The Waydroid 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.
#

-include device/waydroid/waydroid/BoardConfig.mk

# Architecture
TARGET_CPU_ABI := x86_64
TARGET_ARCH := x86_64
TARGET_ARCH_VARIANT := x86_64

TARGET_2ND_CPU_ABI := x86
TARGET_2ND_ARCH := x86
TARGET_2ND_ARCH_VARIANT := x86_64

ifneq ($(TARGET_USE_MESA),false)
BOARD_MESA3D_GALLIUM_DRIVERS += i915 iris crocus
BOARD_MESA3D_VULKAN_DRIVERS += intel intel_hasvk
endif
Loading