Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 27 lines (21 sloc) 0.946 kb
07154da Add git rev to /proc/flashcache_version and to the usage() printed out b...
Mohan Srinivasan authored
1 COMMIT_REV := $(shell git describe --always --abbrev=12)
2 KERNEL_TREE ?= /lib/modules/$(shell uname -r)/build
3 export COMMIT_REV
4
d6e4d65 Updated to support building (using DKMS!) on RHEL/CentOS 5.
Graeme Humphries authored
5 # Check for RHEL/CentOS
26fc9d8 Daniel Poelzleithner fix flashcache on SuSE
poelzi authored
6 RHEL5_VER ?= $(shell if [ -e /etc/redhat-release ]; then grep 5.[0-9] /etc/redhat-release; else false; fi)
d6e4d65 Updated to support building (using DKMS!) on RHEL/CentOS 5.
Graeme Humphries authored
7 ifneq "$(RHEL5_VER)" ""
8 RHEL5_TREE := /usr/src/redhat/BUILD/kernel-2.6.18/linux-$(shell uname -r).$(shell uname -i)
9 KERNEL_TREE := $(RHEL5_TREE)
10 endif
11
f71dd61 Cody Robertson Added basic OpenVZ checking in the Makefiles
codyro authored
12 # Check for OpenVZ (/proc/vz)
13 OPENVZ_VER ?= $(shell if [ -e /proc/vz ]; then grep 5.[0-9] /etc/redhat-release; else false; fi)
14 ifneq "$(OPENVZ_VER)" ""
15 RHEL5_TREE := /usr/src/redhat/BUILD/ovzkernel-2.6.18/linux-$(shell uname -r).$(shell uname -i)
16 KERNEL_TREE := $(RHEL5_TREE)
17 endif
18
3d54a88 Initial import of flashcache.
ps authored
19 all:
07154da Add git rev to /proc/flashcache_version and to the usage() printed out b...
Mohan Srinivasan authored
20 $(MAKE) -C src KERNEL_TREE=$(KERNEL_TREE) PWD=$(shell pwd)/src all
3d54a88 Initial import of flashcache.
ps authored
21
438e040 Committing changes from Taira Hajime (redhat) for getting flashcache
Mohan Srinivasan authored
22 install:
07154da Add git rev to /proc/flashcache_version and to the usage() printed out b...
Mohan Srinivasan authored
23 $(MAKE) -C src KERNEL_TREE=$(KERNEL_TREE) PWD=$(shell pwd)/src install
438e040 Committing changes from Taira Hajime (redhat) for getting flashcache
Mohan Srinivasan authored
24
3d54a88 Initial import of flashcache.
ps authored
25 clean:
07154da Add git rev to /proc/flashcache_version and to the usage() printed out b...
Mohan Srinivasan authored
26 $(MAKE) -C src KERNEL_TREE=$(KERNEL_TREE) PWD=$(shell pwd)/src clean
Something went wrong with that request. Please try again.