diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2010-04-29 03:41:52 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2010-04-29 03:41:52 +0000 |
commit | 8b321c6cad4b0de5bba49c6d9e8c639884266eb1 (patch) | |
tree | d7094b3e849f4588b6ce9804b356a215deb36cca /gnu/usr.bin | |
parent | 52587c81cbc96d2547c5cdbc2095ad36bf1ad427 (diff) |
Add the bits to compile a working powerpc kernel. This is a work in
progress.
most of the smarts from drahn, ok drahn
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/cc/cc_tools/Makefile | 5 | ||||
-rw-r--r-- | gnu/usr.bin/cc/libgcc/Makefile | 10 |
2 files changed, 12 insertions, 3 deletions
diff --git a/gnu/usr.bin/cc/cc_tools/Makefile b/gnu/usr.bin/cc/cc_tools/Makefile index 5710dc5586f..ed8342a8abf 100644 --- a/gnu/usr.bin/cc/cc_tools/Makefile +++ b/gnu/usr.bin/cc/cc_tools/Makefile @@ -1,5 +1,5 @@ # $FreeBSD: src/gnu/usr.bin/cc/cc_tools/Makefile,v 1.88.8.1 2009/04/15 03:14:26 kensmith Exp $ -# $OpenBSD: Makefile,v 1.4 2010/04/25 21:04:27 kettenis Exp $ +# $OpenBSD: Makefile,v 1.5 2010/04/29 03:41:51 marco Exp $ .include <bsd.own.mk> @@ -39,6 +39,9 @@ TARGET_INC+= elfos.h TARGET_INC+= openbsd.h TARGET_INC+= openbsd-libpthread.h TARGET_INC+= openbsd-native.h +.if ${TARGET_ARCH} == "powerpc" +TARGET_INC+= freebsd-spec.h +.endif .if ${TARGET_ARCH} != "i386" && ${TARGET_ARCH} != "amd64" .if exists(${GCCDIR}/config/${GCC_CPU}/sysv4.h) TARGET_INC+= ${GCC_CPU}/sysv4.h diff --git a/gnu/usr.bin/cc/libgcc/Makefile b/gnu/usr.bin/cc/libgcc/Makefile index 886434bcbe9..1f321a93ca1 100644 --- a/gnu/usr.bin/cc/libgcc/Makefile +++ b/gnu/usr.bin/cc/libgcc/Makefile @@ -1,5 +1,5 @@ # $FreeBSD: src/gnu/lib/libgcc/Makefile,v 1.58.8.1 2009/04/15 03:14:26 kensmith Exp $ -# $OpenBSD: Makefile,v 1.3 2010/04/25 21:04:27 kettenis Exp $ +# $OpenBSD: Makefile,v 1.4 2010/04/29 03:41:51 marco Exp $ .include <bsd.own.mk> @@ -287,4 +287,10 @@ beforeinstall: .include <bsd.lib.mk> -.SUFFIXES: .vis .vo + +.SUFFIXES: .vis .vo .asm + +.if ${TARGET_ARCH} == "powerpc" +.asm.o: + ${CC_T} ${${T}_CFLAGS} -xassembler-with-cpp -o ${.TARGET} ${.ALLSRC:M*.asm} +.endif |