ARM: fix arch/arm/Makefile for Tegra
PATCH v2 1/1 ARM: fix arch/arm/Makefile for Tegra
Since commit 79d75d752717 (ARM: move -march=* and -mtune= options to arch/arm/Makefile), all the Tegra boards are broken because the SPL is built for ARMv7.
Insert Tegra-specific code to arch/arm/Makefile to set compiler flags for an earlier ARM architecture.
Note:
The v1 patch for commit 79d75d752717 *was* correct when it was submitted. Notice it was originally written for multi .config configuration where Kconfig set CONFIG_CPU_V7/CONFIG_CPU_ARM720T for Tegra U-Boot Main/SPL, respectively. But, until it was merged into the mainline, commit e02ee2548afe (kconfig: switch to single .config configuration) had been already applied there.
---
Changes in v2:
- Brush up the commit-description because V1 had a typo (s/look/took/)
- Add Jan's Tested-by credit
arch/arm/Makefile | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/Makefile +5 -0
@@ -2,6 +2,11 @@ # SPDX-License-Identifier: GPL-2.0+ # +ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TEGRA),yy) +CONFIG_CPU_V7= +CONFIG_CPU_ARM720T=y +endif + # This selects which instruction set is used. arch-$(CONFIG_CPU_ARM720T) =-march=armv4 arch-$(CONFIG_CPU_ARM920T) =-march=armv4
Signature · 1 line
1.9.1
PATCH v2 1/1 ARM: fix arch/arm/Makefile for Tegra
Quoted 15 lines · Masahiro Yamada
Since commit
79d75d752717(ARM: move -march=* and -mtune= options toarch/arm/Makefile), all the Tegra boards are broken because the SPL is built for ARMv7.Insert Tegra-specific code to
arch/arm/Makefileto set compiler flags for an earlier ARM architecture.Note:
The v1 patch for commit79d75d752717*was* correct when it was submitted. Notice it was originally written for multi .config configuration whereKconfigset CONFIG_CPU_V7/CONFIG_CPU_ARM720T for Tegra U-Boot Main/SPL, respectively. But, until it was merged into the mainline, commite02ee2548afe(kconfig: switch to single .config configuration) had been already applied there.
Quoted 4 lines
Signed-off-by Masahiro Yamada <[email protected]>Reported-by Stephen Warren <[email protected]>Reported-by Jan Kiszka <[email protected]>Tested-by Jan Kiszka <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150411/2f56d389/attachment.sig>
PATCH v2 1/1 ARM: fix arch/arm/Makefile for Tegra
In reply to Masahiro YamadaQuoted 7 lines · Masahiro Yamada
Since commit
79d75d752717(ARM: move -march=* and -mtune= options toarch/arm/Makefile), all the Tegra boards are broken because the SPL is built for ARMv7.Insert Tegra-specific code to
arch/arm/Makefileto set compiler flags for an earlier ARM architecture.
Quoted 7 lines
Note:
The v1 patch for commit79d75d752717*was* correct when it was submitted. Notice it was originally written for multi .config configuration whereKconfigset CONFIG_CPU_V7/CONFIG_CPU_ARM720T for Tegra U-Boot Main/SPL, respectively. But, until it was merged into the mainline, commite02ee2548afe(kconfig: switch to single .config configuration) had been already applied there.