Makefile: Error on TOOLCHAIN=gcc-4.9
GCC 4.9 has been removed from the AOSP repo. We marked it deprecated
a while back but now it really doesn't work.
Bug: 193407077
Test: TOOLCHAIN=gcc-4.9 make linux_image
Change-Id: I2fe9838b4f87919867adc5c61084ce68c0af7962
diff --git a/Makefile b/Makefile
index e640557..dcf9103 100644
--- a/Makefile
+++ b/Makefile
@@ -61,7 +61,7 @@
##
# Specifies which toolchain of the prebuilt toolchains to use.
-# Can be either clang, gcc-4.9 (deprecated), gcc-5.1, or gcc-9.2.
+# Can be either clang, gcc-5.1, or gcc-9.2.
# GCC will always use the latest version for building everything else other
# than the kernel.
TOOLCHAIN ?= clang
@@ -77,11 +77,7 @@
TARGET = aarch64-linux-gnu
TARGET_GCC_92 = aarch64-none-linux-gnu
-ifeq ($(TOOLCHAIN), gcc-4.9)
-TOOLCHAIN_BIN := $(TOOLCHAIN_GCC_49)/bin
-$(warning "The gcc-4.9 toolchain is deprecated and will be removed soon.")
-$(warning "The gcc-5.1 toolchain is the oldest version Linux needs to support.")
-else ifeq ($(TOOLCHAIN), gcc-5.1)
+ifeq ($(TOOLCHAIN), gcc-5.1)
TOOLCHAIN_BIN := $(TOOLCHAIN_GCC_51)/bin
else ifeq ($(TOOLCHAIN), gcc-9.2)
TOOLCHAIN_BIN := $(TOOLCHAIN_GCC_92)/bin