building external library under 2.6
From: Frederic Dumoulin
Date: Thu Sep 30 2004 - 07:27:59 EST
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/