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:
parent
2dce04618e
commit
946bd297e6
|
@ -10,6 +10,8 @@ SPECS += arm_v7a
|
||||||
# add repository relative include paths
|
# add repository relative include paths
|
||||||
REP_INC_DIR += include/cortex_a15
|
REP_INC_DIR += include/cortex_a15
|
||||||
|
|
||||||
|
CC_OPT += -mcpu=cortex-a15
|
||||||
|
|
||||||
# include implied specs
|
# include implied specs
|
||||||
include $(call select_from_repositories,mk/spec-arm_v7a.mk)
|
include $(call select_from_repositories,mk/spec-arm_v7a.mk)
|
||||||
|
|
||||||
|
|
|
@ -10,5 +10,7 @@ SPECS += arm_v7a
|
||||||
# add repository relative include paths
|
# add repository relative include paths
|
||||||
REP_INC_DIR += include/cortex_a8
|
REP_INC_DIR += include/cortex_a8
|
||||||
|
|
||||||
|
CC_OPT += -mcpu=cortex-a8
|
||||||
|
|
||||||
# include implied specs
|
# include implied specs
|
||||||
include $(call select_from_repositories,mk/spec-arm_v7a.mk)
|
include $(call select_from_repositories,mk/spec-arm_v7a.mk)
|
||||||
|
|
|
@ -10,6 +10,8 @@ SPECS += arm_v7a pl390
|
||||||
# add repository relative include paths
|
# add repository relative include paths
|
||||||
REP_INC_DIR += include/cortex_a9
|
REP_INC_DIR += include/cortex_a9
|
||||||
|
|
||||||
|
CC_OPT += -mcpu=cortex-a9
|
||||||
|
|
||||||
# include implied specs
|
# include implied specs
|
||||||
include $(call select_from_repositories,mk/spec-arm_v7a.mk)
|
include $(call select_from_repositories,mk/spec-arm_v7a.mk)
|
||||||
include $(call select_from_repositories,mk/spec-pl390.mk)
|
include $(call select_from_repositories,mk/spec-pl390.mk)
|
||||||
|
|
Loading…
Reference in New Issue