File: alsa-source.README.Debian

package info (click to toggle)
alsa-driver 1.0.13-5etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 20,108 kB
  • ctags: 50,477
  • sloc: ansic: 319,881; sh: 32,930; makefile: 2,015; python: 1,527; perl: 1,316; xml: 896; awk: 66
file content (80 lines) | stat: -rw-r--r-- 2,751 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
            Advanced Linux Sound Architecture
                        drivers
              Debian-specific README file


Last updated: 13 October 2005


During the installation of the alsa-source package you should have
been asked several questions about build options for the modules.  If
you didn't get asked those questions or if you would like to review
them then run 'dpkg-reconfigure alsa-source' as root.  To see the
result, look in /etc/alsa/alsa-source.conf.

Before continuing, be sure you have the fakeroot utility installed

  $ sudo apt-get install fakeroot

and that you have appropriate kernel sources available.  You can use
a stock Linux kernel source tree, a Debian 2.4-kernel headers tree,

  $ sudo apt-get install kernel-headers-2.4.27-2-k7

a Debian (or Ubuntu) 2.6-kernel headers tree,

  $ sudo apt-get install linux-headers-2.6.12-1-686

or a Debian kernel source tree

  $ sudo apt-get install linux-source-2.6.12

for this purpose.  In the latter case you have to extract the tree
from the tarball included in the package and you may have to
configure the sources first.  Make sure that CONFIG_SOUND is defined
in the source tree's .config file.

This package (alsa-source) includes a tarball in /usr/src/ named
'alsa-source.tar.bz2'.  Extract the ALSA driver sources from it.

  $ cd /usr/src
  $ rm -rf modules/alsa-driver
  $ tar jxf alsa-driver.tar.bz2

To build the ALSA modules using make-kpkg, cd into the root of the
headers or source tree that you have prepared and run make-kpkg.

  $ cd /usr/src/kernel-headers-2.4.27-2-k7
  $ make-kpkg --rootcmd=fakeroot modules-image

This will result in the creation of a Debian package in the parent
directory of the headers/source tree.

If you use a 2.6 headers tree then you may run into trouble because
the files in the header tree are all owned by root:root and have no
world write permission, whereas make-kpkg wants to write to some files
in the tree.  The best thing to do is make a working copy of the tree
somewhere else

  $ cp -rpL /usr/src/linux-headers-2.6.12-1-686 /tmp

and run make-kpkg there

  $ cd /tmp/linux-headers-2.6.12-1-686
  $ make-kpkg --rootcmd=fakeroot modules-image
  $ cd
  $ rm -rf /tmp/linux-headers-2.6.12-1-686

If you find that the package is not generated with the correct version
suffix (as seems to happen with Linux 2.6 header trees but not with
Linux 2.4 trees) then you need to add the "--append-to-version" option
to the command line.

  $ make-kpkg --rootcmd=fakeroot --append-to-version=-1-686 modules-image

To build the ALSA modules _not_ using make-kpkg you can do something
like this:

  $ cd /usr/src/modules/alsa-driver
  $ fakeroot debian/rules binary_modules KSRC=/usr/src/kernel-headers-2.4.27-1-k7/ KVERS=2.4.27-1-k7