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.


symbiotic module changes
[palacios.git] / symmods / linux / test / Makefile
index 0b4e233..f209420 100644 (file)
@@ -2,31 +2,37 @@
 # First the linux module is compiled via the target kernels build system
 # Second, the module is encapsulated for the Palacios VMM
 
-V3_MOD_NAME := test
+V3_MOD_NAME := lnx_test
 V3_MOD_OBJ := test.ko
 LINUX_MOD_OBJ := test.o
 
 # This is the target used by the Linux build process
 ifneq ($(KERNELRELEASE),)
        obj-m := $(LINUX_MOD_OBJ)
-else 
+else
+
 # These are configuration values to be set
 
        KERNELDIR := /home/jarusl/linux-2.6.30.y
        PWD := $(shell pwd)
-       PALACIOSDIR := $(PWD)/../../capsule
+       PALACIOSDIR := $(PWD)/../../..
+       CAPSULEDIR := $(PALACIOSDIR)/symmods/capsule
        V3_MOD_TYPE := V3_LINUX_MOD
-
+       V3_MOD_ARCH := i386
 
 linux: FORCE
        $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
 
 capsule: FORCE 
-       $(MAKE) -C $(PALACIOSDIR) MOD_NAME=$(V3_MOD_NAME) MOD_DIR=$(PWD) \
-               MOD_OBJ=$(V3_MOD_OBJ) MOD_TYPE=$(V3_MOD_TYPE)
+       $(MAKE) -C $(CAPSULEDIR) MOD_NAME=$(V3_MOD_NAME) MOD_DIR=$(PWD) \
+               MOD_OBJ=$(V3_MOD_OBJ) MOD_TYPE=$(V3_MOD_TYPE) \
+               MOD_ARCH=$(V3_MOD_ARCH)
 
 default: linux capsule 
 
+install: 
+       cp $(V3_MOD_NAME).vo $(PALACIOSDIR)/modules/
+
 FORCE:
 
 endif