Packaging Alsa Binary Drivers

Asked by fabceolin

Hi guys,

I want to package a binary updated alsa driver to my gutsy. Are there any way to do this?
The original source of ubuntu package don't offer support to make an alsa-binary-modules (or I didn't find it).

My procedure was:

I got a Hardy source here http://packages.ubuntu.com/hardy/source/alsa-driver (tar and diff)
Uncompress and applied diff
dpkg-buildpackage -b

Results
alsa-base_1.0.16-2ubuntu1_all.deb
alsa-source_1.0.16-2ubuntu1_all.deb
linux-sound-base_1.0.16-2ubuntu1_all.deb

I want a binary module package too...

Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu alsa-driver Edit question
Assignee:
No assignee Edit question
Solved by:
fabceolin
Solved:
Last query:
Last reply:
Revision history for this message
fabceolin (fabceolin) said :
#1

Installing a alsa-source_1.0.16-2ubuntu1_all.deb on gutsy, the file
/usr/src/alsa-driver.tar.bz2 was created.

So:

cd /usr/src
tar xvfj alsa-driver.tar.bz2
... [ output supressed ]
cd modules/alsa-driver
./debian/rules binary-modules
.... [ output supressed ]
 ALSA modules were successfully compiled.

make[1]: Leaving directory `/usr/src/modules/alsa-driver'
/usr/bin/make DESTDIR=/usr/src/modules/alsa-driver/debian/alsa-modules-#define LINUX_VERSION_CODE 132630 install-modules
make[1]: Entering directory `/usr/src/modules/alsa-driver'
make[1]: *** No rule to make target `LINUX_VERSION_CODE'. Stop.
make[1]: Leaving directory `/usr/src/modules/alsa-driver'
make: *** [install-stamp] Error 2
root@megalinux-server:/usr/src/modules/alsa-driver#

The DESTDIR contains a strage code. It's seems to me that a uname -r instead.

How can I fix it?

Thanks!

Revision history for this message
fabceolin (fabceolin) said :
#2

The config.log it's strange too:

./configure --prefix=/usr --with-kernel=/usr/src/linux-headers-2.6.22-14-generic/ --with-build=/usr/src/linux-headers-2.6.22-14-generic/ --with-moddir=/lib/modules/#define LINUX_VERSION_CODE 132630/updates/alsa --with-sequencer=yes --with-isapnp=yes --with-cards=all

The alsa compiles standalone. The problem appears when I try to make a binary package.

Revision history for this message
fabceolin (fabceolin) said :
#3

The same in the Hardy Heron
./configure --prefix=/usr --with-kernel=/usr/src/linux-headers-2.6.24-19-generic/ --with-build=/usr/src/linux-headers-2.6.24-19-generic/ --with-moddir=/lib/modules/#define LINUX_VERSION_CODE 132632/updates/alsa --with-sequencer=yes --with-isapnp=yes --with-cards= --with-card-options=

Maybe a debian/rules bug?

Revision history for this message
fabceolin (fabceolin) said :
#4

The problem was the varable KVERS.

I exported manually with:
export KVERS=2.6.22-14-generic

before compilation.

Thanks