[ $(${RUMPMAKE} -f bsd.own.mk -V '${_BUILDRUMP_CXX}') != 'yes' ] \
|| HAVECXX=true
- makeconfigmk ${PLATFORMDIR}/config.mk
+ makeconfigmk ${RROBJ}/config.mk
cat >> ${RUMPTOOLS}/mk.conf << EOF
.if defined(LIB) && \${LIB} == "pthread"
builduserspace ()
{
- ${MAKE} -C app-tools RUMPRUN_MKCONF=$(pwd)/${PLATFORMDIR}/config.mk
+ ${MAKE} -C app-tools
usermtree ${STAGING}
else
echo "CONFIG_CXX=no" >> ${1}
fi
+
+ export RUMPRUN_MKCONF=${1}
}
dobuild ()
+ifeq ($(RUMPRUN_MKCONF),)
+$(error RUMPRUN_MKCONF missing)
+endif
+include ${RUMPRUN_MKCONF}
+
default: all
PLATFORM_DEFAULT_TESTER=qemu
include ../../global.mk
--include config.mk
ifdef BUILDRUMP_TOOLFLAGS
include ${BUILDRUMP_TOOLFLAGS}
endif
rm -rf rump rumpobj rumptools
distcleanrump: cleanrump
- rm -f config.mk
${MAKE} -C ../../tests clean
PCIDIR!= cd ${.PARSEDIR} ; pwd -P
-.include "${PCIDIR}/../config.mk"
+.include "${RUMPRUN_MKCONF}"
.include "${BUILDRUMP_TOOLFLAGS}"
PCI_HYPERCALLS= rumppci.c rumpdma.c
+ifeq ($(RUMPRUN_MKCONF),)
+$(error RUMPRUN_MKCONF missing)
+endif
+include ${RUMPRUN_MKCONF}
+
.PHONY: all
all: default
PLATFORM_DEFAULT_TESTER=xen
include ../../global.mk
--include config.mk
ifdef BUILDRUMP_TOOLFLAGS
include ${BUILDRUMP_TOOLFLAGS}
endif
rm -rf rump rumpobj rumptools
distcleanrump: cleanrump
- rm -f config.mk
$(MAKE) -C ../../tests clean
PCIDIR!= cd ${.PARSEDIR} ; pwd -P
-.include "${PCIDIR}/../config.mk"
+.include "${RUMPRUN_MKCONF}"
.include "${BUILDRUMP_TOOLFLAGS}"
PCI_HYPERCALLS= rumphyper_pci.c rumphyper_dma.c
CPPFLAGS+= -I${.CURDIR}/../../../include
.if ${BUILDRR:Uno} == "true"
-.include "${.CURDIR}/../config.mk"
+.include "${RUMPRUN_MKCONF}"
CPPFLAGS+= -I${OBJDIR}/dest.stage/include
.endif
# Useful config stuff
-include $(MINI-OS_ROOT)/../config.mk
+feq ($(RUMPRUN_MKCONF),)
+$(error RUMPRUN_MKCONF missing)
+endif
+include ${RUMPRUN_MKCONF}
# Where to find xen headers from. XXX: this can probably be done better
ifeq ($(shell uname -s),NetBSD)
include ../../../global.mk
--include ../config.mk
# Common Makefile for mini-os.
#
-PLATFORM?= hw
-
-include ../../global.mk
--include ../../platform/${PLATFORM}/config.mk
+ifeq ($(RUMPRUN_MKCONF),)
+$(error RUMPRUN_MKCONF missing)
+endif
+include ${RUMPRUN_MKCONF}
-ifdef BUILDRUMP_TOOLFLAGS
-include ${BUILDRUMP_TOOLFLAGS}
+ifeq (${BUILDRUMP_TOOLFLAGS},)
+$(error invalid config file ${RUMPRUN_MKCONF})
endif
+include ${BUILDRUMP_TOOLFLAGS}
+
+include ../../global.mk
CFLAGS+= ${BUILDRUMP_TOOL_CFLAGS}