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.


updated linux module to new build framework
[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
18 ifdef V3_CONFIG_CONSOLE
19         v3vee-objs +=   palacios-console.o
20 endif
21
22 ifdef V3_CONFIG_FILE
23         v3vee-objs +=   palacios-file.o 
24 endif
25
26 ifdef V3_CONFIG_STREAM
27         v3vee-objs +=   palacios-stream.o \
28                         palacios-ringbuffer.o
29 endif
30
31 ifdef V3_CONFIG_EXT_INSPECTOR
32         v3vee-objs += palacios-debugfs.o
33 endif
34
35 ifdef V3_CONFIG_VNET
36         v3vee-objs += palacios-vnet.o           
37 endif
38
39 ifdef V3_CONFIG_PACKET
40         v3vee-objs += palacios-packet.o
41 endif
42
43 ifdef V3_CONFIG_SOCKET
44         v3vee-objs += palacios-socket.o
45 endif
46
47 v3vee-objs += ../libv3vee.a 
48
49
50
51 obj-m := v3vee.o
52
53
54
55 all:
56         $(MAKE) -C $(V3_CONFIG_LINUX_KERN) M=$(PWD) modules
57
58
59
60 clean:
61         $(MAKE) -C $(V3_CONFIG_LINUX_KERN) M=$(PWD) clean
62