2 # Jailhouse, a Linux-based partitioning hypervisor
4 # Copyright (c) Siemens AG, 2013
7 # Jan Kiszka <jan.kiszka@siemens.com>
9 # This work is licensed under the terms of the GNU GPL, version 2. See
10 # the COPYING file in the top-level directory.
13 subdir-y := hypervisor configs inmates
17 ccflags-y := -I$(src)/hypervisor/arch/$(SRCARCH)/include \
18 -I$(src)/hypervisor/include
20 jailhouse-y := driver.o
22 define filechk_version
23 $(src)/scripts/gen_version_h $(src)
26 clean-files := jailhouse-version.h
30 KERNELDIR = /lib/modules/`uname -r`/build
32 modules modules_install clean:
33 $(MAKE) -C $(KERNELDIR) SUBDIRS=`pwd` $@
35 $(obj)/jailhouse-version.h: $(src)/Makefile FORCE
36 $(call filechk,version)
38 $(obj)/driver.o: $(obj)/jailhouse-version.h
41 cp hypervisor/jailhouse.bin /lib/firmware/
43 install: modules_install firmware_install
46 .PHONY: modules_install install clean firmware_install