]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
afboot-stm32: use the Buildroot toolchain
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 15 Apr 2016 21:02:18 +0000 (23:02 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 16 Apr 2016 10:43:16 +0000 (12:43 +0200)
commita354e3828dbb5f2c43885a4b4b9e4db6edc0ac33
tree8a8b925bd9fd81b4e633ccf7707c80fa01abfd1a
parent97354fd229aa62a4174b0a93f28951edde6cc0f4
afboot-stm32: use the Buildroot toolchain

By default, the afboot-stm32 Makefile uses "CROSS_COMPILE =
arm-none-eabi-". Since I had such a toolchain installed on my system
when testing afboot-stm32, I didn't realize it wasn't using the
Buildroot toolchain.

However, using the Buildroot toolchain doesn't immediately works for
FLAT toolchains, as gcc automatically wants to create a FLAT
binary. So we need to adjust the afboot-stm32 Makefile to use directly
'ld' and not 'gcc' when linking.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
boot/afboot-stm32/0001-Use-ld-instead-of-gcc-for-linking.patch [new file with mode: 0644]
boot/afboot-stm32/afboot-stm32.mk