~hui.wang/alsa-driver/dkms-packaging.audiosdw

1 by David Henningsson
Initial revision
1
#
2
# Makefile parameters that is set by the user
3
# This is also used by the debian packaging.
4
#
5
6
# This is the Ubuntu codename, ie, maverick, natty, etc.
2 by David Henningsson
Pick name and version from debian/control and debian/changelog
7
# 1) take from debian/changelog
12 by David Henningsson
Use currently running system as default distribution
8
# DISTRIBUTION := $(shell dpkg-parsechangelog | sed -n -e 's/^Distribution: //p')
9
# 2) take from currently running system
10
DISTRIBUTION := $(shell lsb_release -sc)
11
# 3) your own idea
231 by Hui Wang
sdw build
12
 DISTRIBUTION := disco
1 by David Henningsson
Initial revision
13
2 by David Henningsson
Pick name and version from debian/control and debian/changelog
14
# Package name
1 by David Henningsson
Initial revision
15
# dashes only in here (DKMS constraint)
2 by David Henningsson
Pick name and version from debian/control and debian/changelog
16
# 1) Take binary package name from debian/control
17
PACKAGE_NAME := $(shell sed -n -e 's/^Package: //p' -e 's/-dkms$$//p' < debian/control | tail -1)
18
# 2) your own idea 
19
# PACKAGE_NAME := 
20
1 by David Henningsson
Initial revision
21
# no dashes or underscores allowed, less is more (DKMS constraint)
2 by David Henningsson
Pick name and version from debian/control and debian/changelog
22
# 1) take from debian/changelog?
23
PACKAGE_VERSION := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
24
# 2) autogenerate based on current date?
25
# PACKAGE_VERSION := 0.$(shell date +%Y%m%d)
26
# 3) your own idea
1 by David Henningsson
Initial revision
27
# PACKAGE_VERSION := 
28
29
# If newer kernel installs, when will this DKMS package be obsoleted
236 by Hui Wang
install ok
30
OBSOLETE_BY = 9.99
1 by David Henningsson
Initial revision
31
32
# Uncomment this line to quiet all of the makefile recipe spew.
33
# Q = @
34
# Uncomment this line to see all of the spew.
35
Q = 
36
37
# If you want to compile a specific set of kernel headers, specify here.
38
KBUILD_TARGET =
39
40
# Controls from where the daily snapshot is picked as used by the fetch-src-from-tarball target.
10 by David Henningsson
Update to temporary location (since kernel.org is down)
41
UNSTABLE_TARBALL_SRC = ftp://ftp.suse.com/pub/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz
1 by David Henningsson
Initial revision
42
6 by David Henningsson
Changed upstream directory to match recipe
43
# From where the source is picked in the fetch-src-from-directory target
7 by David Henningsson
Bring fixups up to date with the other branch
44
UPSTREAM_SRC_DIR = hda-src-from-tree
1 by David Henningsson
Initial revision
45
149 by David Henningsson
Add fetch-src-from-kernel option
46
# From where the source is picked in the fetch-src-from-kernel target
245 by Hui Wang
ww 09
47
UPSTREAM_KERNEL_DIR = /home/hwang4/work/soundwire/ww09/kernel/linux