Commit fafd3ec9 authored by Manish V Badarkhe's avatar Manish V Badarkhe
Browse files

tools: Get the tool's binary name from the main makefile



Currently, the tool's makefile override the tool's binary name
which is already been defined in the main makefile.
Hence fix is provided so that the tool's makefile get the tool's
binary name from the main makefile instead of overriding it.

Change-Id: I8af2bd391a96bba2dbcddef711338a94ebf5f038
Signed-off-by: default avatarManish V Badarkhe <Manish.Badarkhe@arm.com>
parent 8d0a3bb3
...@@ -1209,7 +1209,7 @@ certtool: ${CRTTOOL} ...@@ -1209,7 +1209,7 @@ certtool: ${CRTTOOL}
.PHONY: ${CRTTOOL} .PHONY: ${CRTTOOL}
${CRTTOOL}: ${CRTTOOL}:
${Q}${MAKE} PLAT=${PLAT} USE_TBBR_DEFS=${USE_TBBR_DEFS} COT=${COT} OPENSSL_DIR=${OPENSSL_DIR} --no-print-directory -C ${CRTTOOLPATH} ${Q}${MAKE} PLAT=${PLAT} USE_TBBR_DEFS=${USE_TBBR_DEFS} COT=${COT} OPENSSL_DIR=${OPENSSL_DIR} CRTTOOL=${CRTTOOL} --no-print-directory -C ${CRTTOOLPATH}
@${ECHO_BLANK_LINE} @${ECHO_BLANK_LINE}
@echo "Built $@ successfully" @echo "Built $@ successfully"
@${ECHO_BLANK_LINE} @${ECHO_BLANK_LINE}
...@@ -1252,12 +1252,12 @@ fwu_fip: ${BUILD_PLAT}/${FWU_FIP_NAME} ...@@ -1252,12 +1252,12 @@ fwu_fip: ${BUILD_PLAT}/${FWU_FIP_NAME}
.PHONY: ${FIPTOOL} .PHONY: ${FIPTOOL}
${FIPTOOL}: ${FIPTOOL}:
${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" --no-print-directory -C ${FIPTOOLPATH} ${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" FIPTOOL=${FIPTOOL} --no-print-directory -C ${FIPTOOLPATH}
sptool: ${SPTOOL} sptool: ${SPTOOL}
.PHONY: ${SPTOOL} .PHONY: ${SPTOOL}
${SPTOOL}: ${SPTOOL}:
${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" --no-print-directory -C ${SPTOOLPATH} ${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" SPTOOL=${SPTOOL} --no-print-directory -C ${SPTOOLPATH}
.PHONY: libraries .PHONY: libraries
romlib.bin: libraries romlib.bin: libraries
...@@ -1275,7 +1275,7 @@ enctool: ${ENCTOOL} ...@@ -1275,7 +1275,7 @@ enctool: ${ENCTOOL}
.PHONY: ${ENCTOOL} .PHONY: ${ENCTOOL}
${ENCTOOL}: ${ENCTOOL}:
${Q}${MAKE} PLAT=${PLAT} BUILD_INFO=0 OPENSSL_DIR=${OPENSSL_DIR} --no-print-directory -C ${ENCTOOLPATH} ${Q}${MAKE} PLAT=${PLAT} BUILD_INFO=0 OPENSSL_DIR=${OPENSSL_DIR} ENCTOOL=${ENCTOOL} --no-print-directory -C ${ENCTOOLPATH}
@${ECHO_BLANK_LINE} @${ECHO_BLANK_LINE}
@echo "Built $@ successfully" @echo "Built $@ successfully"
@${ECHO_BLANK_LINE} @${ECHO_BLANK_LINE}
......
...@@ -4,11 +4,10 @@ ...@@ -4,11 +4,10 @@
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
# #
PROJECT := cert_create
PLAT := none PLAT := none
V ?= 0 V ?= 0
DEBUG := 0 DEBUG := 0
BINARY := ${PROJECT}${BIN_EXT} BINARY := $(notdir ${CRTTOOL})
OPENSSL_DIR := /usr OPENSSL_DIR := /usr
COT := tbbr COT := tbbr
......
# #
# Copyright (c) 2019, Linaro Limited. All rights reserved. # Copyright (c) 2019-2020, Linaro Limited. All rights reserved.
# #
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
# #
PROJECT := encrypt_fw
V ?= 0 V ?= 0
BUILD_INFO ?= 1 BUILD_INFO ?= 1
DEBUG := 0 DEBUG := 0
BINARY := ${PROJECT}${BIN_EXT} BINARY := $(notdir ${ENCTOOL})
OPENSSL_DIR := /usr OPENSSL_DIR := /usr
OBJECTS := src/encrypt.o \ OBJECTS := src/encrypt.o \
......
# #
# Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved. # Copyright (c) 2014-2020, ARM Limited and Contributors. All rights reserved.
# #
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
# #
...@@ -8,7 +8,7 @@ MAKE_HELPERS_DIRECTORY := ../../make_helpers/ ...@@ -8,7 +8,7 @@ MAKE_HELPERS_DIRECTORY := ../../make_helpers/
include ${MAKE_HELPERS_DIRECTORY}build_macros.mk include ${MAKE_HELPERS_DIRECTORY}build_macros.mk
include ${MAKE_HELPERS_DIRECTORY}build_env.mk include ${MAKE_HELPERS_DIRECTORY}build_env.mk
PROJECT := fiptool${BIN_EXT} PROJECT := $(notdir ${FIPTOOL})
OBJECTS := fiptool.o tbbr_config.o OBJECTS := fiptool.o tbbr_config.o
V ?= 0 V ?= 0
......
# #
# Copyright (c) 2018, Arm Limited. All rights reserved. # Copyright (c) 2018-2020, Arm Limited. All rights reserved.
# #
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
# #
...@@ -8,7 +8,7 @@ MAKE_HELPERS_DIRECTORY := ../../make_helpers/ ...@@ -8,7 +8,7 @@ MAKE_HELPERS_DIRECTORY := ../../make_helpers/
include ${MAKE_HELPERS_DIRECTORY}build_macros.mk include ${MAKE_HELPERS_DIRECTORY}build_macros.mk
include ${MAKE_HELPERS_DIRECTORY}build_env.mk include ${MAKE_HELPERS_DIRECTORY}build_env.mk
PROJECT := sptool${BIN_EXT} PROJECT := $(notdir ${SPTOOL})
OBJECTS := sptool.o OBJECTS := sptool.o
V ?= 0 V ?= 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment