Subversion Repositories f9daq

Rev

Rev 43 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 43 Rev 44
Line 82... Line 82...
82
KPATCHLEVEL := $(shell echo $(VERSION) | sed -e 's;[1-9]\.\([0-9]\{0,3\}\)\..*;\1;g' )
82
KPATCHLEVEL := $(shell echo $(VERSION) | sed -e 's;[1-9]\.\([0-9]\{0,3\}\)\..*;\1;g' )
83
USEKBUILD   := yes
83
USEKBUILD   := yes
84
#****************************************************************************
84
#****************************************************************************
85
# some common switches and defines
85
# some common switches and defines
86
#
86
#
87
DBG     = __NO_DEBUG__  # or __DEBUG__ to debug the driver
87
#DBG     = __NO_DEBUG__  # or __DEBUG__ to debug the driver
88
#DBG     = __DEBUG__ 
88
DBG     = __DEBUG__ 
89
SRC     = .
89
SRC     = .
90
 
90
 
91
 
91
 
92
#****************************************************************************
92
#****************************************************************************
93
# preparation what to build or what to KBUILD
93
# preparation what to build or what to KBUILD
Line 178... Line 178...
178
	@ echo "*** Host machine kernel version=$(shell uname -r), Driver kernel version=$(VERSION), Path to kernel sources=$(KERNSRC), use KBUILD=$(USEKBUILD)"
178
	@ echo "*** Host machine kernel version=$(shell uname -r), Driver kernel version=$(VERSION), Path to kernel sources=$(KERNSRC), use KBUILD=$(USEKBUILD)"
179
	@ echo "***"
179
	@ echo "***"
180
 
180
 
181
#********** root installation only ******************************************
181
#********** root installation only ******************************************
182
install:
182
install:
-
 
183
	@echo "** Removing existing module pcivme from kernel"
183
	-rmmod  pcivme
184
	-rmmod  pcivme
-
 
185
	@echo "** Installing new module into the module directory"
184
	-cp -r pcivme.ko $(INSTALL_LOCATION)
186
	-cp -r pcivme.ko $(INSTALL_LOCATION)
-
 
187
	@echo "** Loading new module with ./pcivme_load 1"
185
	./pcivme_load 1
188
	./pcivme_load 1
186
 
189
 
187
endif  # <<<<< HASVERSION_H >>>>>>
190
endif  # <<<<< HASVERSION_H >>>>>>
188
 
191
 
189
# DO NOT DELETE
192
# DO NOT DELETE