Add -mcpu flag to ARM CPU spec files (Ref #797)

When using certain assembler instructions, e.g. 'smc' that are
only available on some CPUs of the same architecture like ARMv7a,
it's necessary to specify the target CPU for the assembler. Otherwise
it will complain about.
This commit is contained in:
Stefan Kalkowski 2013-07-10 10:54:55 +02:00 committed by Christian Helmuth
parent 2dce04618e
commit 946bd297e6
3 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,8 @@ SPECS += arm_v7a
# add repository relative include paths
REP_INC_DIR += include/cortex_a15
CC_OPT += -mcpu=cortex-a15
# include implied specs
include $(call select_from_repositories,mk/spec-arm_v7a.mk)

View File

@ -10,5 +10,7 @@ SPECS += arm_v7a
# add repository relative include paths
REP_INC_DIR += include/cortex_a8
CC_OPT += -mcpu=cortex-a8
# include implied specs
include $(call select_from_repositories,mk/spec-arm_v7a.mk)

View File

@ -10,6 +10,8 @@ SPECS += arm_v7a pl390
# add repository relative include paths
REP_INC_DIR += include/cortex_a9
CC_OPT += -mcpu=cortex-a9
# include implied specs
include $(call select_from_repositories,mk/spec-arm_v7a.mk)
include $(call select_from_repositories,mk/spec-pl390.mk)