mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 10:08:41 -05:00
r195575 | imp | 2009-07-10 12:24:02 -0600 (Fri, 10 Jul 2009) | 2 lines quick hack for the problem gonzo is seeing. r195530 | imp | 2009-07-10 01:18:30 -0600 (Fri, 10 Jul 2009) | 5 lines Always build all 4 emulators into the mips toolchain. # I think we have a gcc spec file issue with abi=64 since I have to do other # hacks to get it mostly kinda right.
31 lines
887 B
Makefile
31 lines
887 B
Makefile
# $FreeBSD$
|
|
|
|
#xxxIMPxxx: size?
|
|
#xxxIMPxxx: TARGET_BIG_ENDIAN is lame. We should use the netbsd convention
|
|
# of mipsel and mips.
|
|
_sz?=32
|
|
.if defined(TARGET_BIG_ENDIAN)
|
|
NATIVE_EMULATION=elf${_sz}btsmip_fbsd
|
|
.else
|
|
NATIVE_EMULATION=elf${_sz}ltsmip_fbsd
|
|
.endif
|
|
|
|
MIPS_ABIS=elf32btsmip_fbsd elf32ltsmip_fbsd elf64btsmip_fbsd elf64ltsmip_fbsd
|
|
.for abi in ${MIPS_ABIS}
|
|
#.if (${abi} != ${NATIVE_EMULATION})
|
|
EMS+= ${abi}
|
|
#.endif
|
|
.for ext in ${ELF_SCR_EXT}
|
|
LDSCRIPTS+= ${abi}.${ext}
|
|
.endfor
|
|
SRCS+= e${abi}.c
|
|
CLEANFILES+= e${abi}.c
|
|
# nb: elf32 handles both elf32 and elf64 targets
|
|
e${abi}.c: ${.CURDIR}/${abi}.sh emultempl/elf32.em \
|
|
scripttempl/elf.sc genscripts.sh stringify.sed
|
|
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${LIBSERACHPATH} \
|
|
${TOOLS_PREFIX}/usr \
|
|
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
|
|
${abi} "" no ${abi} ${TARGET_TUPLE} \
|
|
${.CURDIR}/${abi}.sh
|
|
.endfor
|