Skip to content

Commit 39a97f3

Browse files
Merge pull request #83 from ijackson-citrix/xendev-xenbus-fix
Xendev xenbus fix
2 parents ad23d14 + ef0bfb8 commit 39a97f3

9 files changed

Lines changed: 844 additions & 654 deletions

File tree

app-tools/rumprun-bake.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ conf xen_pv
118118
assimilate _miconf
119119
add -lrumpfs_kernfs \
120120
-lrumpnet_xenif \
121-
# -lrumpxen_xendev issue 73
121+
-lrumpxen_xendev
122122
fnoc
123123

124124
conf xen_pci

build-rr.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ probeprereqs ()
229229
. "${RROBJ}/config.sh"
230230
# probe location of Xen headers
231231
found=false
232-
for loc in /usr/pkg/include/xen /usr/include/xen; do
232+
for loc in ${XEN_HEADERS:-} /usr/pkg/include/xen /usr/include/xen; do
233233
if printf '#include <stdint.h>\n#include <xen.h>\n'\
234234
| ${CC} -I${loc} -x c - -c -o /dev/null \
235235
>/dev/null 2>&1 ; then

platform/xen/Makefile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ OBJ_DIR ?= $(CURDIR)/obj
1414

1515
LDSCRIPT:= $(abspath $(OBJ_DIR)/xen/minios.lds)
1616

17-
# XXX: issue #73
18-
#INSTALLTGTS= librumpxen_xendev_install librumpnet_xenif_install
19-
INSTALLTGTS= librumpnet_xenif_install
17+
INSTALLTGTS= librumpxen_xendev_install librumpnet_xenif_install
2018

2119
include ../Makefile.inc
2220

@@ -51,9 +49,7 @@ links:
5149
$(eval $(call BUILDLIB_target,librumpxen_xendev,.))
5250
$(eval $(call BUILDLIB_target,librumpnet_xenif,.))
5351

54-
# XXX: issue #73
55-
#xenlibs: ${RROBJLIB}/librumpxen_xendev/librumpxen_xendev.a ${RROBJLIB}/librumpnet_xenif/librumpnet_xenif.a
56-
xenlibs: ${RROBJLIB}/librumpnet_xenif/librumpnet_xenif.a
52+
xenlibs: ${RROBJLIB}/librumpxen_xendev/librumpxen_xendev.a ${RROBJLIB}/librumpnet_xenif/librumpnet_xenif.a
5753

5854
$(MAINOBJ): $(RUMP_OBJS) platformlibs xenlibs
5955
$(CC) -Wl,-r $(CFLAGS) $(LDFLAGS) $(RUMP_OBJS) -nostdlib -o $@ \

platform/xen/librumpxen_xendev/Makefile

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,32 @@
1+
.include <bsd.own.mk>
2+
13
LIB= rumpxen_xendev
24

35
SRCS= xendev_component.c
46
SRCS+= busdev.c
5-
SRCS+= evtdev.c
6-
SRCS+= privcmd.c
7+
# XXX: issue #73
8+
#SRCS+= evtdev.c
9+
#SRCS+= privcmd.c
710

811
RUMPTOP= ${TOPRUMP}
912

1013
CPPFLAGS+= -I${RUMPTOP}/librump/rumpkern -I${RUMPTOP}/librump
1114
CPPFLAGS+= -I${RUMPTOP}/librump/rumpvfs
15+
CPPFLAGS+= -I${.CURDIR}/../xen/include
1216
CPPFLAGS+= -I${.CURDIR}
13-
CPPFLAGS+= -I${.CURDIR}/../xen/include -D__RUMP_KERNEL__ -I${.CURDIR}/..
14-
CPPFLAGS+= -I${.CURDIR}/../../../include
1517

16-
.if ${BUILDRR:Uno} == "true"
17-
.include "${RUMPRUN_MKCONF}"
18-
CPPFLAGS+= -I${OBJDIR}/dest.stage/include
18+
RUMPCOMP_USER_SRCS= busdev_user.c
19+
RUMPCOMP_USER_CPPFLAGS+= -I${.CURDIR}/..
20+
RUMPCOMP_USER_CPPFLAGS+= -I${.CURDIR}/../xen/include
21+
RUMPCOMP_USER_CPPFLAGS+= -I${.CURDIR}/../../../include
22+
23+
.ifdef RUMP_DEV_XEN_DEBUG
24+
CPPFLAGS+= -DRUMP_DEV_XEN_DEBUG=1
25+
RUMPCOMP_USER_CPPFLAGS+= -DRUMP_DEV_XEN_DEBUG=1
1926
.endif
2027

21-
RUMP_SYM_NORENAME=xenbus_|HYPERVISOR_|minios_|bmk_
28+
# XXX
29+
.undef RUMPKERN_ONLY
2230

2331
.include "${RUMPTOP}/Makefile.rump"
2432
.include <bsd.lib.mk>

0 commit comments

Comments
 (0)