diff options
author | Raphael Moll <ralf@android.com> | 2011-06-20 17:25:01 -0700 |
---|---|---|
committer | Raphael Moll <ralf@android.com> | 2011-06-21 06:11:05 -0700 |
commit | c639c787a0932b230be0d991941ce26c0faea81b (patch) | |
tree | 8ae5d9d54107bda9c5c70d5557e5adbca6abf2a4 /core/combo | |
parent | 70a86b0fb79d0d9c79fb34181ceb9268ea4685dd (diff) | |
download | build-c639c787a0932b230be0d991941ce26c0faea81b.zip build-c639c787a0932b230be0d991941ce26c0faea81b.tar.gz build-c639c787a0932b230be0d991941ce26c0faea81b.tar.bz2 |
Lunch: don't use a toolchain that doesn't exist.
"lunch sdk-eng" on cygwin tries to use a gcc.exe from the
prebuild arm toolchain, but it doesn't exist. This prevents
from setting variables to point on a gcc toolchain if there
is none for the given arch.
Change-Id: I3b72220663687f9fdaacc050899aef00632f2c3c
Diffstat (limited to 'core/combo')
-rw-r--r-- | core/combo/TARGET_linux-arm.mk | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/core/combo/TARGET_linux-arm.mk b/core/combo/TARGET_linux-arm.mk index f7a1756..67844c8 100644 --- a/core/combo/TARGET_linux-arm.mk +++ b/core/combo/TARGET_linux-arm.mk @@ -47,13 +47,17 @@ TARGET_TOOLS_PREFIX := \ prebuilt/$(HOST_PREBUILT_TAG)/toolchain/arm-eabi-4.4.3/bin/arm-eabi- endif -TARGET_CC := $(TARGET_TOOLS_PREFIX)gcc$(HOST_EXECUTABLE_SUFFIX) -TARGET_CXX := $(TARGET_TOOLS_PREFIX)g++$(HOST_EXECUTABLE_SUFFIX) -TARGET_AR := $(TARGET_TOOLS_PREFIX)ar$(HOST_EXECUTABLE_SUFFIX) -TARGET_OBJCOPY := $(TARGET_TOOLS_PREFIX)objcopy$(HOST_EXECUTABLE_SUFFIX) -TARGET_LD := $(TARGET_TOOLS_PREFIX)ld$(HOST_EXECUTABLE_SUFFIX) -TARGET_STRIP := $(HOST_OUT_EXECUTABLES)/soslim$(HOST_EXECUTABLE_SUFFIX) -TARGET_STRIP_COMMAND = $(TARGET_STRIP) --strip --shady --quiet $< --outfile $@ +# Only define these if there's actually a gcc in there. +# The gcc toolchain does not exists for windows/cygwin. In this case, do not reference it. +ifneq ($(wildcard $(TARGET_TOOLS_PREFIX)gcc$(HOST_EXECUTABLE_SUFFIX)),) + TARGET_CC := $(TARGET_TOOLS_PREFIX)gcc$(HOST_EXECUTABLE_SUFFIX) + TARGET_CXX := $(TARGET_TOOLS_PREFIX)g++$(HOST_EXECUTABLE_SUFFIX) + TARGET_AR := $(TARGET_TOOLS_PREFIX)ar$(HOST_EXECUTABLE_SUFFIX) + TARGET_OBJCOPY := $(TARGET_TOOLS_PREFIX)objcopy$(HOST_EXECUTABLE_SUFFIX) + TARGET_LD := $(TARGET_TOOLS_PREFIX)ld$(HOST_EXECUTABLE_SUFFIX) + TARGET_STRIP := $(HOST_OUT_EXECUTABLES)/soslim$(HOST_EXECUTABLE_SUFFIX) + TARGET_STRIP_COMMAND = $(TARGET_STRIP) --strip --shady --quiet $< --outfile $@ +endif TARGET_NO_UNDEFINED_LDFLAGS := -Wl,--no-undefined |