mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David T Hollis <dhollis@davehollis.com>
To: "Wojciech 'Sas' Cieciwa" <cieciwa@alpha.zarz.agh.edu.pl>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: HOWTO build modules in 2.6.0 ...
Date: Mon, 17 Nov 2003 13:28:13 -0500	[thread overview]
Message-ID: <1069093607.5091.0.camel@dhollis-lnx.kpmg.com> (raw)
In-Reply-To: <Pine.LNX.4.58L.0311171939150.25906@alpha.zarz.agh.edu.pl>

On Mon, 2003-11-17 at 14:00, Wojciech 'Sas' Cieciwa wrote:
> Hi,
> 
> How can I build kernel modele from other package without root, or copying 
> all from /usr/scr/linux/ ??
> When I try build kernel module from user i got error,
> 
> [...]
> make[1]: Leaving directory `/users/cieciwa/rpm/BUILD/eagle-1.0.4/driver'
> /usr/bin/make -C /usr/src/linux SUBDIRS=`pwd` modules;
> make[1]: Entering directory `/usr/src/linux-2.6.0'
>   HOSTCC  scripts/fixdep
> cc1: Permission denied: opening dependency file scripts/.fixdep.d
> make[2]: *** [scripts/fixdep] Error 1
> make[1]: *** [scripts] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.0'
> make: *** [adiusbadsl.o] Error 2
> make: Leaving directory `/users/cieciwa/rpm/BUILD/eagle-1.0.4/driver'
> 
> How can I solve this problem ??
> 
> Thanx,
> 					Sas.

Here's what I have used that works quite well.  Taken from the lwn.net
articles on porting to 2.5/2.6:


ifneq ($(KERNELRELEASE),)
obj-m   := usbnet.o
 
else
KDIR    := /lib/modules/$(shell uname -r)/build
PWD     := $(shell pwd)
 
default:
        $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
endif


The only item to change would be the 'obj-m := usbnet.o'.  That's the
module that you want built.


  parent reply	other threads:[~2003-11-17 18:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-17 19:00 Wojciech 'Sas' Cieciwa
2003-11-17 18:05 ` Randy.Dunlap
2003-11-17 18:28 ` David T Hollis [this message]
2003-11-17 20:33 ` Sam Ravnborg
2003-11-17 23:59   ` John Levon
2003-11-18  5:50     ` Sam Ravnborg
2003-11-18  7:11       ` Ian Kent
2003-11-18 13:39       ` John Levon

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=1069093607.5091.0.camel@dhollis-lnx.kpmg.com \
    --to=dhollis@davehollis.com \
    --cc=cieciwa@alpha.zarz.agh.edu.pl \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome