Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/dev/lib/libugenhc Fully build ugenhc only on archs ...



details:   https://anonhg.NetBSD.org/src/rev/2c7156ced071
branches:  trunk
changeset: 340575:2c7156ced071
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Sep 14 15:09:35 2015 +0000

description:
Fully build ugenhc only on archs where libusb is built.

diffstat:

 sys/rump/dev/lib/libugenhc/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 1bb667b9c427 -r 2c7156ced071 sys/rump/dev/lib/libugenhc/Makefile
--- a/sys/rump/dev/lib/libugenhc/Makefile       Mon Sep 14 15:08:50 2015 +0000
+++ b/sys/rump/dev/lib/libugenhc/Makefile       Mon Sep 14 15:09:35 2015 +0000
@@ -1,7 +1,9 @@
-#      $NetBSD: Makefile,v 1.8 2014/03/13 01:38:11 pooka Exp $
+#      $NetBSD: Makefile,v 1.9 2015/09/14 15:09:35 pooka Exp $
 #
 
 LIB=   rumpdev_ugenhc
+
+.if ${MACHINE} == "i386" || ${MACHINE} == "amd64"
 IOCONF= UGENHC.ioconf
 
 SRCS=  ugenhc.c ugenhc_at_mainbus.c ugenhc_dma.c
@@ -9,6 +11,10 @@
 CPPFLAGS+=     -I${RUMPTOP}/librump/rumpkern
 
 RUMPCOMP_USER_SRCS=    ugenhc_user.c
+.else
+.PATH: ${.CURDIR}/../libusb
+SRCS=  dummy.c
+.endif
 
 .include <bsd.lib.mk>
 .include <bsd.klinks.mk>



Home | Main Index | Thread Index | Old Index