diff --git a/CleanSpec.mk b/CleanSpec.mk index f4d45ff5a..c20d401a6 100644 --- a/CleanSpec.mk +++ b/CleanSpec.mk @@ -150,6 +150,12 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/build.prop) $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/app/*) $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/APPS/*) +# For GCC 4.7 toolchain change +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES) +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES) +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/EXECUTABLES) +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/lib/*.o) + # ************************************************ # NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST # ************************************************ diff --git a/core/combo/TARGET_linux-arm.mk b/core/combo/TARGET_linux-arm.mk index 8be89c4d5..99b2f8c06 100644 --- a/core/combo/TARGET_linux-arm.mk +++ b/core/combo/TARGET_linux-arm.mk @@ -35,7 +35,7 @@ TARGET_ARCH_VARIANT := armv5te endif ifeq ($(strip $(TARGET_GCC_VERSION)),) -TARGET_GCC_VERSION := 4.6 +TARGET_GCC_VERSION := 4.7 endif TARGET_ARCH_SPECIFIC_MAKEFILE := $(BUILD_COMBOS)/arch/$(TARGET_ARCH)/$(TARGET_ARCH_VARIANT).mk diff --git a/envsetup.sh b/envsetup.sh index 2d9d245bd..3aeb52b72 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -116,7 +116,7 @@ function setpaths() prebuiltdir=$(getprebuilt) gccprebuiltdir=$(get_abs_build_var ANDROID_GCC_PREBUILTS) - # defined in core/config.mk + # defined in core/combo/TARGET_linux-{arm,mips,x86}.mk targetgccversion=$(get_build_var TARGET_GCC_VERSION) export TARGET_GCC_VERSION=$targetgccversion