From 2914f7f3b3b4152fee6b6ab012e58e8166e3d7a2 Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Tue, 24 May 2011 15:46:15 -0700 Subject: [PATCH] Relax the constraint of 64bit build environment. Change-Id: Id349f424b122816f42c99769b629a9447986cf20 --- core/config.mk | 6 ++++++ core/main.mk | 11 ----------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/core/config.mk b/core/config.mk index 7f484aa333..d953b1a1a2 100644 --- a/core/config.mk +++ b/core/config.mk @@ -270,6 +270,12 @@ else HOST_JDK_TOOLS_JAR:= $(shell $(BUILD_SYSTEM)/find-jdk-tools-jar.sh) endif +# Is the host JDK 64-bit version? +HOST_JDK_IS_64BIT_VERSION := +ifneq ($(filter 64-Bit, $(shell java -version 2>&1)),) +HOST_JDK_IS_64BIT_VERSION := true +endif + # It's called md5 on Mac OS and md5sum on Linux ifeq ($(HOST_OS),darwin) MD5SUM:=md5 -q diff --git a/core/main.mk b/core/main.mk index 2ab9d720b3..ab4941554e 100644 --- a/core/main.mk +++ b/core/main.mk @@ -70,17 +70,6 @@ ifneq ($(VERSION_CHECK_SEQUENCE_NUMBER),$(VERSIONS_CHECKED)) $(info Checking build tools versions...) -ifeq ($(BUILD_OS),linux) -build_arch := $(shell uname -m) -ifneq (64,$(findstring 64,$(build_arch))) -$(warning ************************************************************) -$(warning You are attempting to build on a 32-bit system.) -$(warning Only 64-bit build environments are supported beyond froyo/2.2.) -$(warning ************************************************************) -$(error stop) -endif -endif - ifneq ($(HOST_OS),windows) ifneq ($(HOST_OS)-$(HOST_ARCH),darwin-ppc) # check for a case sensitive file system