All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frederic Dumoulin <frederic_dumoulin@eve-team.com>
To: linux-kernel@vger.kernel.org
Subject: building external library under 2.6
Date: Thu, 30 Sep 2004 14:26:34 +0200	[thread overview]
Message-ID: <415BFB7A.40709@eve-team.com> (raw)

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



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

I've just the following output:

make -C /lib/modules/2.6.8.1/build M=xxx/testKernel modules
make[1]: Entering directory `/usr/src/linux-2.6.8.1'
   Building modules, stage 2.
   MODPOST
make[1]: Leaving directory `/usr/src/linux-2.6.8.1'

I've got neither .o nor .a files

What's wrong?



Fred

             reply	other threads:[~2004-09-30 12:26 UTC|newest]

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

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=415BFB7A.40709@eve-team.com \
    --to=frederic_dumoulin@eve-team.com \
    --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 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.