All of lore.kernel.org
 help / color / mirror / Atom feed
From: elezegarcia@yahoo.com.ar (Ezequiel García)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Compiling single module
Date: Tue, 26 Apr 2011 05:41:12 -0700 (PDT)	[thread overview]
Message-ID: <528700.12482.qm@web39307.mail.mud.yahoo.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1104260754070.3930@localhost6.localdomain6>

Hi,
I browse through the whole net looking how to build a single module from drivers/staging. 

Tried this on /usr/src/linux:

make M=drivers/staging/xgifb/ modules

And it worked...
root at zeta-pc:/usr/src/linux# make M=drivers/staging/xgifb/ modules 
? CC [M]? drivers/staging/xgifb/XGI_main_26.o
? CC [M]? drivers/staging/xgifb/vb_init.o
? CC [M]? drivers/staging/xgifb/vb_setmode.o
? CC [M]? drivers/staging/xgifb/vb_util.o
? CC [M]? drivers/staging/xgifb/vb_ext.o
? LD [M]? drivers/staging/xgifb/xgifb.o
? Building modules, stage 2.
? MODPOST 1 modules
? CC????? drivers/staging/xgifb/xgifb.mod.o
? LD [M]? drivers/staging/xgifb/xgifb.ko

Now when I try another one it does not work:

root at zeta-pc:/usr/src/linux# make M=drivers/staging/sm7xx modules
? Building modules, stage 2.
? MODPOST 0 modules
root at zeta-pc:/usr/src/linux# make drivers/staging/sm7xx/
? CHK???? include/linux/version.h
? CHK???? include/generated/utsrelease.h
? CALL??? scripts/checksyscalls.sh

I think maybe this is because I need to enable the module by on config.
Am I right?

Ezequiel.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110426/f2ff1d7c/attachment-0001.html 

  reply	other threads:[~2011-04-26 12:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-26 12:12 thinking of updating the canonical online udev document Robert P. J. Day
2011-04-26 12:41 ` Ezequiel García [this message]
2011-04-26 13:29   ` Compiling single module Greg KH
2011-04-27  9:44     ` Tayssir Alkowatly
2011-04-27 16:27       ` Mulyadi Santosa
2011-04-26 12:54 ` thinking of updating the canonical online udev document Greg KH
2011-04-26 13:05   ` Mandeep Sandhu
2011-04-26 13:31     ` Greg KH
2011-04-26 13:59       ` Mandeep Sandhu
2011-04-26 13:06   ` Robert P. J. Day
2011-04-26 13:32     ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=528700.12482.qm@web39307.mail.mud.yahoo.com \
    --to=elezegarcia@yahoo.com.ar \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.