ia64/xen-unstable

view tools/vnet/vnet-module/Makefile.ver @ 8740:3d7ea7972b39

Update patches for linux 2.6.15.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Thu Feb 02 17:16:00 2006 +0000 (2006-02-02)
parents 06d84bf87159
children 71b0f00f6344
line source
1 # -*- mode: Makefile; -*-
2 #============================================================================
3 #
4 # Copyright (C) 2004 Mike Wray <mike.wray@hp.com>
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by the
8 # Free Software Foundation; either version 2 of the License, or (at your
9 # option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # for more details.
15 #
16 # You should have received a copy of the GNU General Public License along
17 # with this program; if not, write to the Free software Foundation, Inc.,
18 # 59 Temple Place, suite 330, Boston, MA 02111-1307 USA
19 #============================================================================
21 LINUX_SERIES ?=2.6
22 KERNEL_MINOR ?=-xen0
24 LINUX_VERSION ?= $(shell ( /bin/ls -ld $(XEN_ROOT)/linux-$(LINUX_SERIES).*-xen0 ) 2>/dev/null | \
25 sed -e 's!^.*linux-\(.\+\)-xen0!\1!' )
27 ifeq ($(LINUX_VERSION),)
28 $(error Kernel source for linux $(LINUX_SERIES) not found)
29 endif
31 KERNEL_VERSION =$(LINUX_VERSION)$(KERNEL_MINOR)
33 KERNEL_SRC ?= $(XEN_ROOT)/linux-$(KERNEL_VERSION)
35 KERNEL_MODULE_DIR = /lib/modules/$(KERNEL_VERSION)/kernel
37 #$(warning KERNEL_VERSION $(KERNEL_VERSION))
38 #$(warning KERNEL_SRC $(KERNEL_SRC))