Skip to contentSkip to conversation

How to add a new module to the drivers package?

DISCUSSION Robert Vetter 3 participants 4 messages Aug 1, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

I'm trying to add a new driver (for example dummy1) module to the drivers package. What i do is:

1. to add the module into scripts/Modules.dep

%dir linux/sound/drivers
|snd-dummy snd-pcm
|snd-dummy1 snd-pcm

2. to add the module into linux/sound/drivers/Makefile

snd-dummy1-objs := dummy1.o
obj-$(CONFIG_SND_DUMMY1) += snd-dummy1.o

3. to run cvscompile

However I get an error from make daying no rule to make target dummy1.c

do I miss something?

thank you

Robert

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

#1 lore raw
Quoted 13 lines · Robert Vetter

Hi,

I'm trying to add a new driver (for example dummy1) module to the drivers package. What i do is:

1. to add the module into scripts/Modules.dep

%dir linux/sound/drivers
|snd-dummy snd-pcm
|snd-dummy1 snd-pcm

2. to add the module into linux/sound/drivers/Makefile

Quoted 8 lines

snd-dummy1-objs := dummy1.o
obj-$(CONFIG_SND_DUMMY1) += snd-dummy1.o

3. to run cvscompile

However I get an error from make daying no rule to make target dummy1.c

do I miss something?

Yes, first step is obsolete. You should update the drivers/Kconfig file instead.

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

#2 lore raw
In reply to Robert Vetter

At Tue, 1 Aug 2006 14:46:36 +0200,

Quoted 4 lines · Robert Vetter

Hi,

Quoted 8 lines

I'm trying to add a new driver (for example dummy1) module to the drivers package. What i do is:

1. to add the module into scripts/Modules.dep

%dir linux/sound/drivers
|snd-dummy snd-pcm
|snd-dummy1 snd-pcm

Modules.dep is obsoleted (where did you find it?).
You need to add a corresponding entry in Kconfig file. The dependency should be given in Kconfig (e.g. add a line "select SND_PCM").

Quoted 4 lines

2. to add the module into linux/sound/drivers/Makefile

snd-dummy1-objs := dummy1.o
obj-$(CONFIG_SND_DUMMY1) += snd-dummy1.o

Correct.

Quoted 1 line

3. to run cvscompile

Or hgcompile script. If you're using CVS from the old ALSA CVS repo, stop it. CVS is dead.

Takashi

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

#3 lore raw

I'm working with alsa-drivers-1.0.2 package, since it builds without problems for arm architecture and linux 2.4.19. The newest package (1.0.11) doesn't compile in this environment.
Thus, do I have still to use the Kconfig file?

Thank you

Robert

Quoted 26 lines · Takashi Iwai

At Tue, 1 Aug 2006 14:46:36 +0200,

Quoted 11 lines · Robert Vetter

Hi,

I'm trying to add a new driver (for example dummy1) module to the drivers package. What i do is:

1. to add the module into scripts/Modules.dep

%dir linux/sound/drivers

|snd-dummy snd-pcm
|snd-dummy1 snd-pcm

Modules.dep is obsoleted (where did you find it?).
You need to add a corresponding entry in Kconfig file. The dependency should be given in Kconfig (e.g. add a line "select SND_PCM").

Quoted 4 lines

2. to add the module into linux/sound/drivers/Makefile

snd-dummy1-objs := dummy1.o
obj-$(CONFIG_SND_DUMMY1) += snd-dummy1.o

Correct.

Quoted 7 lines
Quoted 1 line

3. to run cvscompile

Or hgcompile script. If you're using CVS from the old ALSA CVS repo, stop it. CVS is dead.

Takashi

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV