Skip to content

Commit

Permalink
AArch32: Add essential Arch helpers
Browse files Browse the repository at this point in the history
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
  • Loading branch information
soby-mathew committed Aug 10, 2016
1 parent c45f627 commit 031dbb1
Show file tree
Hide file tree
Showing 4 changed files with 752 additions and 14 deletions.
8 changes: 8 additions & 0 deletions Makefile
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 031dbb1

Please sign in to comment.