Initial MKCOMPAT support for ARM EABI. (doesn't quite work right)

This commit is contained in:
matt 2012-08-03 08:02:47 +00:00
parent f8fa482c66
commit 4d4aee085b
3 changed files with 21 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: archdirs.mk,v 1.1 2009/12/13 09:27:13 mrg Exp $
# $NetBSD: archdirs.mk,v 1.2 2012/08/03 08:02:47 matt Exp $
# list of subdirs used per-platform
@ -10,6 +10,10 @@ ARCHDIR_SUBDIR= sparc64/sparc
ARCHDIR_SUBDIR= amd64/i386
.endif
.if (${MACHINE_ARCH} == "armeb" || ${MACHINE_ARCH} == "arm")
ARCHDIR_SUBDIR= arm/eabi
.endif
.if (${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el")
ARCHDIR_SUBDIR= mips64/64 mips64/o32
.endif

5
compat/arm/eabi/Makefile Normal file
View File

@ -0,0 +1,5 @@
# $NetBSD: Makefile,v 1.1 2012/08/03 08:02:47 matt Exp $
BSD_MK_COMPAT_FILE=${.CURDIR}/bsd.eabi.mk
.include "../../compatsubdir.mk"

View File

@ -0,0 +1,11 @@
# $NetBSD: bsd.eabi.mk,v 1.1 2012/08/03 08:02:47 matt Exp $
MLIBDIR= eabi
COPTS+= -mabi=aapcs-linux
CPUFLAGS+= -mabi=aapcs-linux
LDADD+= -mabi=aapcs-linux
LDFLAGS+= -mabi=aapcs-linux
MKDEPFLAGS+= -mabi=aapcs-linux
.include "${.PARSEDIR}/../../Makefile.compat"