~ubuntu-branches/ubuntu/trusty/ndiswrapper/trusty

« back to all changes in this revision

Viewing changes to driver/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Julian Andres Klode
  • Date: 2011-03-14 15:21:40 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20110314152140-g1ifkzxvpibjxe7m
Tags: 1.56+r2729-1
* Imported Upstream version 1.56+r2729
  - Support for Kernels 2.6.36 - 2.6.38 (LP: #660664, Closes: #604880)
* Drop patch for Linux 2.6.35, included in snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
# Kernel Makefile doesn't always know the exact kernel version, so we
27
27
# get it from the kernel headers instead and pass it to make.
28
 
 
 
28
VERSION_H := $(KBUILD)/include/generated/utsrelease.h
 
29
ifeq (,$(wildcard $(VERSION_H)))
29
30
VERSION_H := $(KBUILD)/include/linux/utsrelease.h
 
31
endif
30
32
ifeq (,$(wildcard $(VERSION_H)))
31
33
VERSION_H := $(KBUILD)/include/linux/version.h
32
34
endif
36
38
 
37
39
KVERS := $(shell sed -ne 's/"//g;s/^\#define UTS_RELEASE //p' $(VERSION_H))
38
40
 
 
41
ifeq (,$(KVERS))
 
42
$(error Cannot find UTS_RELEASE in $(VERSION_H), has 'make modules_prepare' been called?)
 
43
endif
 
44
 
39
45
ifdef DIST_DESTDIR
40
46
DESTDIR = $(DIST_DESTDIR)
41
47
else