Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
172138b9
Commit
172138b9
authored
May 08, 2017
by
davidcunado-arm
Committed by
GitHub
May 08, 2017
Browse files
Merge pull request #926 from EvanLloyd/win_make_4
Minor makefile fixes
parents
07f40001
052ab529
Changes
4
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
172138b9
...
...
@@ -629,18 +629,18 @@ ${BUILD_PLAT}/${FIP_NAME}: ${FIP_DEPS} ${FIPTOOL}
ifneq
(${GENERATE_COT},0)
fwu_certificates
:
${FWU_CRT_DEPS} ${CRTTOOL}
${Q}${CRTTOOL}
${FWU_CRT_ARGS}
@
echo
@
${ECHO_BLANK_LINE}
@
echo
"Built
$@
successfully"
@
echo
"FWU certificates can be found in
${BUILD_PLAT}
"
@
echo
@
${ECHO_BLANK_LINE}
endif
${BUILD_PLAT}/${FWU_FIP_NAME}
:
${FWU_FIP_DEPS} ${FIPTOOL}
${Q}${FIPTOOL}
create
${FWU_FIP_ARGS}
$@
${Q}${FIPTOOL}
info
$@
@
echo
@
${ECHO_BLANK_LINE}
@
echo
"Built
$@
successfully"
@
echo
@
${ECHO_BLANK_LINE}
fiptool
:
${FIPTOOL}
fip
:
${BUILD_PLAT}/${FIP_NAME}
...
...
make_helpers/build_macros.mk
View file @
172138b9
...
...
@@ -284,14 +284,16 @@ define MAKE_BL
$(eval BL_LINKERFILE
:
= $(BL$(call uppercase
,
$(1))_LINKERFILE))
# We use sort only to get a list of unique object directory names.
# ordering is not relevant but sort removes duplicates.
$(eval TEMP_OBJ_DIRS
:
= $(sort
$(BUILD_DIR)/
$(dir ${OBJS} ${LINKERFILE})))
$(eval TEMP_OBJ_DIRS
:
= $(sort $(dir ${OBJS} ${LINKERFILE})))
# The $(dir ) function leaves a trailing / on the directory names
# Rip off the / to match directory names with make rule targets.
$(eval OBJ_DIRS
:
= $(patsubst %/
,
%
,
$(TEMP_OBJ_DIRS)))
# Create generators for object directory structure
$(eval
$(foreach
objd,${OBJ_DIRS},$(call
MAKE_PREREQ_DIR,${objd},)))
$(eval
$(call
MAKE_PREREQ_DIR,${BUILD_DIR},))
$(eval
$(foreach
objd,${OBJ_DIRS},$(call
MAKE_PREREQ_DIR,${objd},${BUILD_DIR})))
.PHONY
:
bl${1}_dirs
...
...
@@ -321,9 +323,9 @@ $(DUMP): $(ELF)
$(BIN)
:
$(ELF)
@
echo
" BIN
$$
@"
$
$(Q)
$
$(OC)
-O
binary
$$
<
$$
@
@
echo
@
${ECHO_BLANK_LINE}
@
echo
"Built
$$
@ successfully"
@
echo
@
${ECHO_BLANK_LINE}
.PHONY
:
bl$(1)
bl$(1)
:
$(BIN) $(DUMP)
...
...
make_helpers/unix.mk
View file @
172138b9
#
# Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
# Copyright (c) 2016
-2017
, ARM Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
...
...
@@ -43,11 +43,14 @@ ifndef UNIX_MK
# ${1} is the directory to be generated.
# ${2} is optional, and allows a prerequisite to be specified.
# Do nothing if $1 == $2, to ignore self dependencies.
define
MAKE_PREREQ_DIR
ifneq
(${1},${2})
${1}
:
${2}
${Q}
mkdir
-p
"
${1}
"
endif
endef
define
SHELL_REMOVE_DIR
...
...
make_helpers/windows.mk
View file @
172138b9
#
# Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
# Copyright (c) 2016
-2017
, ARM Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
...
...
@@ -51,12 +51,15 @@ ifndef WINDOWS_MK
# ${1} is the directory to be generated.
# ${2} is optional, and allows prerequisites to be specified.
# Do nothing if $1 == $2, to ignore self dependencies.
define
MAKE_PREREQ_DIR
ifneq
(${1},${2})
${1}
:
${2}
$(
eval
tmp_dir
:
=
$(
subst
/,\,
${1}
))
-@if not exist
"
$(tmp_dir)
"
mkdir
"
${tmp_dir}
"
endif
endef
# ${1} is the directory to be removed.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment