Create a target for kryo385 arch variant.

Support a new arch variant to be able to test Armv8.X features
on Pixel 3.

The target cpu for this build is kryo385 Qualcomm Snapdragon 845.

Test: run test with android chroot.

Change-Id: Iab2cb4202870a4d8023df25d55ba87b09eac6308
diff --git a/armv8_kryo385/AndroidProducts.mk b/armv8_kryo385/AndroidProducts.mk
new file mode 100644
index 0000000..d5b7ded
--- /dev/null
+++ b/armv8_kryo385/AndroidProducts.mk
@@ -0,0 +1,18 @@
+#
+# Copyright (C) 2018 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.
+#
+
+PRODUCT_MAKEFILES := \
+    $(LOCAL_DIR)/armv8_kryo385.mk
diff --git a/armv8_kryo385/BoardConfig.mk b/armv8_kryo385/BoardConfig.mk
new file mode 100644
index 0000000..428516c
--- /dev/null
+++ b/armv8_kryo385/BoardConfig.mk
@@ -0,0 +1,29 @@
+
+# Copyright (C) 2018 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_NO_BOOTLOADER := true
+TARGET_NO_KERNEL := true
+TARGET_ARCH := arm64
+
+TARGET_CPU_ABI := arm64-v8a
+TARGET_CPU_SMP := true
+TARGET_CPU_VARIANT := kryo385
+TARGET_ARCH_VARIANT := armv8-2a
+
+TARGET_PREFER_32_BIT_APPS :=
+TARGET_SUPPORTS_32_BIT_APPS :=
+TARGET_SUPPORTS_64_BIT_APPS := true
+
diff --git a/armv8_kryo385/armv8_kryo385.mk b/armv8_kryo385/armv8_kryo385.mk
new file mode 100644
index 0000000..c926dc6
--- /dev/null
+++ b/armv8_kryo385/armv8_kryo385.mk
@@ -0,0 +1,28 @@
+#
+# Copyright (C) 2018 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.
+#
+
+PRODUCT_COPY_FILES += \
+    art/tools/public.libraries.buildbot.txt:system/etc/public.libraries.txt
+
+$(call inherit-product, build/target/product/core_minimal.mk)
+
+PRODUCT_NAME := armv8_kryo385
+PRODUCT_DEVICE := armv8_kryo385
+PRODUCT_BRAND := Android
+PRODUCT_MODEL := Qualcomm Kryo385
+
+# Force 64bits executables.
+PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.zygote=zygote64
diff --git a/armv8_kryo385/vendorsetup.sh b/armv8_kryo385/vendorsetup.sh
new file mode 100644
index 0000000..5fdb42c
--- /dev/null
+++ b/armv8_kryo385/vendorsetup.sh
@@ -0,0 +1,17 @@
+#
+# Copyright (C) 2018 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.
+#
+
+add_lunch_combo armv8_kryo385-eng