summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlya Trafimovich <skvadrik@google.com>2023-06-12 12:57:19 +0100
committerUlya Trafimovich <skvadrik@google.com>2023-06-22 12:11:09 +0100
commitf13c855cfb588b67198d93770c74cc7306f878a9 (patch)
treebf869e0821437b36bd95a84623120b85969a5653
parent5d4826c180190e08fddcdbef4f7fb2b00baa39ac (diff)
downloadart-f13c855cfb588b67198d93770c74cc7306f878a9.tar.gz
Add riscv64 lunch target.
Test: lunch riscv64 && art/tools/buildbot-build.sh --target Bug: 271573990 Change-Id: Iddd4fcbc8fa531b8de747f6a50dc05794a91a757
-rw-r--r--riscv64/AndroidProducts.mk21
-rw-r--r--riscv64/BoardConfig.mk28
-rw-r--r--riscv64/riscv64.mk28
3 files changed, 77 insertions, 0 deletions
diff --git a/riscv64/AndroidProducts.mk b/riscv64/AndroidProducts.mk
new file mode 100644
index 0000000..995ad74
--- /dev/null
+++ b/riscv64/AndroidProducts.mk
@@ -0,0 +1,21 @@
+#
+# 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.
+#
+
+PRODUCT_MAKEFILES := \
+ $(LOCAL_DIR)/riscv64.mk
+
+COMMON_LUNCH_CHOICES := \
+ riscv64-eng
diff --git a/riscv64/BoardConfig.mk b/riscv64/BoardConfig.mk
new file mode 100644
index 0000000..cb448e9
--- /dev/null
+++ b/riscv64/BoardConfig.mk
@@ -0,0 +1,28 @@
+
+# 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.
+#
+
+include device/generic/art/BoardConfigCommon.mk
+
+TARGET_ARCH := riscv64
+
+TARGET_CPU_ABI := riscv64
+TARGET_CPU_VARIANT := generic
+TARGET_ARCH_VARIANT :=
+
+TARGET_SUPPORTS_64_BIT_APPS := true
+
+# Temporary hack while prebuilt modules are missing riscv64.
+ALLOW_MISSING_DEPENDENCIES := true
diff --git a/riscv64/riscv64.mk b/riscv64/riscv64.mk
new file mode 100644
index 0000000..47e824e
--- /dev/null
+++ b/riscv64/riscv64.mk
@@ -0,0 +1,28 @@
+#
+# 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.
+#
+
+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 := riscv64
+PRODUCT_DEVICE := riscv64
+PRODUCT_BRAND := Android
+PRODUCT_MODEL := RISCV64
+
+# Force 64bits executables.
+PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.zygote=zygote64