2 # Jailhouse, a Linux-based partitioning hypervisor
4 # Copyright (c) Siemens AG, 2013, 2014
7 # Jan Kiszka <jan.kiszka@siemens.com>
9 # This work is licensed under the terms of the GNU GPL, version 2. See
10 # the COPYING file in the top-level directory.
13 # no recipes above this one (also no includes)
16 # includes installation-related variables and definitions
17 include scripts/include.mk
19 # out-of-tree build for our kernel-module, firmware and inmates
20 KDIR ?= /lib/modules/`uname -r`/build
22 INSTALL_MOD_PATH ?= $(DESTDIR)
23 export INSTALL_MOD_PATH
28 +$(Q)$(MAKE) -C $(KDIR) M=$$PWD $@
34 hypervisor/jailhouse.bin: modules
36 # recursive build of tools
40 # documentation, build needs to be triggered explicitly
42 $(DOXYGEN) Documentation/Doxyfile
44 # clean up kernel, tools and generated docs
47 $(Q)$(MAKE) -C tools $@
48 rm -rf Documentation/generated
50 modules_install: modules
53 firmware_install: hypervisor/jailhouse.bin $(DESTDIR)$(firmwaredir)
56 install: modules_install firmware_install
57 $(Q)$(MAKE) -C tools $@
59 .PHONY: modules_install install clean firmware_install modules tools docs