Skip to content

Commit

Permalink
Update build for pci.
Browse files Browse the repository at this point in the history
  • Loading branch information
gz committed Apr 2, 2019
1 parent 6019318 commit 335dbc9
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pci_build/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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>
17 changes: 17 additions & 0 deletions pci_build/Makefile.pcihyperdefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 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}
2 changes: 2 additions & 0 deletions pci_build/rumpcomp_userfeatures_pci.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#define RUMPCOMP_USERFEATURE_PCI_IOSPACE
#define RUMPCOMP_USERFEATURE_PCI_DMAFREE

0 comments on commit 335dbc9

Please sign in to comment.