]> rtime.felk.cvut.cz Git - jailhouse.git/blobdiff - Kbuild
core: lib: replace ARM memcpy implementation with generic version
[jailhouse.git] / Kbuild
diff --git a/Kbuild b/Kbuild
index 9563aaafc07ff7101350e6ac16db960c9bddc8a6..901317918b5b298c7629a83603d84be3bf55d866 100644 (file)
--- a/Kbuild
+++ b/Kbuild
@@ -1,32 +1,20 @@
 #
 # 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>
-#  Banjmin Block <bebl@mageta.org>
+#  Benjamin Block <bebl@mageta.org>
 #
 # This work is licensed under the terms of the GNU GPL, version 2.  See
 # 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
-
-define filechk_version
-       $(src)/scripts/gen_version_h $(src)
-endef
-
-clean-files := jailhouse-version.h
-
-$(obj)/jailhouse-version.h: $(src)/Makefile FORCE
-       $(call filechk,version)
-
-$(obj)/driver.o: $(obj)/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