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.
This commit is contained in:
parent
e02a2ce04c
commit
09c7d0119c
@ -10,15 +10,22 @@ NATIVE_EMULATION=elf${_sz}btsmip_fbsd
|
|||||||
NATIVE_EMULATION=elf${_sz}ltsmip_fbsd
|
NATIVE_EMULATION=elf${_sz}ltsmip_fbsd
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
SRCS+= e${NATIVE_EMULATION}.c
|
MIPS_ABIS=elf32btsmip_fbsd elf32ltsmip_fbsd elf64btsmip_fbsd elf64ltsmip_fbsd
|
||||||
CLEANFILES+= e${NATIVE_EMULATION}.c
|
.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
|
# nb: elf32 handles both elf32 and elf64 targets
|
||||||
e${NATIVE_EMULATION}.c: ${.CURDIR}/${NATIVE_EMULATION}.sh emultempl/elf32.em \
|
e${abi}.c: ${.CURDIR}/${abi}.sh emultempl/elf32.em \
|
||||||
scripttempl/elf.sc genscripts.sh stringify.sed
|
scripttempl/elf.sc genscripts.sh stringify.sed
|
||||||
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${LIBSERACHPATH} \
|
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${LIBSERACHPATH} \
|
||||||
${TOOLS_PREFIX}/usr \
|
${TOOLS_PREFIX}/usr \
|
||||||
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
|
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
|
||||||
${NATIVE_EMULATION} "" no ${NATIVE_EMULATION} ${TARGET_TUPLE} \
|
${abi} "" no ${abi} ${TARGET_TUPLE} \
|
||||||
${.CURDIR}/${NATIVE_EMULATION}.sh
|
${.CURDIR}/${abi}.sh
|
||||||
|
.endfor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user