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 ...
- 04-17-2007 #1Just 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
- 04-19-2007 #2Linux Enthusiast
- Join Date
- Aug 2006
- Posts
- 631
Try this makefile:
You must use real tabs before the make commands!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
Regards


Reply With Quote
