pixel3_mainline: Add support for Pixel3 AOSP target running mainline kernel
Boots Blueline (Pixel3) to console. Graphics broken
due to missing drm, panel driver and firmware files.
Change-Id: Ibd3df4e03f093ec34b7f3eb5f6394a0a811ce139
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
diff --git a/pixel3_mainline/BoardConfig.mk b/pixel3_mainline/BoardConfig.mk
new file mode 100644
index 0000000..03fce75
--- /dev/null
+++ b/pixel3_mainline/BoardConfig.mk
@@ -0,0 +1,14 @@
+include device/linaro/dragonboard/BoardConfigCommon.mk
+
+# Board Information
+TARGET_BOOTLOADER_BOARD_NAME := pixel3_mainline
+TARGET_BOARD_PLATFORM := pixel3_mainline
+
+# Image Configuration
+BOARD_BOOTIMAGE_PARTITION_SIZE := 0x04000000
+BOARD_USERDATAIMAGE_PARTITION_SIZE := 10737418240
+BOARD_FLASH_BLOCK_SIZE := 131072
+# Super partition
+BOARD_SUPER_PARTITION_SIZE := 2952790016
+BOARD_DB_DYNAMIC_PARTITIONS_SIZE := 2952790016
+BOARD_SUPER_PARTITION_METADATA_DEVICE := system_b
diff --git a/pixel3_mainline/device.mk b/pixel3_mainline/device.mk
new file mode 100644
index 0000000..aab118b
--- /dev/null
+++ b/pixel3_mainline/device.mk
@@ -0,0 +1,30 @@
+#
+# Copyright (C) 2011 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.
+#
+
+# copied from crosshatch
+# setup dalvik vm configs
+$(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)
+
+PRODUCT_COPY_FILES := \
+ device/linaro/dragonboard/fstab.ramdisk.common:$(TARGET_COPY_OUT_RAMDISK)/fstab.pixel3_mainline \
+ device/linaro/dragonboard/fstab.ramdisk.common:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.pixel3_mainline \
+ device/linaro/dragonboard/fstab.common:$(TARGET_COPY_OUT_VENDOR)/etc/init/fstab.pixel3_mainline \
+ device/linaro/dragonboard/init.common.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.pixel3_mainline.rc \
+ device/linaro/dragonboard/init.common.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.pixel3_mainline.usb.rc \
+ device/linaro/dragonboard/common.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/pixel3_mainline.kl
+
+# Build generic Audio HAL
+PRODUCT_PACKAGES := audio.primary.pixel3_mainline