87538e4f8b
Support TARGET_2ND_ARCH as the binary translation arch.
See target/board/generic_x86_arm/BoardConfig.mk and
target/product/aosp_x86_arm.mk as example for the setup.
In BoardConfig, use the TARGET_2ND_ARCH/etc. variables to set up the
binary translation arch;
Set "TARGET_TRANSLATE_2ND_ARCH := true" to tell the build system it's
not a typical 64-bit multilib configuration.
In product makefile, use "PRODUCT_PACKAGES += libfoo_<2nd_arch>" to
install the TARGET_2ND_ARCH libraries. This also pulls in any dependency
libraries.
By default we don't install any TARGET_2ND_ARCH modules, unless it's
pulled in by PRODUCT_PACKAGES.
Bug: 27526885
Change-Id: I0578e9c80da0532d2fa886a8fcdb140bbc703009
(cherry-pick from commit 277e75a488
)
74 lines
2.5 KiB
Makefile
74 lines
2.5 KiB
Makefile
#
|
|
# Copyright (C) 2008 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.
|
|
#
|
|
|
|
#
|
|
# This file should set PRODUCT_MAKEFILES to a list of product makefiles
|
|
# to expose to the build system. LOCAL_DIR will already be set to
|
|
# the directory containing this file.
|
|
# PRODUCT_MAKEFILES is set up in AndroidProducts.mks.
|
|
# Format of PRODUCT_MAKEFILES:
|
|
# <product_name>:<path_to_the_product_makefile>
|
|
# If the <product_name> is the same as the base file name (without dir
|
|
# and the .mk suffix) of the product makefile, "<product_name>:" can be
|
|
# omitted.
|
|
#
|
|
# This file may not rely on the value of any variable other than
|
|
# LOCAL_DIR; do not use any conditionals, and do not look up the
|
|
# value of any variable that isn't set in this file or in a file that
|
|
# it includes.
|
|
#
|
|
|
|
# Unbundled apps will be built with the most generic product config.
|
|
ifneq ($(TARGET_BUILD_APPS),)
|
|
PRODUCT_MAKEFILES := \
|
|
$(LOCAL_DIR)/aosp_arm.mk \
|
|
$(LOCAL_DIR)/full.mk \
|
|
$(LOCAL_DIR)/generic_armv5.mk \
|
|
$(LOCAL_DIR)/aosp_x86.mk \
|
|
$(LOCAL_DIR)/full_x86.mk \
|
|
$(LOCAL_DIR)/aosp_mips.mk \
|
|
$(LOCAL_DIR)/full_mips.mk \
|
|
$(LOCAL_DIR)/aosp_arm64.mk \
|
|
$(LOCAL_DIR)/aosp_mips64.mk \
|
|
$(LOCAL_DIR)/aosp_x86_64.mk
|
|
else
|
|
PRODUCT_MAKEFILES := \
|
|
$(LOCAL_DIR)/core.mk \
|
|
$(LOCAL_DIR)/generic.mk \
|
|
$(LOCAL_DIR)/generic_x86.mk \
|
|
$(LOCAL_DIR)/generic_mips.mk \
|
|
$(LOCAL_DIR)/aosp_arm.mk \
|
|
$(LOCAL_DIR)/full.mk \
|
|
$(LOCAL_DIR)/aosp_x86.mk \
|
|
$(LOCAL_DIR)/aosp_x86_arm.mk \
|
|
$(LOCAL_DIR)/full_x86.mk \
|
|
$(LOCAL_DIR)/aosp_mips.mk \
|
|
$(LOCAL_DIR)/full_mips.mk \
|
|
$(LOCAL_DIR)/aosp_arm64.mk \
|
|
$(LOCAL_DIR)/aosp_mips64.mk \
|
|
$(LOCAL_DIR)/aosp_x86_64.mk \
|
|
$(LOCAL_DIR)/sdk_phone_armv7.mk \
|
|
$(LOCAL_DIR)/sdk_phone_x86.mk \
|
|
$(LOCAL_DIR)/sdk_phone_mips.mk \
|
|
$(LOCAL_DIR)/sdk_phone_arm64.mk \
|
|
$(LOCAL_DIR)/sdk_phone_x86_64.mk \
|
|
$(LOCAL_DIR)/sdk_phone_mips64.mk \
|
|
$(LOCAL_DIR)/sdk.mk \
|
|
$(LOCAL_DIR)/sdk_x86.mk \
|
|
$(LOCAL_DIR)/sdk_mips.mk \
|
|
$(LOCAL_DIR)/sdk_arm64.mk \
|
|
$(LOCAL_DIR)/sdk_x86_64.mk
|
|
endif
|