summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaurav Sarode <sgaurav@google.com>2020-10-09 18:00:56 -0700
committerGaurav Sarode <sgaurav@google.com>2020-10-12 17:35:04 +0000
commit81986403e5bccd51cf9b4255a6e914f0cfe85788 (patch)
tree2113862ca386925e28ce23a4b00e40932652e583
parent8665444ea9b1c9e86961610bb3dff2d36ac189d3 (diff)
downloadgoogle_car-81986403e5bccd51cf9b4255a6e914f0cfe85788.tar.gz
Add support for bramble automotive build
bug: 170519046 Test: Local build Change-Id: Ie05de002f110181707448ba200cf8c44938455ed
-rw-r--r--AndroidProducts.mk2
-rw-r--r--bramble_car/BoardConfig.mk32
-rw-r--r--bramble_car/aosp_bramble_car.mk27
-rw-r--r--bramble_car/device-bramble-car.mk24
4 files changed, 85 insertions, 0 deletions
diff --git a/AndroidProducts.mk b/AndroidProducts.mk
index 32f131e..909090d 100644
--- a/AndroidProducts.mk
+++ b/AndroidProducts.mk
@@ -17,6 +17,7 @@
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/blueline_car/aosp_blueline_car.mk \
$(LOCAL_DIR)/bonito_car/aosp_bonito_car.mk \
+ $(LOCAL_DIR)/bramble_car/aosp_bramble_car.mk \
$(LOCAL_DIR)/coral_car/aosp_coral_car.mk \
$(LOCAL_DIR)/crosshatch_car/aosp_crosshatch_car.mk \
$(LOCAL_DIR)/flame_car/aosp_flame_car.mk \
@@ -28,6 +29,7 @@ PRODUCT_MAKEFILES := \
COMMON_LUNCH_CHOICES := \
aosp_blueline_car-userdebug \
aosp_bonito_car-userdebug \
+ aosp_bramble_car-userdebug \
aosp_coral_car-userdebug \
aosp_crosshatch_car-userdebug \
aosp_flame_car-userdebug \
diff --git a/bramble_car/BoardConfig.mk b/bramble_car/BoardConfig.mk
new file mode 100644
index 0000000..bd92c49
--- /dev/null
+++ b/bramble_car/BoardConfig.mk
@@ -0,0 +1,32 @@
+#
+# Copyright (C) 2020 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.
+#
+
+# Contents of this file were copied from device/google/sunfish/sunfish/BoardConfig.mk,
+# except for:
+#
+# * TARGET_SCREEN_DENSITY is scaled down by 1.75x
+
+
+TARGET_BOOTLOADER_BOARD_NAME := bramble
+TARGET_RECOVERY_UI_MARGIN_HEIGHT := 165
+USES_DEVICE_GOOGLE_BRAMBLE := true
+
+include device/google/redbull/BoardConfig-common.mk
+
+# Testing related defines
+#BOARD_PERFSETUP_SCRIPT := platform_testing/scripts/perf-setup/b5-setup.sh
+
+-include vendor/google_devices/$(TARGET_BOOTLOADER_BOARD_NAME)/proprietary/BoardConfigVendor.mk
diff --git a/bramble_car/aosp_bramble_car.mk b/bramble_car/aosp_bramble_car.mk
new file mode 100644
index 0000000..f909d56
--- /dev/null
+++ b/bramble_car/aosp_bramble_car.mk
@@ -0,0 +1,27 @@
+#
+# Copyright 2020 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.
+#
+
+$(call inherit-product, device/google_car/common/pre_google_car.mk)
+$(call inherit-product, device/google_car/bramble_car/device-bramble-car.mk)
+$(call inherit-product-if-exists, vendor/google_devices/bramble/proprietary/device-vendor.mk)
+$(call inherit-product-if-exists, vendor/google_devices/bramble/prebuilts/device-vendor-bramble.mk)
+$(call inherit-product, device/google_car/common/post_google_car.mk)
+
+PRODUCT_MANUFACTURER := Google
+PRODUCT_BRAND := Android
+PRODUCT_NAME := aosp_bramble_car
+PRODUCT_DEVICE := bramble
+PRODUCT_MODEL := AOSP on bramble
diff --git a/bramble_car/device-bramble-car.mk b/bramble_car/device-bramble-car.mk
new file mode 100644
index 0000000..edbd7bf
--- /dev/null
+++ b/bramble_car/device-bramble-car.mk
@@ -0,0 +1,24 @@
+#
+# Copyright 2020 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_CONFIG := device/google_car/bramble_car/BoardConfig.mk
+
+$(call inherit-product, packages/services/Car/car_product/build/car.mk)
+
+$(call inherit-product, device/google/bramble/device-bramble.mk)
+
+PRODUCT_PRODUCT_PROPERTIES+= \
+ ro.adb.secure=0