]> rtime.felk.cvut.cz Git - jailhouse.git/blob - Kbuild
build: Let inmates depend on hypervisor build unconditionally
[jailhouse.git] / Kbuild
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 #  Benjamin Block <bebl@mageta.org>
9 #
10 # This work is licensed under the terms of the GNU GPL, version 2.  See
11 # the COPYING file in the top-level directory.
12 #
13
14 subdir-y := hypervisor configs inmates
15
16 obj-m := jailhouse.o
17
18 ccflags-y := -I$(src)/hypervisor/arch/$(SRCARCH)/include \
19              -I$(src)/hypervisor/include
20
21 jailhouse-y := driver.o
22
23 $(obj)/hypervisor/include/jailhouse/version.h: $(obj)/hypervisor
24         @
25
26 $(obj)/driver.o: $(obj)/hypervisor/include/jailhouse/version.h
27
28 # inmates build depends on generated config.mk of the hypervisor
29 $(addprefix $(obj)/,inmates): $(obj)/hypervisor