forked from openkylin/platform_build
am c3838620: Merge "Switch to 32-bit-by-default host multilib build."
* commit 'c383862020034b3db4e365aaf501a84a35e85ffe': Switch to 32-bit-by-default host multilib build.
This commit is contained in:
commit
135e11df38
|
@ -233,6 +233,9 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/build.prop)
|
||||||
# Switching PRODUCT_RUNTIMES default for some devices
|
# Switching PRODUCT_RUNTIMES default for some devices
|
||||||
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/build.prop)
|
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/build.prop)
|
||||||
|
|
||||||
|
# Switching to 32-bit-by-default host multilib build
|
||||||
|
$(call add-clean-step, rm -rf $(HOST_OUT_INTERMEDIATES))
|
||||||
|
|
||||||
# ************************************************
|
# ************************************************
|
||||||
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
|
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
|
||||||
# ************************************************
|
# ************************************************
|
||||||
|
|
|
@ -1473,7 +1473,7 @@ else
|
||||||
INTERNAL_SDK_HOST_OS_NAME := $(HOST_OS)
|
INTERNAL_SDK_HOST_OS_NAME := $(HOST_OS)
|
||||||
endif
|
endif
|
||||||
ifneq ($(HOST_OS),windows)
|
ifneq ($(HOST_OS),windows)
|
||||||
INTERNAL_SDK_HOST_OS_NAME := $(INTERNAL_SDK_HOST_OS_NAME)-$(HOST_ARCH)
|
INTERNAL_SDK_HOST_OS_NAME := $(INTERNAL_SDK_HOST_OS_NAME)-$(SDK_HOST_ARCH)
|
||||||
endif
|
endif
|
||||||
sdk_name := $(sdk_name)_$(INTERNAL_SDK_HOST_OS_NAME)
|
sdk_name := $(sdk_name)_$(INTERNAL_SDK_HOST_OS_NAME)
|
||||||
|
|
||||||
|
@ -1500,7 +1500,7 @@ atree_dir := development/build
|
||||||
sdk_atree_files := \
|
sdk_atree_files := \
|
||||||
$(atree_dir)/sdk.exclude.atree \
|
$(atree_dir)/sdk.exclude.atree \
|
||||||
$(atree_dir)/sdk.atree \
|
$(atree_dir)/sdk.atree \
|
||||||
$(atree_dir)/sdk-$(HOST_OS)-$(HOST_ARCH).atree
|
$(atree_dir)/sdk-$(HOST_OS)-$(SDK_HOST_ARCH).atree
|
||||||
|
|
||||||
# development/build/sdk-android-<abi>.atree is used to differentiate
|
# development/build/sdk-android-<abi>.atree is used to differentiate
|
||||||
# between architecture models (e.g. ARMv5TE versus ARMv7) when copying
|
# between architecture models (e.g. ARMv5TE versus ARMv7) when copying
|
||||||
|
|
|
@ -6,11 +6,6 @@ WITHOUT_TARGET_CLANG := true
|
||||||
WITHOUT_HOST_CLANG := true
|
WITHOUT_HOST_CLANG := true
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# We don't have 64-bit host prebuilts yet.
|
|
||||||
ifeq (true,$(HOST_IS_64_BIT))
|
|
||||||
FORCE_BUILD_LLVM_COMPONENTS := true
|
|
||||||
endif
|
|
||||||
|
|
||||||
LLVM_PREBUILTS_PATH := prebuilts/clang/$(BUILD_OS)-x86/host/3.5/bin
|
LLVM_PREBUILTS_PATH := prebuilts/clang/$(BUILD_OS)-x86/host/3.5/bin
|
||||||
LLVM_PREBUILTS_HEADER_PATH := prebuilts/clang/$(BUILD_OS)-x86/host/3.5/lib/clang/3.5/include/
|
LLVM_PREBUILTS_HEADER_PATH := prebuilts/clang/$(BUILD_OS)-x86/host/3.5/lib/clang/3.5/include/
|
||||||
|
|
||||||
|
|
|
@ -67,28 +67,32 @@ ifeq ($(HOST_OS),)
|
||||||
$(error Unable to determine HOST_OS from uname -sm: $(UNAME)!)
|
$(error Unable to determine HOST_OS from uname -sm: $(UNAME)!)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# TODO: Replace BUILD_HOST_64bit with a flag that forces 32-bit build,
|
||||||
|
# after we default to 64-bit host build.
|
||||||
|
ifeq (,$(BUILD_HOST_64bit))
|
||||||
|
# Default to 32-bit-by-default multilib host build.
|
||||||
|
HOST_PREFER_32_BIT := true
|
||||||
ifeq ($(HOST_PREFER_32_BIT),true)
|
ifeq ($(HOST_PREFER_32_BIT),true)
|
||||||
# User asks for multilib build, but use 32-bit as preferred arch.
|
|
||||||
BUILD_HOST_64bit := true
|
BUILD_HOST_64bit := true
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# HOST_ARCH
|
# HOST_ARCH
|
||||||
ifneq (,$(findstring x86_64,$(UNAME)))
|
ifneq (,$(findstring x86_64,$(UNAME)))
|
||||||
# TODO: Replace BUILD_HOST_64bit with a flag that forces 32-bit build,
|
HOST_ARCH := x86_64
|
||||||
# after we default to 64-bit host build.
|
HOST_2ND_ARCH := x86
|
||||||
ifeq (,$(BUILD_HOST_64bit))
|
|
||||||
HOST_ARCH := x86
|
|
||||||
HOST_2ND_ARCH :=
|
|
||||||
else
|
|
||||||
HOST_ARCH := x86_64
|
|
||||||
HOST_2ND_ARCH := x86
|
|
||||||
endif
|
|
||||||
else ifneq (,$(findstring 86,$(UNAME)))
|
else ifneq (,$(findstring 86,$(UNAME)))
|
||||||
# It's not officially supported!
|
# It's not officially supported!
|
||||||
HOST_ARCH := x86
|
HOST_ARCH := x86
|
||||||
HOST_2ND_ARCH :=
|
HOST_2ND_ARCH :=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(HOST_PREFER_32_BIT),true)
|
||||||
|
SDK_HOST_ARCH := x86
|
||||||
|
else
|
||||||
|
SDK_HOST_ARCH := $(HOST_ARCH)
|
||||||
|
endif
|
||||||
|
|
||||||
BUILD_ARCH := $(HOST_ARCH)
|
BUILD_ARCH := $(HOST_ARCH)
|
||||||
BUILD_2ND_ARCH := $(HOST_2ND_ARCH)
|
BUILD_2ND_ARCH := $(HOST_2ND_ARCH)
|
||||||
|
|
||||||
|
|
|
@ -164,13 +164,11 @@ endif # unbundled_goals
|
||||||
|
|
||||||
# Default to building dalvikvm on hosts that support it...
|
# Default to building dalvikvm on hosts that support it...
|
||||||
ifeq ($(HOST_OS),linux)
|
ifeq ($(HOST_OS),linux)
|
||||||
ifneq ($(HOST_ARCH),x86_64)
|
|
||||||
# ... or if the if the option is already set
|
# ... or if the if the option is already set
|
||||||
ifeq ($(WITH_HOST_DALVIK),)
|
ifeq ($(WITH_HOST_DALVIK),)
|
||||||
WITH_HOST_DALVIK := true
|
WITH_HOST_DALVIK := true
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
# Include the product definitions.
|
# Include the product definitions.
|
||||||
|
|
Loading…
Reference in New Issue