summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2010-11-13 18:39:24 +0000
committerimp <imp@FreeBSD.org>2010-11-13 18:39:24 +0000
commit92ec3c18bd20ab5a94f95021ea99deeeeec77f32 (patch)
treeabc130f2298c1eda8cdbf05dfec500a56e37ed21 /Makefile.inc1
parentafaad31a1b3cda68c058c876e7bbfdf720eff7eb (diff)
downloadFreeBSD-src-92ec3c18bd20ab5a94f95021ea99deeeeec77f32.zip
FreeBSD-src-92ec3c18bd20ab5a94f95021ea99deeeeec77f32.tar.gz
Add legacy names for mips:mips and arm with TARGET_BIG_ENDIAN, for the moment.
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc114
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index cd29204..a6d1842 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -123,6 +123,20 @@ TARGET_ARCH= ${TARGET:S/pc98/i386/:S/sun4v/sparc64/:S/mips/mipsel/}
${TARGET_ARCH} != ${MACHINE_ARCH}
TARGET= ${TARGET_ARCH:C/mipse[lb]/mips/:C/armeb/arm}
.endif
+# Legacy names, for a transition period mips:mips -> mipsel:mips
+.if ${TARGET_ARCH} == "mips" && ${TARGET} == "mips"
+.warning "TARGET_ARCH of mips is deprecated in favor of mipsel or mipseb"
+.if defined(TARGET_BIG_ENDIAN)
+TARGET_ARCH=mipseb
+.else
+TARGET_ARCH=mipsel
+.endif
+.endif
+# arm with TARGET_BIG_ENDIAN -> armeb
+.if ${TARGET_ARCH} == "arm" && defined(TARGET_BIG_ENDIAN)
+.warning "TARGET_ARCH of arm with TARGET_BIG_ENDIAN is deprecated. use armeb"
+TARGET_ARCH=armeb
+.endif
# Otherwise, default to current machine type and architecture.
TARGET?= ${MACHINE}
TARGET_ARCH?= ${MACHINE_ARCH}
OpenPOWER on IntegriCloud