From mboxrd@z Thu Jan 1 00:00:00 1970 From: elezegarcia@yahoo.com.ar (=?iso-8859-1?Q?Ezequiel_Garc=EDa?=) Date: Tue, 26 Apr 2011 05:41:12 -0700 (PDT) Subject: Compiling single module In-Reply-To: Message-ID: <528700.12482.qm@web39307.mail.mud.yahoo.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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