[U-Boot-Users] FW: [PATCH][ARM] Rationalize ARM compiler options

Haavard Skinnemoen hskinnemoen at atmel.com
Wed Feb 20 20:28:06 CET 2008


On Wed, 20 Feb 2008 18:58:27 +0100
"Ulf Samuelsson" <ulf at atmel.com> wrote:

> Looks OK to me, but I never used "call cc-option".

cc-option will try to run the compiler with the option. If the compiler
didn't complain, it evaluates to the option. If it failed, it evaluates
to nothing.

Very useful if you want to introduce new compiler options without
breaking compatibility with old or weird compilers. The Linux build
system uses it all over the place -- I suspect we could prevent quite a
few toolchain incompatibilies by using it more extensively in u-boot as
well.

Of course, it won't help you if the compiler misbehaves in other ways
than just refusing to accept the option.

Haavard




More information about the U-Boot mailing list