~linaro-toolchain-dev/linaro-toolchain-misc/kvm-boot-wrapper

Viewing all changes in revision 24.

  • Committer: Christoffer Dall
  • Author(s): Peter Maydell
  • Date: 2012-02-05 18:07:07 UTC
  • Revision ID: git-v1:2b03c4f2e42b2745d3ac26450e59cc674cfe3904
config-default.mk: Explicitly pass -marm when we want to build ARM mode

Explicitly pass -marm in the CFLAGS when we want to build in ARM mode,
because some compilers will default to Thumb. This has not previously been
a problem in practice because the assembler will compile in ARM mode
anyway unless we told it to use Thumb mode with -Wa,-mthumb. However it
does mean that we end up building boot.S with a cpp that thinks it is
compiling for Thumb (and thus defines __thumb__) but an assembler that
generates ARM code. Passing -marm explicitly avoids this mismatch and
allows us to use the cpp preprocessor defines without fear.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: