Am Mittwoch, den 13.02.2008, 17:24 -0500 schrieb Allon Stern: > I have a device driver module I previously had built under 2.4 for an > arm platform. > I'm now trying to get it working on my coldfire board, under 2.6. > > The makefile has gotten a makeover, as has the code to port it to > 2.6. I can now compile it for my arm target running 2.6. > > Next, I changed the kernel directory, ARCH and CROSS_COMPILE passed > on the make line to reflect the m68knommu target. > > oooookay, so it compiles the files enumerated in obj-m....but it > thinks each one is its own module! > > As a result, each of the 8 modules gets a ton of link errors. > > I'm supposed to have 8 source files and one module. > > My makefile looks like: > > obj-m += file1.o file2.o file3.o file4.o file5.o file6.o file7.o file8.o > > KERNELDIR = /path/to/kernel/ > CROSS = m68k-uclinux- > > all: > make -C$(KERNELDIR) M=$(PWD) ARCH=m68knommu CROSS_COMPILE=$(CROSS) > modules > > What did I miss? It compiles file for the ARM, but not for the > m68knommu.
Hi Allon, try it this way: obj-m += somename.o somename-objs := file1.o file2.o file3.o file4.o file5.o file6.o file7.o file8.o Regards, Erwin _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
