{
if eval ${PLATFORM_PCI_P}; then
- ${RUMPMAKE} -f ${PLATFORMDIR}/pci/Makefile.pci ${STDJ} obj
- ${RUMPMAKE} -f ${PLATFORMDIR}/pci/Makefile.pci ${STDJ} dependall
- ${RUMPMAKE} -f ${PLATFORMDIR}/pci/Makefile.pci ${STDJ} install
+ (
+ cd ${PLATFORMDIR}/pci
+ ${RUMPMAKE} ${STDJ} obj
+ ${RUMPMAKE} ${STDJ} dependall
+ ${RUMPMAKE} ${STDJ} install
+ )
fi
}
+++ /dev/null
-# Used via $platform/Makefile.pci
-# (i.e. not really a lib. but can't think of a better place
-# where to stuff this file)
-
-RUMPTOP= ${TOPRUMP}
-MYDIR:= ${.PARSEDIR}
-
-RUMPCOMP_USER_SRCS.rumpdev_pci= ${PCI_HYPERCALLS}
-RUMPCOMP_USER_PATH.rumpdev_pci= ${PCI_HYPERCALLS_PATH}
-RUMPCOMP_USER_CPPFLAGS.rumpdev_pci= ${PCI_CPPFLAGS}
-RUMPCOMP_USER_CPPFLAGS.rumpdev_pci+= -I${MYDIR}/../include
-RUMPCOMP_USER_CPPFLAGS.rumpdev_pci+= -I${RROBJ}/include
-RUMPCOMP_USER_CPPFLAGS.rumpdev_pci+= -I${PCI_HYPERCALLS_PATH}
-RUMPCOMP_USER_CFLAGS.rumpdev_pci= ${BUILDRUMP_TOOL_CFLAGS}
-
-RUMPCOMP_CPPFLAGS.rumpdev_pci= -I${PCI_HYPERCALLS_PATH}
-
-.export RUMPCOMP_USER_SRCS.rumpdev_pci
-.export RUMPCOMP_USER_PATH.rumpdev_pci
-.export RUMPCOMP_USER_CFLAGS.rumpdev_pci
-.export RUMPCOMP_USER_CPPFLAGS.rumpdev_pci
-.export RUMPCOMP_CPPFLAGS.rumpdev_pci
-
-.include "${RUMPTOP}/dev/Makefile.rumpdevcomp"
-
-.for pcidev in ${RUMPPCIDEVS}
-SUBDIR+= ${RUMPTOP}/dev/lib/lib${pcidev}
-.endfor
-
-.include <bsd.subdir.mk>
--- /dev/null
+RUMPTOP= ${TOPRUMP}
+
+.include "${RUMPRUN_MKCONF}"
+.include "${BUILDRUMP_TOOLFLAGS}"
+
+RUMPCOMP_MAKEFILEINC_rumpdev_pci:= ${.PARSEDIR}/Makefile.pcihyperdefs
+.export RUMPCOMP_MAKEFILEINC_rumpdev_pci
+
+RUMPRUN_OBJDIR=${RROBJ}
+RUMPRUN_TOOL_CFLAGS=${BUILDRUMP_TOOL_CFLAGS}
+
+.export RUMPRUN_OBJDIR
+.export RUMPRUN_TOOL_CFLAGS
+
+.include "${RUMPTOP}/dev/Makefile.rumpdevcomp"
+
+.for pcidev in ${RUMPPCIDEVS}
+SUBDIR+= ${RUMPTOP}/dev/lib/lib${pcidev}
+.endfor
+
+.include <bsd.subdir.mk>
+++ /dev/null
-PCIDIR:= ${.PARSEDIR}
-
-.include "${RUMPRUN_MKCONF}"
-.include "${BUILDRUMP_TOOLFLAGS}"
-
-PCI_HYPERCALLS= rumppci.c rumpdma.c
-PCI_HYPERCALLS_PATH:= ${PCIDIR}
-PCI_CPPFLAGS:= -I${PCIDIR}/../include
-
-.include "${PCIDIR}/../../../lib/Makefile.pcicommon"
--- /dev/null
+# make defs for hypercalls for PCI component
+
+RUMPRUN_PCIDIR:= ${.PARSEDIR}
+.PATH: ${RUMPRUN_PCIDIR}
+
+.ifndef RUMPRUN_OBJDIR
+.error ${.PARSEDIR} invoked improperly
+.endif
+
+RUMPCOMP_USER_SRCS= rumppci.c rumpdma.c
+RUMPCOMP_USER_CPPFLAGS+=-I${RUMPRUN_PCIDIR}
+RUMPCOMP_USER_CPPFLAGS+=-I${RUMPRUN_PCIDIR}/../include
+RUMPCOMP_USER_CPPFLAGS+=-I${RUMPRUN_PCIDIR}/../../../include
+RUMPCOMP_USER_CPPFLAGS+=-I${RUMPRUN_OBJDIR}/include
+RUMPCOMP_USER_CFLAGS+= ${RUMPRUN_TOOL_CFLAGS}
+
+CPPFLAGS+= -I${RUMPRUN_PCIDIR}
--- /dev/null
+RUMPTOP= ${TOPRUMP}
+
+.include "${RUMPRUN_MKCONF}"
+.include "${BUILDRUMP_TOOLFLAGS}"
+
+RUMPCOMP_MAKEFILEINC_rumpdev_pci:= ${.PARSEDIR}/Makefile.pcihyperdefs
+.export RUMPCOMP_MAKEFILEINC_rumpdev_pci
+
+RUMPRUN_OBJDIR=${RROBJ}
+RUMPRUN_TOOL_CFLAGS=${BUILDRUMP_TOOL_CFLAGS}
+
+.export RUMPRUN_OBJDIR
+.export RUMPRUN_TOOL_CFLAGS
+
+.include "${RUMPTOP}/dev/Makefile.rumpdevcomp"
+
+.for pcidev in ${RUMPPCIDEVS}
+SUBDIR+= ${RUMPTOP}/dev/lib/lib${pcidev}
+.endfor
+
+.include <bsd.subdir.mk>
+++ /dev/null
-PCIDIR:= ${.PARSEDIR}
-
-.include "${RUMPRUN_MKCONF}"
-.include "${BUILDRUMP_TOOLFLAGS}"
-
-PCI_HYPERCALLS= rumphyper_pci.c rumphyper_dma.c
-PCI_HYPERCALLS_PATH:= ${PCIDIR}
-PCI_CPPFLAGS:= -I${PCIDIR}/../xen/include
-
-.include "${PCIDIR}/../../../lib/Makefile.pcicommon"
--- /dev/null
+# make defs for hypercalls for PCI component
+
+RUMPRUN_PCIDIR:= ${.PARSEDIR}
+.PATH: ${RUMPRUN_PCIDIR}
+
+.ifndef RUMPRUN_OBJDIR
+.error ${.PARSEDIR} invoked improperly
+.endif
+
+RUMPCOMP_USER_SRCS= rumphyper_pci.c rumphyper_dma.c
+RUMPCOMP_USER_CPPFLAGS+=-I${RUMPRUN_PCIDIR}/../xen/include
+RUMPCOMP_USER_CPPFLAGS+=-I${RUMPRUN_PCIDIR}
+RUMPCOMP_USER_CPPFLAGS+=-I${RUMPRUN_PCIDIR}/../../../include
+RUMPCOMP_USER_CPPFLAGS+=-I${RUMPRUN_OBJDIR}/include
+RUMPCOMP_USER_CFLAGS+= ${RUMPRUN_TOOL_CFLAGS}
+
+CPPFLAGS+= -I${RUMPRUN_PCIDIR}