Re: building external library under 2.6
From: Sam Ravnborg (sam_at_ravnborg.org)
Date: 09/30/04
- Previous message: Alan Cox: "Re: [PATCH] overcommit symbolic constants"
- In reply to: Frederic Dumoulin: "building external library under 2.6"
- Next in thread: Frederic Dumoulin: "Re: building external library under 2.6"
- Reply: Frederic Dumoulin: "Re: building external library under 2.6"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Sep 2004 15:59:11 +0200 (CEST) To: "Frederic Dumoulin" <frederic_dumoulin@eve-team.com>
> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Alan Cox: "Re: [PATCH] overcommit symbolic constants"
- In reply to: Frederic Dumoulin: "building external library under 2.6"
- Next in thread: Frederic Dumoulin: "Re: building external library under 2.6"
- Reply: Frederic Dumoulin: "Re: building external library under 2.6"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|