From 3da7b96a390f4204e31420c42e65397f90424d24 Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Wed, 19 Feb 2014 18:25:55 -0800 Subject: [PATCH] Remove dead code. It seems the code was meant to add the toolchain to ANDROID_BUILD_PATHS and then export to PATH by lunch. But now we export the toolchain to PATH explicitly in envsetup.sh and the code is unnecessary. This reduces the places to change when we upgrade the gcc version. It also fixed the bug that the mips toolchain was always exported regardless of the target arch. Change-Id: Iee3b895b4c4e0df8971c27c01b9ecbd591848b12 --- core/dumpvar.mk | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/core/dumpvar.mk b/core/dumpvar.mk index 2612e06cb..7af0a0c1a 100644 --- a/core/dumpvar.mk +++ b/core/dumpvar.mk @@ -9,31 +9,6 @@ else ABP:=$(PWD)/$(HOST_OUT_EXECUTABLES) endif -# Add the ARM toolchain bin dir if it actually exists -ifeq ($(TARGET_ARCH),arm) - ifneq ($(wildcard $(PWD)/prebuilts/gcc/$(HOST_PREBUILT_TAG)/arm/arm-linux-androideabi-$(TARGET_GCC_VERSION)/bin),) - # this should be copied to HOST_OUT_EXECUTABLES instead - ABP:=$(ABP):$(PWD)/prebuilts/gcc/$(HOST_PREBUILT_TAG)/arm/arm-linux-androideabi-$(TARGET_GCC_VERSION)/bin - endif - ifneq ($(wildcard $(PWD)/prebuilts/gcc/$(HOST_PREBUILT_TAG)/arm/arm-eabi-$(TARGET_GCC_VERSION)/bin),) - # this should be copied to HOST_OUT_EXECUTABLES instead - ABP:=$(ABP):$(PWD)/prebuilts/gcc/$(HOST_PREBUILT_TAG)/arm/arm-eabi-$(TARGET_GCC_VERSION)/bin - endif -else ifeq ($(TARGET_ARCH),x86) - -# Add the x86 toolchain bin dir if it actually exists - ifneq ($(wildcard $(PWD)/prebuilts/gcc/$(HOST_PREBUILT_TAG)/x86/x86_64-linux-android-$(TARGET_GCC_VERSION)/bin),) - # this should be copied to HOST_OUT_EXECUTABLES instead - ABP:=$(ABP):$(PWD)/prebuilts/gcc/$(HOST_PREBUILT_TAG)/x86/x86_64-linux-android-$(TARGET_GCC_VERSION)/bin - endif -endif - -# Add the mips toolchain bin dir if it actually exists -ifneq ($(wildcard $(PWD)/prebuilts/gcc/$(HOST_PREBUILT_TAG)/mips/mipsel-linux-android-$(TARGET_GCC_VERSION)/bin),) - # this should be copied to HOST_OUT_EXECUTABLES instead - ABP:=$(ABP):$(PWD)/prebuilts/gcc/$(HOST_PREBUILT_TAG)/mips/mipsel-linux-android-$(TARGET_GCC_VERSION)/bin -endif - ANDROID_BUILD_PATHS := $(ABP) ANDROID_PREBUILTS := prebuilt/$(HOST_PREBUILT_TAG) ANDROID_GCC_PREBUILTS := prebuilts/gcc/$(HOST_PREBUILT_TAG) -- 2.11.0