]> git.dujemihanovic.xyz Git - u-boot.git/commit
powerpc: change .fixup test to a GCC version test
authorScott Wood <scottwood@freescale.com>
Fri, 21 Sep 2012 00:10:01 +0000 (19:10 -0500)
committerScott Wood <scottwood@freescale.com>
Mon, 26 Nov 2012 21:41:22 +0000 (15:41 -0600)
commit6ec63f411e47847484b60a8b451e528d613c9dd9
tree2d41c8d38c500fae9846209d40d98b5bb3da8eaf
parentca2fca22351aa8d2f52e21f2dffb22b0c82170b6
powerpc: change .fixup test to a GCC version test

This was introduced by commit 244615197469dd6fe75ae082f38424b97c79aeaf, but it
fails in a minimal SPL build where the only thing in arch/powerpc/lib is
cache.c, which apparently doesn't generate any fixup records.

The problem is reported to occur with GCC 3.x, so insist on GCC 4.0 or newer.
Patterned after checkthumb as suggested by Tom Rini.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Cc: Peter Tyser <ptyser@xes-inc.com>
Cc: Tom Rini <trini@ti.com>
--
v2: test gcc version instead of testing nothing
Makefile
arch/powerpc/config.mk
arch/powerpc/lib/Makefile