Skip to contentSkip to conversation

build just one driver

OT Gustavo Guillermo Pérez 5 participants 5 messages Jun 29, 2005 – Jul 1, 2005

lore
Share & tools
lore
#0 lore raw

How can I build just one driver without building everthing or removing the others from the config.

If I do make clean to save space, and if I need to build just 1 driver after.

:(

Signature · 3 lines
Gustavo Guillermo Pérez
Compunauta uLinux
www.compunauta.com
#1 lore raw
Quoted 5 lines · Gustavo Guillermo Pérez

How can I build just one driver without building everthing or removing the others from the config.

If I do make clean to save space, and if I need to build just 1 driver after.

See "make help" :

$ make help | grep "dir/"
  dir/            - Build all files in dir and below
  dir/file.[ois]  - Build specified target only

So, as you can see, typing
make drivers/net/
for example, will build everything in the drivers/net/ dir (and subdirs), and if you type
make drivers/scsi/aic7xxx/aic7xxx.o
It will build just that one object file...

Signature · 3 lines
Jesper Juhl <[email protected]>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html
#2 lore raw
Quoted 9 lines · Jesper Juhl
Quoted 2 lines · Gustavo Guillermo PИrez

How can I build just one driver without building everthing or removing the others from the config.

See "make help" :

$ make help | grep "dir/"
  dir/            - Build all files in dir and below
  dir/file.[ois]  - Build specified target only

Unfortunately, one cannot do make dir/module.ko... Would it be too difficult to add?

Thanks
Guennadi
---
Guennadi Liakhovetski

#3 lore raw
Quoted 5 lines · Guennadi Liakhovetski
Quoted 4 lines · Jesper Juhl
Quoted 2 lines · Gustavo Guillermo P?rez

How can I build just one driver without building everthing or removing the others from the config.

Quoted 7 lines
Quoted 5 lines

See "make help" :

$ make help | grep "dir/"
  dir/            - Build all files in dir and below
  dir/file.[ois]  - Build specified target only

Unfortunately, one cannot do make dir/module.ko... Would it be too difficult to add?

Hmm, I suspect people would find that useful.
I'm not making any promises, but I might take a look at adding that later, on the other hand I don't have much time at the moment, so maybe I won't...

Signature · 1 line
Jesper
#4 lore raw
Quoted 7 lines · Jesper Juhl
Quoted 2 lines

Unfortunately, one cannot do make dir/module.ko... Would it be too difficult to add?

Hmm, I suspect people would find that useful.
I'm not making any promises, but I might take a look at adding that later, on the other hand I don't have much time at the moment, so maybe I won't...

How about a target that does only stage 2 module building?

Signature · 1 line
 Lab tests show that use of micro$oft causes cancer in lab animals