# # 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 frameworks/libs/binary_translation/berberis_config.mk PRODUCT_PACKAGES += $(BERBERIS_PRODUCT_PACKAGES_RISCV64_TO_X86_64) # ATTENTION: we are overriding # PRODUCT_SYSTEM_PROPERTIES += ro.dalvik.vm.native.bridge?=0 # set by build/make/target/product/runtime_libart.mk PRODUCT_SYSTEM_PROPERTIES += \ ro.dalvik.vm.native.bridge=libberberis_riscv64.so PRODUCT_SYSTEM_PROPERTIES += \ ro.dalvik.vm.isa.riscv64=x86_64 \ ro.enable.native.bridge.exec=1 PRODUCT_SOONG_NAMESPACES += frameworks/libs/native_bridge_support/android_api/libc PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \ $(BERBERIS_DISTRIBUTION_ARTIFACTS_RISCV64) BUILD_BERBERIS := true BUILD_BERBERIS_RISCV64_TO_X86_64 := true $(call soong_config_set,berberis,translation_arch,riscv64_to_x86_64)