$(error need to specify $$PLATFORM!)
endif
+ifneq (${KERNONLY},true)
+TARGETS:= userlibs
+else
+TARGETS:= compiler_rt
+endif
+
+ifeq (${BUILDRR},true)
+CPPFLAGS+= -I${OBJDIR}/dest.stage/include
+else
+CPPFLAGS+= -I${DESTDIR}/include
+endif
+
+MAINOBJ:= rumprun-${PLATFORM}-${MACHINE_ARCH}.o
+
COREDIR:= $(shell pwd)/../../lib/libbmk_core
RUMPUSERDIR:= $(shell pwd)/../../lib/libbmk_rumpuser
COMPILERRTDIR:= $(shell pwd)/../../lib/libcompiler_rt
+default: all
+
PLATFORM=hw
PLATFORM_DEFAULT_TESTER=qemu
include ${BUILDRUMP_TOOLFLAGS}
endif
-ifneq (${KERNONLY},true)
-TARGETS:= userlibs
-else
-TARGETS:= compiler_rt
-endif
-
-MAINOBJ= rumprun-hw-${MACHINE_ARCH}.o
-
-all: include/hw/machine ${MAINOBJ} ${TARGETS}
-
CPPFLAGS= -Iinclude -I../../include -nostdinc
CFLAGS+= ${BUILDRUMP_TOOL_CFLAGS}
-ifeq (${BUILDRR},true)
-CPPFLAGS+= -I${OBJDIR}/dest.stage/include
-else
-CPPFLAGS+= -I${DESTDIR}/include
-endif
-
# Check if we're building for a supported target.
supported= false
HASPCI= y
OBJS_BMK+= intr.o clock_subr.o kernel.o multiboot.o undefs.o
include ../Makefile.inc
-
include arch/${ARCHDIR}/Makefile.inc
-.PHONY: clean cleandir test
+.PHONY: clean cleandir test all
+
+all: include/hw/machine ${MAINOBJ} ${TARGETS}
include/hw/machine:
@ln -sf ../arch/${MACHINE_ARCH} include/hw/machine
include ${BUILDRUMP_TOOLFLAGS}
endif
-MAINOBJ= rumprun-xen-$(MACHINE_ARCH).o
-
#
# Rumprun-xen Makefile.
# Abandon all hope, ye who enter here:
#
OBJ_DIR ?= $(CURDIR)/obj
-TARGETS= prepare links mini-os $(MAINOBJ)
+include ../Makefile.inc
-ifneq (${KERNONLY},true)
-TARGETS+= userlibs
-else
-TARGETS+= compiler_rt
-endif
+TARGETS= prepare links mini-os $(MAINOBJ)
LDSCRIPT:= $(abspath $(OBJ_DIR)/xen/minios.lds)
.PHONY: default
default: ${TARGETS}
-include ../Makefile.inc
-
CPPFLAGS = -isystem xen/include -I. -I../../include
CPPFLAGS+= -no-integrated-cpp -nostdinc
-ifeq (${BUILDRR},true)
-CPPFLAGS+= -isystem ${OBJDIR}/dest.stage/include
-else
-CPPFLAGS+= -isystem ${DESTDIR}/include
-endif
-
CFLAGS += -fno-builtin ${BUILDRUMP_TOOL_CFLAGS}
# This is semi-duplicated from xen/arch/x86/arch.mk, can we avoid that?