Find the answer to your Linux question:
Results 1 to 2 of 2
I am in the process of port one of our driver from 2.4 to 2.6. But when I complile, I got: scripts/Makefile.build:48: kbuild: drivers/priv/Makefile - Usage of export-objs is obsolete ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2007
    Posts
    1

    help export-objs and O_TARGET in 2.6 kernel


    I am in the process of port one of our driver from 2.4 to 2.6.
    But when I complile, I got:

    scripts/Makefile.build:48: kbuild: drivers/priv/Makefile - Usage of export-objs is obsolete in 2.6. Please fix!
    scripts/Makefile.build:52: kbuild: drivers/priv/Makefile - Usage of O_TARGET := casa.o is obsolete in 2.6. Please fix!

    And I search the internet and cannot find the new format.

    This is our Makefile:
    ##########
    O_TARGET := priv.o

    export-objs := smbus.o csysutils.o spid.o

    obj-y += smbus.o csysutils.o spid.o

    ############

    Please help.

    Thanks,

    T.L

  2. #2
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    Try this makefile:

    Code:
    obj−m += priv.o
    all:
    	make −C /lib/modules/$(shell uname −r)/build M=$(PWD) modules
    clean:
    	make −C /lib/modules/$(shell uname −r)/build M=$(PWD) clean
    You must use real tabs before the make commands!

    Regards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •