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
a7062b7d
Commit
a7062b7d
authored
Mar 31, 2020
by
Sandrine Bailleux
Committed by
TrustedFirmware Code Review
Mar 31, 2020
Browse files
Merge "Makefile: don't use $(CC) before value is explicit set" into integration
parents
27c5e15e
32b209bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Makefile
View file @
a7062b7d
...
@@ -84,26 +84,6 @@ endif
...
@@ -84,26 +84,6 @@ endif
export
Q
ECHO
export
Q
ECHO
# Process Debug flag
$(eval
$(call
add_define,DEBUG))
ifneq
(${DEBUG}, 0)
BUILD_TYPE
:=
debug
TF_CFLAGS
+=
-g
ifneq
($(findstring clang,$(notdir $(CC))),)
ASFLAGS
+=
-g
else
ASFLAGS
+=
-g
-Wa
,--gdwarf-2
endif
# Use LOG_LEVEL_INFO by default for debug builds
LOG_LEVEL
:=
40
else
BUILD_TYPE
:=
release
# Use LOG_LEVEL_NOTICE by default for release builds
LOG_LEVEL
:=
20
endif
# Default build string (git branch and commit)
# Default build string (git branch and commit)
ifeq
(${BUILD_STRING},)
ifeq
(${BUILD_STRING},)
BUILD_STRING
:=
$(
shell
git describe
--always
--dirty
--tags
2> /dev/null
)
BUILD_STRING
:=
$(
shell
git describe
--always
--dirty
--tags
2> /dev/null
)
...
@@ -243,6 +223,26 @@ TF_CFLAGS_aarch64 = $(march64-directive)
...
@@ -243,6 +223,26 @@ TF_CFLAGS_aarch64 = $(march64-directive)
LD
=
$(LINKER)
LD
=
$(LINKER)
endif
endif
# Process Debug flag
$(eval
$(call
add_define,DEBUG))
ifneq
(${DEBUG}, 0)
BUILD_TYPE
:=
debug
TF_CFLAGS
+=
-g
ifneq
($(findstring clang,$(notdir $(CC))),)
ASFLAGS
+=
-g
else
ASFLAGS
+=
-g
-Wa
,--gdwarf-2
endif
# Use LOG_LEVEL_INFO by default for debug builds
LOG_LEVEL
:=
40
else
BUILD_TYPE
:=
release
# Use LOG_LEVEL_NOTICE by default for release builds
LOG_LEVEL
:=
20
endif
ifeq
(${AARCH32_INSTRUCTION_SET},A32)
ifeq
(${AARCH32_INSTRUCTION_SET},A32)
TF_CFLAGS_aarch32
+=
-marm
TF_CFLAGS_aarch32
+=
-marm
else
ifeq
(${AARCH32_INSTRUCTION_SET},T32)
else
ifeq
(${AARCH32_INSTRUCTION_SET},T32)
...
...
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