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
)
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
#
|
|
# Copyright 2016 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.
|
|
#
|
|
|
|
|
|
# aosp_x86 with arm libraries needed by binary translation.
|
|
|
|
include $(SRC_TARGET_DIR)/product/full_x86.mk
|
|
|
|
# arm libraries. This is the list of shared libraries included in the NDK.
|
|
# Their dependency libraries will be automatically pulled in.
|
|
PRODUCT_PACKAGES += \
|
|
libandroid_arm \
|
|
libc_arm \
|
|
libdl_arm \
|
|
libEGL_arm \
|
|
libGLESv1_CM_arm \
|
|
libGLESv2_arm \
|
|
libGLESv3_arm \
|
|
libjnigraphics_arm \
|
|
liblog_arm \
|
|
libm_arm \
|
|
libmediandk_arm \
|
|
libOpenMAXAL_arm \
|
|
libstdc++_arm \
|
|
libOpenSLES_arm \
|
|
libz_arm \
|
|
|
|
PRODUCT_NAME := aosp_x86_arm
|
|
PRODUCT_DEVICE := generic_x86_arm
|