From a6e397838ab522bec779a15e24636f9b97058258 Mon Sep 17 00:00:00 2001 From: Gaurav Sarode Date: Thu, 13 Jul 2023 17:07:13 -0700 Subject: Add Tangorpro_car build support bug: 291147977 Test: local build and flash Change-Id: I6b0822161aa8fbe0b3f7c76d46a5819b4344cfb3 --- AndroidProducts.mk | 3 ++- tangorpro_car/BoardConfig.mk | 19 +++++++++++++++++++ tangorpro_car/aosp_tangorpro_car.mk | 29 +++++++++++++++++++++++++++++ tangorpro_car/device-tangorpro-car.mk | 29 +++++++++++++++++++++++++++++ 4 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 tangorpro_car/BoardConfig.mk create mode 100644 tangorpro_car/aosp_tangorpro_car.mk create mode 100644 tangorpro_car/device-tangorpro-car.mk diff --git a/AndroidProducts.mk b/AndroidProducts.mk index 5044b69..ebdd5cd 100644 --- a/AndroidProducts.mk +++ b/AndroidProducts.mk @@ -24,7 +24,8 @@ PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/panther_car/aosp_panther_car.mk \ $(LOCAL_DIR)/raven_car/aosp_raven_car.mk \ $(LOCAL_DIR)/redfin_car/aosp_redfin_car.mk \ - $(LOCAL_DIR)/sunfish_car/aosp_sunfish_car.mk + $(LOCAL_DIR)/sunfish_car/aosp_sunfish_car.mk \ + $(LOCAL_DIR)/tangorpro_car/aosp_tangorpro_car.mk COMMON_LUNCH_CHOICES := \ diff --git a/tangorpro_car/BoardConfig.mk b/tangorpro_car/BoardConfig.mk new file mode 100644 index 0000000..691fdc4 --- /dev/null +++ b/tangorpro_car/BoardConfig.mk @@ -0,0 +1,19 @@ +# +# Copyright (C) 2023 The Android Open-Source 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. +# + +# * TARGET_SCREEN_DENSITY is scaled down by 1.6x + +TARGET_SCREEN_DENSITY := 200 diff --git a/tangorpro_car/aosp_tangorpro_car.mk b/tangorpro_car/aosp_tangorpro_car.mk new file mode 100644 index 0000000..aeb9a9e --- /dev/null +++ b/tangorpro_car/aosp_tangorpro_car.mk @@ -0,0 +1,29 @@ +# +# Copyright 2023 The Android Open-Source 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. +# + +DEVICE_IS_64BIT_ONLY := true + + +$(call inherit-product, device/google_car/common/pre_google_car.mk) +$(call inherit-product, device/google_car/tangorpro_car/device-tangorpro-car.mk) +$(call inherit-product, device/google_car/common/post_google_car.mk) + + +PRODUCT_NAME := aosp_tangorpro_car +PRODUCT_DEVICE := tangorpro +PRODUCT_MODEL := AOSP on Tangorpro +PRODUCT_BRAND := Android +PRODUCT_MANUFACTURER := Google diff --git a/tangorpro_car/device-tangorpro-car.mk b/tangorpro_car/device-tangorpro-car.mk new file mode 100644 index 0000000..b425e88 --- /dev/null +++ b/tangorpro_car/device-tangorpro-car.mk @@ -0,0 +1,29 @@ +# +# Copyright 2023 The Android Open Source 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. +# + +PHONE_CAR_BOARD_PRODUCT := tangorpro_car + +$(call inherit-product, packages/services/Car/car_product/build/car.mk) + +$(call inherit-product, device/google/tangorpro/device-tangorpro.mk) + +#include device/google/gs101/uwb/uwb.mk + +PRODUCT_PRODUCT_PROPERTIES+= \ + ro.adb.secure=0 + +PRODUCT_PACKAGES += \ + librs_jni -- cgit v1.2.3