Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


More init checks to allow graceful fail out when VM cannot be created
[palacios.git] / linux_module / Makefile
1 include $(PWD)/../.config
2
3 LDFLAGS += --whole-archive  --script=$(PWD)/ld.cmd
4
5 ifdef V3_CONFIG_SYMMOD
6 LDFLAGS += --script=$(PWD)/ld.symmod.cmd
7 endif
8
9 ifdef V3_CONFIG_CHECKPOINT
10 LDFLAGS += --script=$(PWD)/ld.chkpt.cmd
11 endif
12
13 EXTRA_CFLAGS  += -I$(PWD)/../palacios/include/ -include autoconf.h -DMODULE=1 -D__KERNEL__=1
14
15
16 v3vee-y :=      palacios-stubs.o \
17                 main.o \
18                 vm.o \
19                 mm.o \
20                 allow_devmem.o \
21                 util-queue.o \
22                 util-hashtable.o \
23                 linux-exts.o \
24                 buddy.o \
25                 numa.o
26
27 v3vee-$(V3_CONFIG_CONSOLE) += iface-console.o
28 v3vee-$(V3_CONFIG_FILE) += iface-file.o
29 v3vee-$(V3_CONFIG_STREAM) +=    iface-stream.o \
30                                 util-ringbuffer.o
31 v3vee-$(V3_CONFIG_EXT_INSPECTOR) += inspector.o
32 v3vee-$(V3_CONFIG_PACKET) += iface-packet.o
33 v3vee-$(V3_CONFIG_SOCKET) += iface-socket.o
34 v3vee-$(V3_CONFIG_KEYED_STREAMS) += iface-keyed-stream.o
35 v3vee-$(V3_CONFIG_HOST_DEVICE) += iface-host-dev.o
36 v3vee-$(V3_CONFIG_GRAPHICS_CONSOLE) += iface-graphics-console.o
37 v3vee-$(V3_CONFIG_EXT_MACH_CHECK) += mcheck.o
38
39 v3vee-$(V3_CONFIG_MEM_TRACK) += memtrack.o
40
41 v3vee-$(V3_CONFIG_CACHE_INFO) += iface-cache_info.o
42 v3vee-$(V3_CONFIG_HOST_PMU) += iface-pmu.o
43 v3vee-$(V3_CONFIG_HOST_PWRSTAT) += iface-pwrstat.o
44 v3vee-$(V3_CONFIG_HOST_PSTATE_CTRL) += iface-pstate-ctrl.o
45
46 v3vee-$(V3_CONFIG_VNET) +=      palacios-vnet.o \
47                                 palacios-vnet-ctrl.o   \
48                                 palacios-vnet-brg.o
49
50 v3vee-$(V3_CONFIG_HOST_HYPERCALL) += iface-host-hypercall.o
51 v3vee-$(V3_CONFIG_EXT_CODE_INJECT) += iface-code-inject.o
52 v3vee-$(V3_CONFIG_EXT_ENV_INJECT) += iface-env-inject.o
53 v3vee-$(V3_CONFIG_EXT_SELECTIVE_SYSCALL_EXIT) += iface-syscall.o
54 v3vee-$(V3_CONFIG_EXT_GUARD_MODULES) += iface-guard-mods.o
55
56
57 v3vee-$(V3_CONFIG_HOST_PCI) += iface-host-pci.o
58
59 v3vee-$(V3_CONFIG_DEBUG_LOCKS) += lockcheck.o
60 v3vee-$(V3_CONFIG_DEBUG_MEM_ALLOC) += memcheck.o
61
62
63 v3vee-objs := $(v3vee-y) ../libv3vee.a
64 obj-m := v3vee.o
65
66
67 all:
68         $(MAKE) -C $(V3_CONFIG_LINUX_KERN) M=$(PWD) modules
69
70 clean:
71         $(MAKE) -C $(V3_CONFIG_LINUX_KERN) M=$(PWD) clean
72