mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 21:51:31 +00:00
Makefile: ARMv7-M has no CPSR register
Compiling on ARMv7-M fails when trying to address the CPSR register which is not available on this architecture. Atomic functions refer to the CPSR register if compiled with arch/arm/include/asm/proc-armv/system.h. On ARMv7-M we should hence use arch/arm/thumb1/include/asm/proc-armv/system.h instead. Cf. https://stackoverflow.com/questions/61097841/error-selected-processor-does-not-support-requested-special-purpose-register Reported-by: Sicris Rey Embay <sicris.embay@gmail.com> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
a555557ddc
commit
0053d26bcc
1 changed files with 9 additions and 7 deletions
6
Makefile
6
Makefile
|
@ -745,8 +745,10 @@ UBOOTINCLUDE := \
|
||||||
-Iinclude \
|
-Iinclude \
|
||||||
$(if $(KBUILD_SRC), -I$(srctree)/include) \
|
$(if $(KBUILD_SRC), -I$(srctree)/include) \
|
||||||
$(if $(CONFIG_$(SPL_)SYS_THUMB_BUILD), \
|
$(if $(CONFIG_$(SPL_)SYS_THUMB_BUILD), \
|
||||||
$(if $(CONFIG_HAS_THUMB2),, \
|
$(if $(CONFIG_HAS_THUMB2), \
|
||||||
-I$(srctree)/arch/$(ARCH)/thumb1/include),) \
|
$(if $(CONFIG_CPU_V7M), \
|
||||||
|
-I$(srctree)/arch/arm/thumb1/include), \
|
||||||
|
-I$(srctree)/arch/arm/thumb1/include)) \
|
||||||
-I$(srctree)/arch/$(ARCH)/include \
|
-I$(srctree)/arch/$(ARCH)/include \
|
||||||
-include $(srctree)/include/linux/kconfig.h
|
-include $(srctree)/include/linux/kconfig.h
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue