Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
16ea789b
Unverified
Commit
16ea789b
authored
6 years ago
by
Antonio Niño Díaz
Committed by
GitHub
6 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1686 from antonio-nino-diaz-arm/an/backtrace
backtrace: Extract rules from root Makefile
parents
d4fd0219
9c6d1c50
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
v2.2
v2.2-rc2
v2.2-rc1
v2.2-rc0
v2.1
v2.1-rc1
v2.1-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+2
-27
Makefile
common/backtrace/backtrace.c
+0
-0
common/backtrace/backtrace.c
common/backtrace/backtrace.mk
+31
-0
common/backtrace/backtrace.mk
with
33 additions
and
27 deletions
+33
-27
Makefile
View file @
16ea789b
...
...
@@ -108,13 +108,6 @@ else
LOG_LEVEL
:=
20
endif
# Enable backtrace by default in DEBUG AArch64 builds
ifeq
(${ARCH},aarch32)
ENABLE_BACKTRACE
:=
0
else
ENABLE_BACKTRACE
:=
${DEBUG}
endif
# Default build string (git branch and commit)
ifeq
(${BUILD_STRING},)
BUILD_STRING
:=
$(
shell
git describe
--always
--dirty
--tags
2> /dev/null
)
...
...
@@ -206,11 +199,6 @@ TF_CFLAGS += $(CPPFLAGS) $(TF_CFLAGS_$(ARCH)) \
GCC_V_OUTPUT
:=
$(
shell
$(CC)
-v
2>&1
)
# Force the compiler to include the frame pointer
ifeq
(${ENABLE_BACKTRACE},1)
TF_CFLAGS
+=
-fno-omit-frame-pointer
endif
TF_LDFLAGS
+=
--fatal-warnings
-O1
TF_LDFLAGS
+=
--gc-sections
TF_LDFLAGS
+=
$
(
TF_LDFLAGS_
$(ARCH)
)
...
...
@@ -238,10 +226,6 @@ ifeq ($(notdir $(CC)),armclang)
BL_COMMON_SOURCES
+=
lib/
${ARCH}
/armclang_printf.S
endif
ifeq
(${ENABLE_BACKTRACE},1)
BL_COMMON_SOURCES
+=
common/backtrace.c
endif
INCLUDES
+=
-Iinclude
\
-Iinclude
/bl1
\
-Iinclude
/bl2
\
...
...
@@ -270,6 +254,8 @@ INCLUDES += -Iinclude \
${SPD_INCLUDES}
\
-Iinclude
/tools_share
include
common/backtrace/backtrace.mk
################################################################################
# Generic definitions
################################################################################
...
...
@@ -369,15 +355,6 @@ endif
# Check incompatible options
################################################################################
ifeq
(${ARCH},aarch32)
ifeq
(${ENABLE_BACKTRACE},1)
ifneq
(${AARCH32_INSTRUCTION_SET},A32)
$(error Error
:
AARCH32_INSTRUCTION_SET=A32 is needed
\
for ENABLE_BACKTRACE when compiling for AArch32.)
endif
endif
endif
ifdef
EL3_PAYLOAD_BASE
ifdef
PRELOADED_BL33_BASE
$(warning
"PRELOADED_BL33_BASE
and
EL3_PAYLOAD_BASE
are
\
...
...
@@ -568,7 +545,6 @@ $(eval $(call assert_boolean,DYN_DISABLE_AUTH))
$(eval $(call assert_boolean,EL3_EXCEPTION_HANDLING))
$(eval $(call assert_boolean,ENABLE_AMU))
$(eval $(call assert_boolean,ENABLE_ASSERTIONS))
$(eval $(call assert_boolean,ENABLE_BACKTRACE))
$(eval $(call assert_boolean,ENABLE_MPAM_FOR_LOWER_ELS))
$(eval $(call assert_boolean,ENABLE_PIE))
$(eval $(call assert_boolean,ENABLE_PMF))
...
...
@@ -619,7 +595,6 @@ $(eval $(call add_define,CTX_INCLUDE_FPREGS))
$(eval $(call add_define,EL3_EXCEPTION_HANDLING))
$(eval $(call add_define,ENABLE_AMU))
$(eval $(call add_define,ENABLE_ASSERTIONS))
$(eval $(call add_define,ENABLE_BACKTRACE))
$(eval $(call add_define,ENABLE_MPAM_FOR_LOWER_ELS))
$(eval $(call add_define,ENABLE_PIE))
$(eval $(call add_define,ENABLE_PMF))
...
...
This diff is collapsed.
Click to expand it.
common/backtrace.c
→
common/backtrace
/backtrace
.c
View file @
16ea789b
File moved
This diff is collapsed.
Click to expand it.
common/backtrace/backtrace.mk
0 → 100644
View file @
16ea789b
#
# Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Enable backtrace by default in DEBUG AArch64 builds
ifeq
(${ARCH},aarch32)
ENABLE_BACKTRACE
:=
0
else
ENABLE_BACKTRACE
:=
${DEBUG}
endif
ifeq
(${ENABLE_BACKTRACE},1)
# Force the compiler to include the frame pointer
TF_CFLAGS
+=
-fno-omit-frame-pointer
BL_COMMON_SOURCES
+=
common/backtrace/backtrace.c
endif
ifeq
(${ARCH},aarch32)
ifeq
(${ENABLE_BACKTRACE},1)
ifneq
(${AARCH32_INSTRUCTION_SET},A32)
$(error Error
:
AARCH32_INSTRUCTION_SET=A32 is needed
\
for ENABLE_BACKTRACE when compiling for AArch32.)
endif
endif
endif
$(eval
$(call
assert_boolean,ENABLE_BACKTRACE))
$(eval
$(call
add_define,ENABLE_BACKTRACE))
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help