diff options
| author | matt <matt@NetBSD.org> | 2012-08-03 08:02:47 +0000 |
|---|---|---|
| committer | matt <matt@NetBSD.org> | 2012-08-03 08:02:47 +0000 |
| commit | 3d979f3820ac10b9dca75538471a1aedc1d99df3 (patch) | |
| tree | a3693071f5f0a0871c5e00bf7ac7e068089507ce /compat | |
| parent | f0b8bfd497acda10c2cd74494b8c75848d832831 (diff) | |
Initial MKCOMPAT support for ARM EABI. (doesn't quite work right)
Diffstat (limited to 'compat')
| -rw-r--r-- | compat/archdirs.mk | 6 | ||||
| -rw-r--r-- | compat/arm/eabi/Makefile | 5 | ||||
| -rw-r--r-- | compat/arm/eabi/bsd.eabi.mk | 11 |
3 files changed, 21 insertions, 1 deletions
diff --git a/compat/archdirs.mk b/compat/archdirs.mk index d72df1e106e..4a5b094e045 100644 --- a/compat/archdirs.mk +++ b/compat/archdirs.mk @@ -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 diff --git a/compat/arm/eabi/Makefile b/compat/arm/eabi/Makefile new file mode 100644 index 00000000000..f4257890645 --- /dev/null +++ b/compat/arm/eabi/Makefile @@ -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" diff --git a/compat/arm/eabi/bsd.eabi.mk b/compat/arm/eabi/bsd.eabi.mk new file mode 100644 index 00000000000..f8874942546 --- /dev/null +++ b/compat/arm/eabi/bsd.eabi.mk @@ -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" |
