Skip to contentSkip to conversation

Procedure for alsa modules compilation from git

DISCUSSION Pavel Hofman 2 participants 3 messages Apr 6, 2018

lore
Share & tools
lore
#0 lore raw

Hi,

May I ask for description/link describing current working compilation of alsa modules from git? I would like to compile only alsa modules, against my stock ubuntu kernel. Headers/sources in /usr/src, configured to current configuration from /boot/config...

What is the oldest kernel to compile against (isch)? Would 4.4 work?

I would like to make a small patch for ice1724, test, and send here for review/inclusion.

I very much appreciate any help. I think it would be useful to many other occasional devels.

Thanks a lot,

Pavel.

#1 lore raw

Dne 6.4.2018 v 20:07 Pavel Hofman napsal(a):

Quoted 7 lines

Hi,

May I ask for description/link describing current working compilation of alsa modules from git? I would like to compile only alsa modules, against my stock ubuntu kernel. Headers/sources in /usr/src, configured to current configuration from /boot/config...

Quoted 7 lines

What is the oldest kernel to compile against (isch)? Would 4.4 work?

I would like to make a small patch for ice1724, test, and send here for review/inclusion.

I very much appreciate any help. I think it would be useful to many other occasional devels.

The info is unfortunately obsolete, because the demand for this type of the compilation is really low. For simple changes, you may use the code from your kernel and write own Makefile for the external module build (copy obj parts from the ALSA makefiles) like:

--
obj-m += test.o

all:

    make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

--

For complex changes, use the whole git tree.

Jaroslav

Signature · 2 lines
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
#2 lore raw

Dne 6.4.2018 v 20:33 Jaroslav Kysela napsal(a):

Quoted 5 lines

The info is unfortunately obsolete, because the demand for this type of the compilation is really low. For simple changes, you may use the code from your kernel and write own Makefile for the external module build (copy obj parts from the ALSA makefiles) like:

Quoted 8 lines

--
obj-m += test.o

all:

     make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

--

For complex changes, use the whole git tree.

Thanks a lot, I will compile the whole tree then.

Best regards,

Pavel.