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
1 # This Makefile is a modified version that uses two recursive Make calls
2 # First the linux module is compiled via the target kernels build system
3 # Second, the module is encapsulated for the Palacios VMM
4
5 V3_MOD_NAME := lnx_test
6 V3_MOD_OBJ := test.ko
7 LINUX_MOD_OBJ := test.o
8
9 # This is the target used by the Linux build process
10 ifneq ($(KERNELRELEASE),)
11         obj-m := $(LINUX_MOD_OBJ)
12 else
13
14 # These are configuration values to be set
15
16         KERNELDIR := /home/jarusl/linux-2.6.30.y
17         PWD := $(shell pwd)
18         PALACIOSDIR := $(PWD)/../../..
19         CAPSULEDIR := $(PALACIOSDIR)/symmods/capsule
20         V3_MOD_TYPE := V3_LINUX_MOD
21         V3_MOD_ARCH := i386
22
23 linux: FORCE
24         $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
25
26 capsule: FORCE 
27         $(MAKE) -C $(CAPSULEDIR) MOD_NAME=$(V3_MOD_NAME) MOD_DIR=$(PWD) \
28                 MOD_OBJ=$(V3_MOD_OBJ) MOD_TYPE=$(V3_MOD_TYPE) \
29                 MOD_ARCH=$(V3_MOD_ARCH)
30
31 default: linux capsule  
32
33 install: 
34         cp $(V3_MOD_NAME).vo $(PALACIOSDIR)/modules/
35
36 FORCE:
37
38 endif