Module Name:    src
Committed By:   pooka
Date:           Tue Oct  6 09:12:47 UTC 2009

Modified Files:
        src/sys/rump/dev/lib/libdisk: Makefile

Log Message:
Build proper version for i386 (since it works) and dummy versions
for the rest until the disklabel MD problems get sorted out.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/rump/dev/lib/libdisk/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/dev/lib/libdisk/Makefile
diff -u src/sys/rump/dev/lib/libdisk/Makefile:1.3 src/sys/rump/dev/lib/libdisk/Makefile:1.4
--- src/sys/rump/dev/lib/libdisk/Makefile:1.3	Fri Sep 11 19:01:08 2009
+++ src/sys/rump/dev/lib/libdisk/Makefile	Tue Oct  6 09:12:47 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.3 2009/09/11 19:01:08 pooka Exp $
+#	$NetBSD: Makefile,v 1.4 2009/10/06 09:12:47 pooka Exp $
 #
 
 .PATH:	${.CURDIR}/../../../../kern					\
@@ -6,13 +6,19 @@
 
 LIB=	rumpdev_disk
 
-# sys/kern
-#SRCS=	kern_physio.c subr_disk.c subr_disk_mbr.c subr_disk_open.c
+#
+# XXX: not all platforms support this for now, since disklabel contains
+# some MD weirdosities.  Enable only on i386.  Rest of the platforms
+# get a dummy implementation (due to it being easier with setlists).
 
+.if ${MACHINE} == "i386"
+# sys/kern
+SRCS=	kern_physio.c subr_disk.c subr_disk_mbr.c subr_disk_open.c
 # sys/dev
-#SRCS+=	dksubr.c dk.c
-
+SRCS+=	dksubr.c dk.c
+.else
 SRCS+=	dummy.c
+.endif
 
 CFLAGS+=	-Wno-pointer-sign
 

Reply via email to