Skip to content

Fix redundant usage of -mcpu and -march/-mtune

Karoly Kasza buildroot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1Fix redundant usage of -mcpu and -march/-mtunetoolchain/toolchain-external/toolchain-external.mk+4 -31 reply
1/1Fix redundant usage of -mcpu and -march/-mtune+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Buildroot] [PATCH 0/1] Fix redundant usage of -mcpu and -march/-mtune

Hi,

I've been using the Linaro external toolchain in the latest GIT to generate ARM code. I've found that when using this external compiler, Buildroot compulsorily specifies the -mcpu and -march switches to GCC, which is redundant (-march and -mtune can be concluded from -mcpu, see
http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html )
While most of the time this only generates a warning, mmc-utils can not be compiled this way and probably other packages suffer from this as well.

I recommend altering toolchain/toolchain-external/toolchain-external.mk, so it won't supply redundant GCC switches.

Regards,
Karoly

Karoly Kasza (1):
Fix redundant usage of -mcpu and -march/-mtune

 toolchain/toolchain-external/toolchain-external.mk |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
Signature · 1 line
1.7.10.4