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.


added module linker script for checkpoint code
[palacios.git] / linux_module / Makefile
index 1262bb9..0c20052 100644 (file)
@@ -6,57 +6,45 @@ ifdef V3_CONFIG_SYMMOD
 LDFLAGS += --script=$(PWD)/ld.symmod.cmd
 endif
 
-EXTRA_CFLAGS  += -I$(PWD)/../palacios/include/ -include autoconf.h -DMODULE=1 -D__KERNEL__=1
-
-
-v3vee-objs :=  palacios.o \
-               palacios-dev.o \
-               palacios-vm.o \
-               palacios-mm.o \
-               palacios-queue.o 
-
-ifdef V3_CONFIG_CONSOLE
-       v3vee-objs +=   palacios-console.o
-endif
-
-ifdef V3_CONFIG_FILE
-       v3vee-objs +=   palacios-file.o 
+ifdef V3_CONFIG_CHECKPOINT
+LDFLAGS += --script=$(PWD)/ld.chkpt.cmd
 endif
 
-ifdef V3_CONFIG_STREAM
-       v3vee-objs +=   palacios-stream.o \
-                       palacios-ringbuffer.o
-endif
-
-ifdef V3_CONFIG_EXT_INSPECTOR
-       v3vee-objs += palacios-inspector.o
-endif
-
-ifdef V3_CONFIG_VNET
-       v3vee-objs += palacios-vnet.o           
-endif
-
-ifdef V3_CONFIG_PACKET
-       v3vee-objs += palacios-packet.o
-endif
-
-ifdef V3_CONFIG_SOCKET
-       v3vee-objs += palacios-socket.o
-endif
-
-v3vee-objs += ../libv3vee.a 
-
+EXTRA_CFLAGS  += -I$(PWD)/../palacios/include/ -include autoconf.h -DMODULE=1 -D__KERNEL__=1
 
 
+v3vee-y :=     palacios-stubs.o \
+               main.o \
+               vm.o \
+               mm.o \
+               util-queue.o \
+               util-hashtable.o \
+               linux-exts.o
+
+v3vee-$(V3_CONFIG_CONSOLE) += iface-console.o
+v3vee-$(V3_CONFIG_FILE) += iface-file.o
+v3vee-$(V3_CONFIG_STREAM) +=   iface-stream.o \
+                               util-ringbuffer.o
+v3vee-$(V3_CONFIG_EXT_INSPECTOR) += inspector.o
+v3vee-$(V3_CONFIG_PACKET) += iface-packet.o
+v3vee-$(V3_CONFIG_SOCKET) += iface-socket.o
+v3vee-$(V3_CONFIG_KEYED_STREAMS) += iface-keyed-stream.o
+v3vee-$(V3_CONFIG_HOST_DEVICE) += iface-host-dev.o
+v3vee-$(V3_CONFIG_GRAPHICS_CONSOLE) += iface-graphics-console.o
+v3vee-$(V3_CONFIG_EXT_MACH_CHECK) += mcheck.o
+
+v3vee-$(V3_CONFIG_VNET) +=     palacios-vnet.o \
+                               palacios-vnet-ctrl.o   \
+                               palacios-vnet-brg.o
+
+
+v3vee-objs := $(v3vee-y) ../libv3vee.a
 obj-m := v3vee.o
 
 
-
 all:
        $(MAKE) -C $(V3_CONFIG_LINUX_KERN) M=$(PWD) modules
 
-
-
 clean:
        $(MAKE) -C $(V3_CONFIG_LINUX_KERN) M=$(PWD) clean