msm8974: Change the product name from copper to msm8974
fastboot flash all command looks for target name from the build
& bootloaders. If the product names do not match the flash all
command fails. Fix by changing the name of the product in the
bootloader to match that of the complete build.
CRs-Fixed: 442910
Change-Id: I3d8ac2660dc9cc9bdcfe471593401b96b2afac6b
diff --git a/AndroidBoot.mk b/AndroidBoot.mk
index b51344f..6836163 100644
--- a/AndroidBoot.mk
+++ b/AndroidBoot.mk
@@ -7,15 +7,12 @@
SIGNED_KERNEL := SIGNED_KERNEL=0
endif
-ifneq ($(strip $(TARGET_BOOTLOADER_PLATFORM_OVERRIDE)),)
- BOOTLOADER_PLATFORM := $(TARGET_BOOTLOADER_PLATFORM_OVERRIDE)
+ifeq ($(call is-board-platform,msm8660),true)
+ BOOTLOADER_PLATFORM := msm8660_surf
else
- ifeq ($(call is-board-platform,msm8660),true)
- BOOTLOADER_PLATFORM := msm8660_surf
- else
- BOOTLOADER_PLATFORM := $(TARGET_BOARD_PLATFORM)
- endif
+ BOOTLOADER_PLATFORM := $(TARGET_BOARD_PLATFORM)
endif
+
# NAND variant output
TARGET_NAND_BOOTLOADER := $(PRODUCT_OUT)/appsboot.mbn
NAND_BOOTLOADER_OUT := $(TARGET_OUT_INTERMEDIATES)/NAND_BOOTLOADER_OBJ