From 930b5fbcb9bd00b0d3a9b55b7da1dc2b8731b7d4 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Tue, 28 Jan 2014 14:35:16 -0800 Subject: [PATCH] make 64-bit builds into multiarch builds Also enable the 64-bit binder interface and make them only use ART. Change-Id: I05de41ce348c14722c84a658f745659bde5ba423 --- target/board/generic_arm64/BoardConfig.mk | 8 ++++++++ target/board/generic_mips64/BoardConfig.mk | 6 ++++++ target/board/generic_x86_64/BoardConfig.mk | 6 ++++++ target/product/aosp_arm64.mk | 2 ++ target/product/full_mips64.mk | 2 ++ target/product/full_x86_64.mk | 2 ++ 6 files changed, 26 insertions(+) diff --git a/target/board/generic_arm64/BoardConfig.mk b/target/board/generic_arm64/BoardConfig.mk index 03284d7f0..72b21e613 100644 --- a/target/board/generic_arm64/BoardConfig.mk +++ b/target/board/generic_arm64/BoardConfig.mk @@ -21,6 +21,14 @@ TARGET_ARCH_VARIANT := armv8-a TARGET_CPU_VARIANT := generic TARGET_CPU_ABI := arm64-v8a +TARGET_2ND_ARCH := arm +TARGET_2ND_ARCH_VARIANT := armv7-a-neon +TARGET_2ND_CPU_VARIANT := generic +TARGET_2ND_CPU_ABI := armeabi-v7a +TARGET_2ND_CPU_ABI2 := armeabi + +TARGET_USES_64_BIT_BINDER := true + # no hardware camera USE_CAMERA_STUB := true diff --git a/target/board/generic_mips64/BoardConfig.mk b/target/board/generic_mips64/BoardConfig.mk index 26e4d69db..1f465ae30 100644 --- a/target/board/generic_mips64/BoardConfig.mk +++ b/target/board/generic_mips64/BoardConfig.mk @@ -28,6 +28,12 @@ TARGET_ARCH_VARIANT := mips64r2 endif TARGET_CPU_ABI := mips64 +TARGET_2ND_ARCH := mips +ifeq (,$(TARGET_2ND_ARCH_VARIANT)) +TARGET_2ND_ARCH_VARIANT := mips32r2-fp +endif +TARGET_CPU_ABI := mips + # The emulator (qemu) uses the Goldfish devices HAVE_HTC_AUDIO_DRIVER := true BOARD_USES_GENERIC_AUDIO := true diff --git a/target/board/generic_x86_64/BoardConfig.mk b/target/board/generic_x86_64/BoardConfig.mk index 8a2fd134c..5e808e2f4 100755 --- a/target/board/generic_x86_64/BoardConfig.mk +++ b/target/board/generic_x86_64/BoardConfig.mk @@ -11,6 +11,12 @@ TARGET_ARCH := x86_64 TARGET_ARCH_VARIANT := x86_64 TARGET_PRELINK_MODULE := false +TARGET_2ND_CPU_ABI := x86 +TARGET_2ND_ARCH := x86 +TARGET_2ND_ARCH_VARIANT := x86 + +TARGET_USES_64_BIT_BINDER := true + # The IA emulator (qemu) uses the Goldfish devices HAVE_HTC_AUDIO_DRIVER := true BOARD_USES_GENERIC_AUDIO := true diff --git a/target/product/aosp_arm64.mk b/target/product/aosp_arm64.mk index 7f97a61a8..8ff0bd152 100644 --- a/target/product/aosp_arm64.mk +++ b/target/product/aosp_arm64.mk @@ -22,6 +22,8 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk) $(call inherit-product, $(SRC_TARGET_DIR)/board/generic_arm64/device.mk) +PRODUCT_RUNTIMES := runtime_libart_default + include $(SRC_TARGET_DIR)/product/emulator.mk PRODUCT_NAME := aosp_arm64 PRODUCT_DEVICE := generic_arm64 diff --git a/target/product/full_mips64.mk b/target/product/full_mips64.mk index d0214b88c..3f171e0fe 100644 --- a/target/product/full_mips64.mk +++ b/target/product/full_mips64.mk @@ -22,6 +22,8 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk) $(call inherit-product, $(SRC_TARGET_DIR)/board/generic_mips64/device.mk) +PRODUCT_RUNTIMES := runtime_libart_default + include $(SRC_TARGET_DIR)/product/emulator.mk # Overrides diff --git a/target/product/full_x86_64.mk b/target/product/full_x86_64.mk index 644f2a228..8b964c2de 100755 --- a/target/product/full_x86_64.mk +++ b/target/product/full_x86_64.mk @@ -26,6 +26,8 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk) $(call inherit-product, $(SRC_TARGET_DIR)/board/generic_x86_64/device.mk) +PRODUCT_RUNTIMES := runtime_libart_default + include $(SRC_TARGET_DIR)/product/emulator.mk ifdef NET_ETH0_STARTONBOOT