| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.rumpkern,v 1.67 2009/12/13 08:25:20 mrg Exp $ | | 1 | # $NetBSD: Makefile.rumpkern,v 1.68 2009/12/14 21:19:23 matt Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | .include "${RUMPTOP}/Makefile.rump" | | 4 | .include "${RUMPTOP}/Makefile.rump" |
5 | | | 5 | |
6 | LIB= rump | | 6 | LIB= rump |
7 | | | 7 | |
8 | .PATH: ${RUMPTOP}/librump/rumpkern \ | | 8 | .PATH: ${RUMPTOP}/librump/rumpkern \ |
9 | ${RUMPTOP}/../kern \ | | 9 | ${RUMPTOP}/../kern \ |
10 | ${RUMPTOP}/../uvm \ | | 10 | ${RUMPTOP}/../uvm \ |
11 | ${RUMPTOP}/../conf \ | | 11 | ${RUMPTOP}/../conf \ |
12 | ${RUMPTOP}/../dev \ | | 12 | ${RUMPTOP}/../dev \ |
13 | ${RUMPTOP}/../secmodel/suser | | 13 | ${RUMPTOP}/../secmodel/suser |
14 | | | 14 | |
| @@ -80,26 +80,28 @@ AFLAGS+= -D_LOCORE -Wa,-fatal-warnings | | | @@ -80,26 +80,28 @@ AFLAGS+= -D_LOCORE -Wa,-fatal-warnings |
80 | # 2) rump_cpu_bootstrap() | | 80 | # 2) rump_cpu_bootstrap() |
81 | # 3) ...? | | 81 | # 3) ...? |
82 | # 4) PROFIT! | | 82 | # 4) PROFIT! |
83 | # | | 83 | # |
84 | | | 84 | |
85 | # | | 85 | # |
86 | # Check if we are building compat. In compat mode we need to provide | | 86 | # Check if we are building compat. In compat mode we need to provide |
87 | # the kernel of our compat target (amd64->i386 & sparc64->sparc), so | | 87 | # the kernel of our compat target (amd64->i386 & sparc64->sparc), so |
88 | # take MD stuff from the right arch. | | 88 | # take MD stuff from the right arch. |
89 | # | | 89 | # |
90 | .ifdef MLIBDIR | | 90 | .ifdef MLIBDIR |
91 | ARCHDIR= ${RUMPTOP}/librump/rumpkern/arch/${MLIBDIR} | | 91 | ARCHDIR= ${RUMPTOP}/librump/rumpkern/arch/${MLIBDIR} |
92 | LIBKERN_ARCH= ${MLIBDIR} | | 92 | LIBKERN_ARCH= ${MLIBDIR} |
| | | 93 | .elif exists(${RUMPTOP}/librump/rumpkern/arch/${MACHINE_CPU}) |
| | | 94 | ARCHDIR= ${RUMPTOP}/librump/rumpkern/arch/${MACHINE_CPU} |
93 | .else | | 95 | .else |
94 | ARCHDIR= ${RUMPTOP}/librump/rumpkern/arch/${MACHINE_ARCH} | | 96 | ARCHDIR= ${RUMPTOP}/librump/rumpkern/arch/${MACHINE_ARCH} |
95 | .endif | | 97 | .endif |
96 | .if exists(${ARCHDIR}) | | 98 | .if exists(${ARCHDIR}) |
97 | .include "${ARCHDIR}/Makefile.inc" | | 99 | .include "${ARCHDIR}/Makefile.inc" |
98 | .PATH: ${ARCHDIR} | | 100 | .PATH: ${ARCHDIR} |
99 | .else | | 101 | .else |
100 | SRCS+= kobj_stubs.c rumpcpu_generic.c | | 102 | SRCS+= kobj_stubs.c rumpcpu_generic.c |
101 | .endif | | 103 | .endif |
102 | | | 104 | |
103 | # include libkern source files | | 105 | # include libkern source files |
104 | KERNDIR=${RUMPTOP}/../lib/libkern | | 106 | KERNDIR=${RUMPTOP}/../lib/libkern |
105 | .include "${RUMPTOP}/../lib/libkern/Makefile.libkern" | | 107 | .include "${RUMPTOP}/../lib/libkern/Makefile.libkern" |