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.


bind launch thread to local core
[palacios.git] / linux_module / Makefile
index 4163b1a..1262bb9 100644 (file)
@@ -1,28 +1,47 @@
+include $(PWD)/../.config
 
-LDFLAGS += --whole-archive  --script=$(PWD)/link.cmd
+LDFLAGS += --whole-archive  --script=$(PWD)/ld.cmd
 
-EXTRA_CFLAGS  += -I$(PWD)/../palacios/include/ -DMODULE=1 -D__KERNEL__=1
+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 \
+v3vee-objs :=  palacios.o \
                palacios-dev.o \
                palacios-vm.o \
-               palacios-file.o \
-               palacios-stream.o \
-               palacios-console.o \
                palacios-mm.o \
-               palacios-serial.o \
-               palacios-queue.o \
-               palacios-ringbuffer.o 
+               palacios-queue.o 
+
+ifdef V3_CONFIG_CONSOLE
+       v3vee-objs +=   palacios-console.o
+endif
+
+ifdef V3_CONFIG_FILE
+       v3vee-objs +=   palacios-file.o 
+endif
 
-ifdef CONFIG_PALACIOS_VNET
-               v3vee-objs += palacios-vnet.o           
+ifdef V3_CONFIG_STREAM
+       v3vee-objs +=   palacios-stream.o \
+                       palacios-ringbuffer.o
 endif
-ifdef CONFIG_PALACIOS_PACKET
-               v3vee-objs += palacios-packet.o
+
+ifdef V3_CONFIG_EXT_INSPECTOR
+       v3vee-objs += palacios-inspector.o
+endif
+
+ifdef V3_CONFIG_VNET
+       v3vee-objs += palacios-vnet.o           
 endif
-ifdef CONFIG_PALACIOS_SOCKET
-               v3vee-objs += palacios-socket.o
+
+ifdef V3_CONFIG_PACKET
+       v3vee-objs += palacios-packet.o
+endif
+
+ifdef V3_CONFIG_SOCKET
+       v3vee-objs += palacios-socket.o
 endif
 
 v3vee-objs += ../libv3vee.a 
@@ -34,10 +53,10 @@ obj-m := v3vee.o
 
 
 all:
-       $(MAKE) -C $(CONFIG_LINUX_KERN) M=$(PWD) modules
+       $(MAKE) -C $(V3_CONFIG_LINUX_KERN) M=$(PWD) modules
 
 
 
 clean:
-       $(MAKE) -C $(CONFIG_LINUX_KERN) M=$(PWD) clean
+       $(MAKE) -C $(V3_CONFIG_LINUX_KERN) M=$(PWD) clean