summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSoby Mathew <soby.mathew@arm.com>2016-05-09 17:49:55 +0100
committerSoby Mathew <soby.mathew@arm.com>2016-08-10 12:34:50 +0100
commit031dbb122472175ad6e888f3c6e0a70d1b2e9ac7 (patch)
treedfed71cffc9e5cf762856f75706edb9d5bd823e5 /Makefile
parentc45f627de4a17d4be6727cbf357e7fb54479a563 (diff)
AArch32: Add essential Arch helpers
This patch adds the essential AArch32 architecture helpers arch.h and arch_helpers.h and modifies `_types.h` to add AArch32 support. A new build option `ARCH` is defined in the top level makefile to enable the component makefiles to choose the right files based on the Architecture it is being build for. Depending on this flag, either `AARCH32` or `AARCH64` flag is defined by the Makefile. The default value of `ARCH` flag is `aarch64`. The AArch32 build support will be added in a later patch. Change-Id: I405e5fac02db828a55cd25989b572b64cb005241
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a68335bd..eb593a7a 100644
--- a/Makefile
+++ b/Makefile
@@ -45,6 +45,8 @@ include ${MAKE_HELPERS_DIRECTORY}build_env.mk
# Default values for build configurations
################################################################################
+# The Target build architecture.
+ARCH := aarch64
# Build verbosity
V := 0
# Debug build
@@ -468,6 +470,12 @@ else
$(eval $(call add_define,PRELOADED_BL33_BASE))
endif
endif
+# Define the AARCH32/AARCH64 flag based on the ARCH flag
+ifeq (${ARCH},aarch32)
+ $(eval $(call add_define,AARCH32))
+else
+ $(eval $(call add_define,AARCH64))
+endif
################################################################################
# Include BL specific makefiles