hikey: Remove unnecessary code
authorVictor Chong <victor.chong@linaro.org>
Sat, 27 May 2017 15:14:25 +0000 (00:14 +0900)
committerVictor Chong <victor.chong@linaro.org>
Wed, 12 Jul 2017 08:27:44 +0000 (17:27 +0900)
PLATFORM_LINKER_FORMAT
and
PLATFORM_LINKER_ARCH
defines are removed from
plat/hisilicon/hikey/include/platform_def.h
since there are already defined in
include/plat/common/common_def.h
which is included by
plat/hisilicon/hikey/hikey_def.h
which is included by
plat/hisilicon/hikey/include/platform_def.h

The line
$(eval $(call FIP_ADD_IMG,SCP_BL2,--scp-fw))
is removed from
plat/hisilicon/hikey/platform.mk
to clear the warning below:

Makefile:544: warning: overriding commands for target `check_SCP_BL2'
plat/hisilicon/hikey/platform.mk:19: warning: ignoring old commands for target `check_SCP_BL2'

$(eval $(call FIP_ADD_IMG,SCP_BL2,--scp-fw))
already exists in
Makefile
and applies to plat hikey so is redundant in
plat/hisilicon/hikey/platform.mk

Signed-off-by: Victor Chong <victor.chong@linaro.org>
plat/hisilicon/hikey/include/platform_def.h
plat/hisilicon/hikey/platform.mk

index a91a9b06beb8a6559b93c59b6df095ff5e9387b0..4f0aae1bfb195019a6d39c90a84224a5cbbc14de 100644 (file)
 #include <arch.h>
 #include "../hikey_def.h"
 
-/*
- * Platform binary types for linking
- */
-#define PLATFORM_LINKER_FORMAT          "elf64-littleaarch64"
-#define PLATFORM_LINKER_ARCH            aarch64
-
-
 /*
  * Generic platform constants
  */
index 08a3047fd46b980eadef79fccc3e613f7b72b5e7..9543107e26a2c3da3aaebcd1f7e105f8168efe08 100644 (file)
@@ -16,7 +16,6 @@ $(eval $(call add_define,CONSOLE_BASE))
 $(eval $(call add_define,CRASH_CONSOLE_BASE))
 $(eval $(call add_define,PLAT_PL061_MAX_GPIOS))
 $(eval $(call add_define,PLAT_PARTITION_MAX_ENTRIES))
-$(eval $(call FIP_ADD_IMG,SCP_BL2,--scp-fw))
 
 ENABLE_PLAT_COMPAT     :=      0