]> rtime.felk.cvut.cz Git - jailhouse.git/blob - Makefile
tooling: Remove explicit depmod invocation
[jailhouse.git] / Makefile
1 #
2 # Jailhouse, a Linux-based partitioning hypervisor
3 #
4 # Copyright (c) Siemens AG, 2013, 2014
5 #
6 # Authors:
7 #  Jan Kiszka <jan.kiszka@siemens.com>
8 #
9 # This work is licensed under the terms of the GNU GPL, version 2.  See
10 # the COPYING file in the top-level directory.
11 #
12
13 # no recipes above this one (also no includes)
14 all: modules tools
15
16 # includes installation-related variables and definitions
17 include scripts/install.mk
18
19 # out-of-tree build for our kernel-module, firmware and inmates
20 KDIR ?= /lib/modules/`uname -r`/build
21
22 define run-kbuild =
23         $(MAKE) -C $(KDIR) M=$$PWD $@
24 endef
25
26 modules:
27         $(run-kbuild)
28
29 hypervisor/jailhouse.bin: modules
30
31 # recursive build of tools
32 tools:
33         $(MAKE) -C tools
34
35 # clean up kernel and tools
36 clean:
37         $(run-kbuild)
38         $(MAKE) -C tools $@
39
40 modules_install: modules
41         $(run-kbuild)
42
43 firmware_install: hypervisor/jailhouse.bin $(DESTDIR)$(firmwaredir)
44         $(INSTALL_DATA) $^
45
46 install: modules_install firmware_install
47         $(MAKE) -C tools $@
48
49 .PHONY: modules_install install clean firmware_install modules tools