building external library under 2.6
From: Frederic Dumoulin (frederic_dumoulin_at_eve-team.com)
Date: 09/30/04
- Previous message: Marcel Holtmann: "Re: [PATCH] drivers/isdn/i4l/isdn_tty.c in BK HEAD doesn't compile"
- Next in thread: Sam Ravnborg: "Re: building external library under 2.6"
- Reply: Sam Ravnborg: "Re: building external library under 2.6"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Sep 2004 14:26:34 +0200 To: linux-kernel@vger.kernel.org
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@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: Marcel Holtmann: "Re: [PATCH] drivers/isdn/i4l/isdn_tty.c in BK HEAD doesn't compile"
- Next in thread: Sam Ravnborg: "Re: building external library under 2.6"
- Reply: Sam Ravnborg: "Re: building external library under 2.6"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: [PATCH] __cacheline_aligned always in own section
... > alignment. ... extern void clean_dcache_range ... send the
line "unsubscribe linux-kernel" in ... (Linux-Kernel) - Fast 64-bit atomic writes (SSE?)
... General question: ... my xmmsave array is not guaranteed to be aligned
to 16 bytes. ... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - [PATCH] rmap 26 __setup_arg_pages
... put_kernel_page (struct page *page, unsigned long address, pgprot_t pgprot) ...
extern void compute_creds; ... send the line "unsubscribe linux-kernel" in ...
(Linux-Kernel) - [PATCH][1/4] kexec based dump: Loading kernel from non-default offset
... xorl %ebx,%ebx ... /* freed after init ends here */ ... send the
line "unsubscribe linux-kernel" in ... (Linux-Kernel) - [PATCH] Allow /dev/{,k}mem to be disabled to prevent kernel from being modified easily
... By default, nothing is changed, but I'd turn this feature on on servers ...
static int memory_open(struct inode * inode, ... 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/ ...
(Linux-Kernel)