X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=symmods%2Flinux%2Ftest%2FMakefile;h=f209420d49ae751f5f79ab0ad7684d3bede5eda3;hb=c5ba903ae97ea49bbac5b660f76d2031c5302a3d;hp=757010d9642f7f5e9a95f04f74f93274cf33bc1e;hpb=ed936af79f8e02be4cb888ad012e9ba9db30784f;p=palacios.git diff --git a/symmods/linux/test/Makefile b/symmods/linux/test/Makefile index 757010d..f209420 100644 --- a/symmods/linux/test/Makefile +++ b/symmods/linux/test/Makefile @@ -2,24 +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 -default: +linux: FORCE $(MAKE) -C $(KERNELDIR) M=$(PWD) modules - $(MAKE) -C $(PALACIOSDIR) MOD_NAME=$(V3_MOD_NAME) MOD_DIR=$(PWD) \ - MOD_OBJ=$(V3_MOD_OBJ) MOD_TYPE=$(V3_MOD_TYPE) + +capsule: FORCE + $(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