1# 2# Copyright (C) 2023 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17include frameworks/libs/binary_translation/berberis_config.mk 18 19PRODUCT_PACKAGES += $(BERBERIS_PRODUCT_PACKAGES_RISCV64_TO_X86_64) 20 21# ATTENTION: we are overriding 22# PRODUCT_SYSTEM_PROPERTIES += ro.dalvik.vm.native.bridge?=0 23# set by build/make/target/product/runtime_libart.mk 24PRODUCT_SYSTEM_PROPERTIES += \ 25 ro.dalvik.vm.native.bridge=libberberis_riscv64.so 26 27PRODUCT_SYSTEM_PROPERTIES += \ 28 ro.dalvik.vm.isa.riscv64=x86_64 \ 29 ro.enable.native.bridge.exec=1 30 31PRODUCT_SOONG_NAMESPACES += frameworks/libs/native_bridge_support/android_api/libc 32 33PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \ 34 $(BERBERIS_DISTRIBUTION_ARTIFACTS_RISCV64) 35 36BUILD_BERBERIS := true 37BUILD_BERBERIS_RISCV64_TO_X86_64 := true 38$(call soong_config_set,berberis,translation_arch,riscv64_to_x86_64) 39