Module Name: src
Committed By: matt
Date: Fri Aug 3 08:02:47 UTC 2012
Modified Files:
src/compat: archdirs.mk
Added Files:
src/compat/arm/eabi: Makefile bsd.eabi.mk
Log Message:
Initial MKCOMPAT support for ARM EABI. (doesn't quite work right)
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/compat/archdirs.mk
cvs rdiff -u -r0 -r1.1 src/compat/arm/eabi/Makefile \
src/compat/arm/eabi/bsd.eabi.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/compat/archdirs.mk
diff -u src/compat/archdirs.mk:1.1 src/compat/archdirs.mk:1.2
--- src/compat/archdirs.mk:1.1 Sun Dec 13 09:27:13 2009
+++ src/compat/archdirs.mk Fri Aug 3 08:02:47 2012
@@ -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
Added files:
Index: src/compat/arm/eabi/Makefile
diff -u /dev/null src/compat/arm/eabi/Makefile:1.1
--- /dev/null Fri Aug 3 08:02:47 2012
+++ src/compat/arm/eabi/Makefile Fri Aug 3 08:02:47 2012
@@ -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"
Index: src/compat/arm/eabi/bsd.eabi.mk
diff -u /dev/null src/compat/arm/eabi/bsd.eabi.mk:1.1
--- /dev/null Fri Aug 3 08:02:47 2012
+++ src/compat/arm/eabi/bsd.eabi.mk Fri Aug 3 08:02:47 2012
@@ -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"