]> rtime.felk.cvut.cz Git - jailhouse.git/blob - Makefile
tooling: split Kbuild-related rules from the main Makefile
[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 all: modules
14
15 # out-of-tree build
16 KDIR ?= /lib/modules/`uname -r`/build
17
18 modules modules_install clean:
19         $(MAKE) -C $(KDIR) M=$$PWD $@
20
21 modules_install: modules
22
23 hypervisor/jailhouse.bin: modules
24
25 firmware_install: hypervisor/jailhouse.bin
26         cp $< /lib/firmware/
27
28 install: modules_install firmware_install
29         depmod -aq
30
31 .PHONY: modules_install install clean firmware_install modules