]> rtime.felk.cvut.cz Git - jailhouse.git/blobdiff - Kbuild
jailhouse: inmates: bench: Add -R option -- repeats count.
[jailhouse.git] / Kbuild
diff --git a/Kbuild b/Kbuild
index 714bcf13e4d0b753fc261e8fc8b6532d98ad5786..901317918b5b298c7629a83603d84be3bf55d866 100644 (file)
--- a/Kbuild
+++ b/Kbuild
@@ -1,7 +1,7 @@
 #
 # Jailhouse, a Linux-based partitioning hypervisor
 #
-# Copyright (c) Siemens AG, 2013, 2014
+# Copyright (c) Siemens AG, 2013-2015
 #
 # Authors:
 #  Jan Kiszka <jan.kiszka@siemens.com>
 # the COPYING file in the top-level directory.
 #
 
-subdir-y := hypervisor configs inmates
+subdir-y := driver hypervisor configs inmates
 
-obj-m := jailhouse.o
+subdir-ccflags-y := -Werror
 
-ccflags-y := -I$(src)/hypervisor/arch/$(SRCARCH)/include \
-            -I$(src)/hypervisor/include
-
-jailhouse-y := driver.o
-
-$(obj)/hypervisor/include/jailhouse/version.h: $(obj)/hypervisor
-       @
-
-$(obj)/driver.o: $(obj)/hypervisor/include/jailhouse/version.h
+# inmates build depends on generated config.mk of the hypervisor,
+# and the driver needs version.h from there
+$(obj)/inmates $(obj)/driver: $(obj)/hypervisor