am33x-cm3: Enforce correct -march option
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 9 Jun 2013 00:57:38 +0000 (00:57 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 9 Jun 2013 18:59:14 +0000 (20:59 +0200)
commitc73c5fc90d0d40c86ea7690e23fa34409c39f4bf
treea50abc710372e6090e0de73a25ef9419ac7a86ca
parent1d0f68f4767df9bc79c206ec03314e60ffa4e7eb
am33x-cm3: Enforce correct -march option

Buildroot uses a normal ARM compiler to build the AM33X CM3 firmware
(which runs on a Cortex-M3 processor), but Buildroot will have a
default -march value that doesn't necessarily match the one needed for
Cortex-M3, leading to build failures (gcc complains that the
-mcpu=cortex-m3 option being passed is not compatible with the
selected -march).

Fix this by explicitly indicating -march=armv7-m.

Fixes:

   http://autobuild.buildroot.net/results/db1/db13623b1701bfe678c302e8f88c7473cb2345f9/build-end.log

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/am33x-cm3/am33x-cm3-0001-fix-makefile.patch [new file with mode: 0644]