diff options
author | Warner Losh <imp@FreeBSD.org> | 2010-11-13 20:41:47 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2010-11-13 20:41:47 +0000 |
commit | 6451dd5ebbbfd18233fe237df5bd8cdeb0a6fa17 (patch) | |
tree | 5b1bf44de8dd5a980ac1d6495ba298a39a08b2c2 /Makefile.inc1 | |
parent | e07bbfac01e3b75209125bec6e78a3d66d11ecb5 (diff) | |
download | src-6451dd5ebbbfd18233fe237df5bd8cdeb0a6fa17.tar.gz src-6451dd5ebbbfd18233fe237df5bd8cdeb0a6fa17.zip |
The fixes for mips/mips arm/arm compat hacks broke if TARGET or
TARGET_ARCH wasn't defined. Fix it for that case.
Submitted by: Garrett Cooper
Notes
Notes:
svn path=/head/; revision=215257
Diffstat (limited to 'Makefile.inc1')
-rw-r--r-- | Makefile.inc1 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index a6d1842fc3a6..fb71ce1beb5b 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -124,7 +124,8 @@ TARGET_ARCH= ${TARGET:S/pc98/i386/:S/sun4v/sparc64/:S/mips/mipsel/} 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" +.if defined(TARGET) && defined(TARGET_ARCH) && \ + ${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 @@ -133,7 +134,7 @@ TARGET_ARCH=mipsel .endif .endif # arm with TARGET_BIG_ENDIAN -> armeb -.if ${TARGET_ARCH} == "arm" && defined(TARGET_BIG_ENDIAN) +.if defined(TARGET_ARCH) && ${TARGET_ARCH} == "arm" && defined(TARGET_BIG_ENDIAN) .warning "TARGET_ARCH of arm with TARGET_BIG_ENDIAN is deprecated. use armeb" TARGET_ARCH=armeb .endif |