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
7 LINUX_MOD_OBJ := test.o
9 # This is the target used by the Linux build process
10 ifneq ($(KERNELRELEASE),)
11 obj-m := $(LINUX_MOD_OBJ)
13 # These are configuration values to be set
15 KERNELDIR := /home/jarusl/linux-2.6.30.y
17 PALACIOSDIR := $(PWD)/../../capsule
18 V3_MOD_TYPE := V3_LINUX_MOD
21 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
22 $(MAKE) -C $(PALACIOSDIR) MOD_NAME=$(V3_MOD_NAME) MOD_DIR=$(PWD) \
23 MOD_OBJ=$(V3_MOD_OBJ) MOD_TYPE=$(V3_MOD_TYPE)