building external library under 2.6

From: Frederic Dumoulin (frederic_dumoulin_at_eve-team.com)
Date: 09/30/04

  • Next message: Borislav Petkov: "[PATCH] 2.6.9-rc3 fix warnings in sound/drivers/opl3/opl3_lib.c"
    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/


  • Next message: Borislav Petkov: "[PATCH] 2.6.9-rc3 fix warnings in sound/drivers/opl3/opl3_lib.c"

    Relevant Pages