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.


Lock checking framework and cleanup of linux module code to use palacios interfaces...
[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                 lockcheck.o
25
26 v3vee-$(V3_CONFIG_CONSOLE) += iface-console.o
27 v3vee-$(V3_CONFIG_FILE) += iface-file.o
28 v3vee-$(V3_CONFIG_STREAM) +=    iface-stream.o \
29                                 util-ringbuffer.o
30 v3vee-$(V3_CONFIG_EXT_INSPECTOR) += inspector.o
31 v3vee-$(V3_CONFIG_PACKET) += iface-packet.o
32 v3vee-$(V3_CONFIG_SOCKET) += iface-socket.o
33 v3vee-$(V3_CONFIG_KEYED_STREAMS) += iface-keyed-stream.o
34 v3vee-$(V3_CONFIG_HOST_DEVICE) += iface-host-dev.o
35 v3vee-$(V3_CONFIG_GRAPHICS_CONSOLE) += iface-graphics-console.o
36 v3vee-$(V3_CONFIG_EXT_MACH_CHECK) += mcheck.o
37
38 v3vee-$(V3_CONFIG_HOST_PMU) += iface-pmu.o
39
40 v3vee-$(V3_CONFIG_VNET) +=      palacios-vnet.o \
41                                 palacios-vnet-ctrl.o   \
42                                 palacios-vnet-brg.o
43
44 v3vee-$(V3_CONFIG_HOST_HYPERCALL) += iface-host-hypercall.o
45 v3vee-$(V3_CONFIG_EXT_CODE_INJECT) += iface-code-inject.o
46 v3vee-$(V3_CONFIG_EXT_ENV_INJECT) += iface-env-inject.o
47 v3vee-$(V3_CONFIG_EXT_SELECTIVE_SYSCALL_EXIT) += iface-syscall.o
48 v3vee-$(V3_CONFIG_EXT_GUARD_MODULES) += iface-guard-mods.o
49
50
51 v3vee-$(V3_CONFIG_HOST_PCI) += iface-host-pci.o
52
53 v3vee-objs := $(v3vee-y) ../libv3vee.a
54 obj-m := v3vee.o
55
56
57 all:
58         $(MAKE) -C $(V3_CONFIG_LINUX_KERN) M=$(PWD) modules
59
60 clean:
61         $(MAKE) -C $(V3_CONFIG_LINUX_KERN) M=$(PWD) clean
62