MKCOMPAT support for earm.
This commit is contained in:
parent
36e3b717c5
commit
520583e243
@ -1,4 +1,4 @@
|
||||
# $NetBSD: archdirs.mk,v 1.2 2012/08/03 08:02:47 matt Exp $
|
||||
# $NetBSD: archdirs.mk,v 1.3 2013/04/27 08:44:35 matt Exp $
|
||||
|
||||
# list of subdirs used per-platform
|
||||
|
||||
@ -10,10 +10,18 @@ ARCHDIR_SUBDIR= sparc64/sparc
|
||||
ARCHDIR_SUBDIR= amd64/i386
|
||||
.endif
|
||||
|
||||
.if (${MACHINE_ARCH} == "armeb" || ${MACHINE_ARCH} == "arm")
|
||||
.if (${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "armeb")
|
||||
ARCHDIR_SUBDIR= arm/eabi
|
||||
.endif
|
||||
|
||||
.if (${MACHINE_ARCH} == "earm" || ${MACHINE_ARCH} == "earmeb")
|
||||
ARCHDIR_SUBDIR= arm/oabi
|
||||
.endif
|
||||
|
||||
.if (${MACHINE_ARCH} == "earmhf" || ${MACHINE_ARCH} == "earmhfeb")
|
||||
ARCHDIR_SUBDIR= arm/oabi arm/eabi
|
||||
.endif
|
||||
|
||||
.if (${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el")
|
||||
ARCHDIR_SUBDIR= mips64/64 mips64/o32
|
||||
.endif
|
||||
|
@ -1,11 +1,28 @@
|
||||
# $NetBSD: bsd.eabi.mk,v 1.1 2012/08/03 08:02:47 matt Exp $
|
||||
# $NetBSD: bsd.eabi.mk,v 1.2 2013/04/27 08:44:35 matt Exp $
|
||||
|
||||
MLIBDIR= eabi
|
||||
MLIBDIR= eabi
|
||||
.if ${MACHINE_ARCH:M*eb} != ""
|
||||
EARM_MACHINE_ARCH= earmeb
|
||||
LD+= -m armelfb_nbsd_eabi
|
||||
.else
|
||||
EARM_MACHINE_ARCH= earm
|
||||
LD+= -m armelf_nbsd_eabi
|
||||
.endif
|
||||
LIBC_MACHINE_ARCH= ${EARM_MACHINE_ARCH}
|
||||
LIBGCC_MACHINE_ARCH= ${EARM_MACHINE_ARCH}
|
||||
COMMON_MACHINE_ARCH= ${EARM_MACHINE_ARCH}
|
||||
KVM_MACHINE_ARCH= ${EARM_MACHINE_ARCH}
|
||||
PTHREAD_MACHINE_ARCH= ${EARM_MACHINE_ARCH}
|
||||
BFD_MACHINE_ARCH= ${EARM_MACHINE_ARCH}
|
||||
CSU_MACHINE_ARCH= ${EARM_MACHINE_ARCH}
|
||||
CRYPTO_MACHINE_CPU= ${EARM_MACHINE_ARCH}
|
||||
LDELFSO_MACHINE_CPU= ${EARM_MACHINE_ARCH}
|
||||
GOMP_MACHINE_ARCH= ${EARM_MACHINE_ARCH}
|
||||
|
||||
COPTS+= -mabi=aapcs-linux
|
||||
CPUFLAGS+= -mabi=aapcs-linux
|
||||
LDADD+= -mabi=aapcs-linux
|
||||
LDFLAGS+= -mabi=aapcs-linux
|
||||
MKDEPFLAGS+= -mabi=aapcs-linux
|
||||
COPTS+= -mabi=aapcs-linux -mfloat-abi=soft -Wa,-meabi=5
|
||||
CPUFLAGS+= -mabi=aapcs-linux -mfloat-abi=soft -Wa,-meabi=5
|
||||
LDADD+= -mabi=aapcs-linux -mfloat-abi=soft -Wa,-meabi=5
|
||||
LDFLAGS+= -mabi=aapcs-linux -mfloat-abi=soft -Wa,-meabi=5
|
||||
MKDEPFLAGS+= -mabi=aapcs-linux -mfloat-abi=soft -Wa,-meabi=5
|
||||
|
||||
.include "${.PARSEDIR}/../../Makefile.compat"
|
||||
|
5
compat/arm/oabi/Makefile
Normal file
5
compat/arm/oabi/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2013/04/27 08:44:35 matt Exp $
|
||||
|
||||
BSD_MK_COMPAT_FILE=${.CURDIR}/bsd.oabi.mk
|
||||
|
||||
.include "../../compatsubdir.mk"
|
29
compat/arm/oabi/bsd.oabi.mk
Normal file
29
compat/arm/oabi/bsd.oabi.mk
Normal file
@ -0,0 +1,29 @@
|
||||
# $NetBSD: bsd.oabi.mk,v 1.1 2013/04/27 08:44:35 matt Exp $
|
||||
|
||||
MLIBDIR= oabi
|
||||
.if ${MACHINE_ARCH:M*eb} != ""
|
||||
ARM_MACHINE_ARCH= armeb
|
||||
LD+= -m armelfb
|
||||
.else
|
||||
ARM_MACHINE_ARCH= arm
|
||||
LD+= -m armelf
|
||||
.endif
|
||||
LIBC_MACHINE_ARCH= ${ARM_MACHINE_ARCH}
|
||||
LIBGCC_MACHINE_ARCH= ${ARM_MACHINE_ARCH}
|
||||
LIBEXECINFO_MACHINE_ARCH= ${ARM_MACHINE_ARCH}
|
||||
COMMON_MACHINE_ARCH= ${ARM_MACHINE_ARCH}
|
||||
KVM_MACHINE_ARCH= ${ARM_MACHINE_ARCH}
|
||||
PTHREAD_MACHINE_ARCH= ${ARM_MACHINE_ARCH}
|
||||
BFD_MACHINE_ARCH= ${ARM_MACHINE_ARCH}
|
||||
CSU_MACHINE_ARCH= ${ARM_MACHINE_ARCH}
|
||||
CRYPTO_MACHINE_CPU= ${ARM_MACHINE_ARCH}
|
||||
LDELFSO_MACHINE_CPU= ${ARM_MACHINE_ARCH}
|
||||
GOMP_MACHINE_ARCH= ${ARM_MACHINE_ARCH}
|
||||
|
||||
COPTS+= -mabi=apcs-gnu -mfloat-abi=soft
|
||||
CPUFLAGS+= -mabi=apcs-gnu -mfloat-abi=soft
|
||||
LDADD+= -mabi=apcs-gnu -mfloat-abi=soft
|
||||
LDFLAGS+= -mabi=apcs-gnu -mfloat-abi=soft
|
||||
MKDEPFLAGS+= -mabi=apcs-gnu -mfloat-abi=soft
|
||||
|
||||
.include "${.PARSEDIR}/../../Makefile.compat"
|
Loading…
Reference in New Issue
Block a user