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 17# This file defines: 18# BERBERIS_PRODUCT_PACKAGES - list of main product packages 19# BERBERIS_DEV_PRODUCT_PACKAGES - list of development packages 20# 21 22include frameworks/libs/binary_translation/berberis_config.mk 23 24PRODUCT_PACKAGES += \ 25 $(BERBERIS_PRODUCT_PACKAGES) \ 26 $(BERBERIS_PRODUCT_PACKAGES_RISCV64_TO_X86_64) 27 28# ATTENTION: we are overriding 29# PRODUCT_SYSTEM_PROPERTIES += ro.dalvik.vm.native.bridge?=0 30# set by build/make/target/product/runtime_libart.mk 31PRODUCT_SYSTEM_PROPERTIES += \ 32 ro.dalvik.vm.native.bridge=libberberis_riscv64.so 33 34PRODUCT_SYSTEM_PROPERTIES += \ 35 ro.dalvik.vm.isa.riscv64=x86_64 \ 36 ro.enable.native.bridge.exec=1 37 38PRODUCT_SOONG_NAMESPACES += frameworks/libs/native_bridge_support/android_api/libc 39 40PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \ 41 $(BERBERIS_DISTRIBUTION_ARTIFACTS_RISCV64) 42 43BUILD_BERBERIS := true 44BUILD_BERBERIS_RISCV64_TO_X86_64 := true 45$(call soong_config_set,berberis,translation_arch,riscv64_to_x86_64) 46