mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-27 09:12:32 +00:00
253097314c
This patch makes the benefit of the recently introduced unified Genode ABI available to developers by enabling the use of multiple kernels from within a single build directory. The create_builddir tool has gained a new set of kernel-agnostic platform arguments such as x86_32, or panda. Most build targets within directories are in principle compatible with all kernels that support the selected hardware platform. To execute a scenario via the run tool, one has to select the kernel to use by setting the 'KERNEL' argument in the build configuration (etc/build.conf). Alternatively, the 'KERNEL' can be specified as command-line argument of the Genode build system, e.g.: make run/log KERNEL=nova This allows us to easily switch from one kernel to another without rebuilding any Genode component except for the very few kernel-specific ones. The new version of the 'create_builddir' tool is still compatible with the old version. The old kernel-specific build directories can still be created. However, those variants will eventually be removed. Note that the commit removes the 'ports-foc' repository from the generated 'build.conf' files. As this is only meaningful for 'foc', I did not want to include it in the list of regular repositories (as visible in a 'x86_32' build directory). Hence, the repository must now be manually added in order to use L4Linux. Issue #2190
24 lines
652 B
Makefile
24 lines
652 B
Makefile
include $(REP_DIR)/lib/mk/virtualbox-common.inc
|
|
|
|
#
|
|
# Prevent inclusion of the Genode::Log definition after the vbox #define
|
|
# of 'Log'. Otherwise, the attemt to compile base/log.h will fail.
|
|
#
|
|
VBOX_CC_OPT += -include base/log.h
|
|
|
|
LIBS += stdcxx
|
|
|
|
SRC_CC = pgm.cc sup.cc
|
|
|
|
INC_DIR += $(call select_from_repositories,src/lib/libc)
|
|
|
|
INC_DIR += $(VBOX_DIR)/Main/xml
|
|
INC_DIR += $(VBOX_DIR)/Main/include
|
|
INC_DIR += $(VBOX_DIR)/VMM/include
|
|
INC_DIR += $(REP_DIR)/src/virtualbox
|
|
INC_DIR += $(REP_DIR)/src/virtualbox/frontend
|
|
INC_DIR += $(REP_DIR)/src/virtualbox/spec/muen
|
|
|
|
vpath pgm.cc $(REP_DIR)/src/virtualbox/
|
|
vpath sup.cc $(REP_DIR)/src/virtualbox/spec/muen/
|