head 1.2; access; symbols; locks; strict; comment @# @; 1.2 date 2017.03.20.18.06.07; author bouyer; state dead; branches; next 1.1; commitid UIkDeoKV4TqUGjKz; 1.1 date 2016.12.29.23.12.23; author wiz; state Exp; branches; next ; commitid rbn5RRsoW55uZVzz; desc @@ 1.2 log @Remove obsolete patches, they are obsolete since the switch to the 46 version @ text @$NetBSD: patch-ioemu-qemu-xen_xen-hooks.mak,v 1.1 2016/12/29 23:12:23 wiz Exp $ enable PCI passthrough when pciutils is present --- ioemu-qemu-xen/xen-hooks.mak.orig 2012-05-24 15:41:11.000000000 +0200 +++ ioemu-qemu-xen/xen-hooks.mak 2012-05-24 15:46:21.000000000 +0200 @@@@ -55,17 +55,25 @@@@ ifdef CONFIG_STUBDOM CONFIG_PASSTHROUGH=1 else - ifeq (,$(wildcard /usr/include/pci)) + ifeq ($(CONFIG_NetBSD), y) +CONFIG_PASSTHROUGH=1 + else + ifeq (,$(wildcard /usr/include/pci)) $(warning === pciutils-dev package not found - missing /usr/include/pci) $(warning === PCI passthrough capability has been disabled) - else + else CONFIG_PASSTHROUGH=1 + endif endif endif ifdef CONFIG_PASSTHROUGH OBJS+= pass-through.o pt-msi.o pt-graphics.o +ifeq ($(CONFIG_NetBSD), y) +LIBS += -lpciutils -lpci +else LIBS += -lpci +endif CFLAGS += -DCONFIG_PASSTHROUGH $(info === PCI passthrough capability has been enabled ===) endif @ 1.1 log @Fix build. Not sure if this makes sense, since it's for the removed xen 4.1. @ text @d1 1 a1 1 $NetBSD: patch-ioemu-qemu-xen_xen-hooks.mak,v 1.1 2012/05/29 15:01:34 bouyer Exp $ @