OSDN Git Service

Refactor transform-o-to-* definitions.
authorDan Albert <danalbert@google.com>
Thu, 13 Nov 2014 18:15:46 +0000 (10:15 -0800)
committerDan Albert <danalbert@google.com>
Fri, 14 Nov 2014 00:21:46 +0000 (16:21 -0800)
commite088c0d281b796694c6c0d0e761ef62d3fe287c2
treee9b473f54cd081e3445b9524f2ff984023f725b0
parenteddd9fb03faa607c77feed1cea8f435df7f64140
Refactor transform-o-to-* definitions.

Previously, there was one generic definition for each of the
transform-o-to-* functions in definitions.mk, and one target specific
one in each combo/TARGET_*.mk. The generic one was entirely unused,
and the target specific ones were all nearly identical.

Changing anything in these functions was tedious at best, and often
error prone. The differences between any 32-bit arch and its 64-bit
equivalent were restricted to the name of the linker, and the ARM and
MIPS definitions were identical. The few differences between ARM and
x86 looked to be compatibility for an old (ca. 2008) toolchain issue
with --gc-sections, and a bug (LDFLAGS coming first rather than
later).

To simplify things, I've moved the definitions for these out of
combo/TARGET_*.mk and back into definitions.mk. The differences
between ARM and x86 have been scrapped. Anything that really does
still need to be target specific can be handled as I have the linker:
add a TARGET_FOO variable to the given target and then add it to the
generic definition.

Change-Id: I54dc1bffc32ac39f27f0b87247dd6a6dbaf0b162
core/combo/TARGET_linux-arm.mk
core/combo/TARGET_linux-arm64.mk
core/combo/TARGET_linux-mips.mk
core/combo/TARGET_linux-mips64.mk
core/combo/TARGET_linux-x86.mk
core/combo/TARGET_linux-x86_64.mk
core/definitions.mk