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.


Ported host device support from monolithic embedding
[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 EXTRA_CFLAGS  += -I$(PWD)/../palacios/include/ -include autoconf.h -DMODULE=1 -D__KERNEL__=1
10
11
12 v3vee-objs :=   palacios.o \
13                 palacios-dev.o \
14                 palacios-vm.o \
15                 palacios-mm.o \
16                 palacios-queue.o \
17                 palacios-hashtable.o
18
19 ifdef V3_CONFIG_CONSOLE
20         v3vee-objs +=   palacios-console.o
21 endif
22
23 ifdef V3_CONFIG_FILE
24         v3vee-objs +=   palacios-file.o 
25 endif
26
27 ifdef V3_CONFIG_STREAM
28         v3vee-objs +=   palacios-stream.o \
29                         palacios-ringbuffer.o
30 endif
31
32 ifdef V3_CONFIG_EXT_INSPECTOR
33         v3vee-objs += palacios-inspector.o
34 endif
35
36 ifdef V3_CONFIG_VNET
37         v3vee-objs += palacios-vnet.o           
38 endif
39
40 ifdef V3_CONFIG_PACKET
41         v3vee-objs += palacios-packet.o
42 endif
43
44 ifdef V3_CONFIG_SOCKET
45         v3vee-objs += palacios-socket.o
46 endif
47
48 ifdef V3_CONFIG_KEYED_STREAMS
49         v3vee-objs += palacios-keyed-stream.o
50 endif
51
52 ifdef V3_CONFIG_HOST_DEVICE
53         v3vee-objs += palacios-host-dev.o
54 endif
55
56 ifdef V3_CONFIG_GRAPHICS_CONSOLE
57         v3vee-objs += palacios-graphics-console.o
58 endif
59
60
61
62 v3vee-objs += ../libv3vee.a 
63
64
65
66 obj-m := v3vee.o
67
68
69
70 all:
71         $(MAKE) -C $(V3_CONFIG_LINUX_KERN) M=$(PWD) modules
72
73
74
75 clean:
76         $(MAKE) -C $(V3_CONFIG_LINUX_KERN) M=$(PWD) clean
77