All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frederic Dumoulin <frederic_dumoulin@eve-team.com>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: building external library under 2.6
Date: Thu, 30 Sep 2004 17:04:15 +0200	[thread overview]
Message-ID: <415C206F.5090305@eve-team.com> (raw)
In-Reply-To: <31920.194.237.142.24.1096552751.squirrel@194.237.142.24>

It doesn't change anything!

Sam Ravnborg wrote:
>>Hi,
>>
>>I succeeded to build an externel module under 2.6 with the following
>>Makefile:
>>
>>ifneq ($(KERNELRELEASE),)
>>obj-m		:= testKernel.o
>>testKernel-objs	:= $(OBJS)
>>else
>>KDIR		:= /lib/modules/$(shell uname -r)/build
>>PWD		:= $(shell pwd)
>>testKernel.ko :
>>	$(MAKE) -C $(KDIR) M=$(PWD) modules
>>endif
> 
> Look ok except the way you use testKernel.ko.
> Much better to use all: since this will not conflict
> with a potential output file.
> 
> 
>>I made modifications in order to build a library:
>>
>>ifneq ($(KERNELRELEASE),)
>>lib-y		:= $(OBJS)
>>else
>>KDIR		:= /lib/modules/$(shell uname -r)/build
>>PWD		:= $(shell pwd)
>>lib.a :
>>	$(MAKE) -C $(KDIR) M=$(PWD) modules
>>endif
> 
> 
> Try wil all: as replacement for lib.a:
> It should cure things.
> 
> No access to Linux box atm so I cannot check.
> 
>    Sam
> 


      reply	other threads:[~2004-09-30 15:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-30 12:26 building external library under 2.6 Frederic Dumoulin
2004-09-30 13:59 ` Sam Ravnborg
2004-09-30 15:04   ` Frederic Dumoulin [this message]

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=415C206F.5090305@eve-team.com \
    --to=frederic_dumoulin@eve-team.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sam@ravnborg.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.